Am 09.05.2011 09:02 schrieb Alessandro Molina:
Import your predicate inside the myapp.lib.helpers module, you will be able to access it as h.predicate inside all the templates.
You can also add thenm in add_global_tmpl_vars, then you won't need the "h." prefix.
As predicates raise exceptions I would also create an helper to make eadier to use it in py:if clauses
Should not be necessary. Because predicates are "booleanized" in Pylons, you can just use them in py:if by writing their names.
-- Christoph -- 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.

