I'd like to use mako.imports = 'import logging' in the .ini file to replace
<%!
import logging
%>
In each template, but it does not work. The template just throws NameError:
name 'logging' is not defined when I attempt to use it.
It appears the mako.imports doesn't even get called, since a setting like
mako.imports
= 'import SpamAndEggs' doesn't throw an error.
I'm using Pyramid 1.3 and Mako 0.7.0.
I also posted this on
SO<http://stackoverflow.com/questions/12759385/pyramid-setting-mako-imports-not-working>,
but not a peep yet.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pylons-discuss/-/oiwgzjCgXUsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.