adam wrote:
> Christoph Zwerschke wrote:
>> "predicates" should be available in all templates. I.e. you can write
>> py:if="predicates.has_permission('full')".
>>
> UndefinedError: "predicates" not defined
>
> so i need to import predicates into my template?
Sorry. It's not predicates, but tg.predicates, i.e.
<p py:if="tg.predicates.has_permission('full')">Full permission!</p>
-- 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=.