Revision 1228 includes an attribute on require-decorated methods (_require) that exposes the predicate used in the decorator.

On 17 Feb, 2006, at 12:48 am, Randall wrote:


I'd like to make hyperlinks available based on how identity.require is
defined for a method.  This prevents a user from attempting to access
something they don't have access to.  To do this, I've got to determine
if a user has access to the resource (controller method) before
accessing it.  Is it feasible to inspect a controller and aquire this
information?

Randall

--
Jeff Watkins

“In science it often happens that scientists say, ‘You know that’s a really good argument; my position is mistaken,’ and then they actually change their minds and you never hear that old view from them again. They really do it. It doesn’t happen as often as it should, because scientists are human and change is sometimes painful. But it happens every day. I cannot recall the last time something like that happened in politics or religion.” Carl Sagan, 1987


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to