Le 29/09/2012 18:31, Carlos Daniel Ruvalcaba Valenzuela a écrit :
Seems that using __import__ function does not setup imported namespace
as does the sintax "for module import *", thus the dict of the module
includes any other imports.

A quick solution for now could be trying to get the __all__ directly
from the filters module (this works if you defined it) with a fallback
to the __dict__ dictionary checking to get only callables. I have this
working and could push to my fork if there is no better suggestion and
then send a pull request.

I don't think it is enough to check callables in __dict__. You may have imported some functions or other callable items in jinja_filters.py. And you also have to have an (empty) __init__.py in templatetools to get everything working.




--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
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/turbogears?hl=en.

Reply via email to