Ok, so looking at the Pyramid-generated Mako template code, it just 
literally outputs what's in that config setting, quotes, brackets and all.
So, the syntax has to be:

mako.imports = import logging

with multiple imports as

mako.imports = import logging, some.other.module

*not*

mako.imports = import logging, import some.other.module


Which I didn't infer from the 
documentation<http://pyramid.readthedocs.org/en/latest/narr/environment.html#mako-import>
 that 
reads "String list of Python statements, typically individual “import” 
lines" (but maybe I just didn't understand it correctly).

Thanks to Mike Bayer for pointing me in the right direction in replying to 
my post on Mako. 
https://groups.google.com/forum/#!topic/mako-discuss/RNUfqX12YHE

>
>

-- 
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/-/8AbXxhbNCTsJ.
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.

Reply via email to