I have mentioned this problem already in the context of ip-based 
authorization, but it is actually a more general question.

Usually you do not only want to restrict access to certain controller 
methods, but you already want to hide certain links depending on which 
permissions the user has. In order to do that, you must be able to check 
predicates in the template. In TG 1.0 this was easily possible:

http://docs.turbogears.org/1.0/UsingIdentity#using-identity-in-templates

Can I do the same with TG 2.0? I.e. when I have a repoze.what check 
predicate that I'm using in a "require" decorator, can I reuse the same 
check predicate in a template? Ideally, I'd like to just call it and get 
a boolean value back.

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to