TG 2.3.5 and genshi.constant_name_patch

24 views
Skip to first unread message

Michael Pedersen

unread,
May 1, 2015, 6:56:32 AM5/1/15
to tg-trunk
Good morning.

I've just installed tg 2.3.5, and am trying out the various things that were breaking before. MongoDB and Python 3.4.3 are working, so big thumbs up!

I am, apparently, screwing up the genshi.constant_name_patch flag, though. Here's my steps:

gearbox quickstart -i tst
cd tst
vim development.ini

I've added this line to [app:main] in development.ini:
genshi.name_constant_patch = true

gearbox setup-app
gearbox serve --reload

Login as manager
Go to Admin

And then I get the stack trace for "Unhandled node type <class '_ast.NameConstant'>"

TurboGears 2.3.5
Python 3.4.3
Ubuntu 15.04

So, I'm assuming I'm screwing up how to configure the genshi.constant_name_patch. How am I supposed to do it?
--
Michael J. Pedersen

Alessandro Molina

unread,
May 2, 2015, 6:07:43 AM5/2/15
to TurboGears
I changed the option name right before release because I realised it
was better suited inside the "templating" namespace like other options
related to template engine.
I probably caused some confusion to people already testing the
development branch :)

The option is named "templating.genshi.name_constant_patch" and
accordingly documented at
http://turbogears.readthedocs.org/en/latest/cookbook/upgrading.html#genshi-work-around-available-for-python3-4

(PS: you are writing to the trunk ML, I suppose is involuntary as it's
a question and you also replied to the release announce on the trunk
ML :P)
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to turbogears+...@googlegroups.com.
> To post to this group, send email to turbo...@googlegroups.com.
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.

Alessandro Molina

unread,
May 2, 2015, 6:09:28 AM5/2/15
to TurboGears
On Sat, May 2, 2015 at 12:07 PM, Alessandro Molina
<alessand...@gmail.com> wrote:
> (PS: you are writing to the trunk ML, I suppose is involuntary as it's
> a question and you also replied to the release announce on the trunk
> ML :P)
>

Sorry my fault, I see that the email is addressed to "tg-trunk" but
the actual email address is turbo...@googlegroups.com. I filter both
in the same folder that confused me a bit o_O

Michael Pedersen

unread,
May 2, 2015, 10:25:07 AM5/2/15
to tg-trunk
Yeah, it's an alias  I have set up. I set both address under one name. Apologies for that.

When I changed to the name you mentioned, it works correctly. I'm running a final build from clean, and uploading a new image now. Once the upload is done, I'll also commit and push to github.

Thank you!

--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages