ok so i am doing

 <div py:if="predicates.has_permission('full')" class="static-menu"><a
class="top_menu-item" href="/cms"><img src="${tg.url('/images/
website.png')}" alt="Website" /><span>Website Editor</span></a></div>

and it throws the error

UndefinedError: "predicates" not defined

so i need to import predicates into my template?

On Nov 22, 5:40 pm, Christoph Zwerschke <[email protected]> wrote:
> adam schrieb:
>
> > i am waiting to put this into a template so how would i go about using
> > has_permission within there considering its and import from
> > repoze.what.predicates
>
> "predicates" should be available in all templates. I.e. you can write
> py:if="predicates.has_permission('full')".
>
> -- 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=.


Reply via email to