Hello Gustavo!
> It'd still be the same "everything is allowed unless explicitly told
> otherwise" approach, while what you were asking for is "everything is denied
> unless explicitly told otherwise".
Yes, but it comes a few steps closer ;-)
And thanks for the example, but the following:
> allow_only = Any(not_anonymous(), is_login())
leads to:
File '/usr/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/
controllers/core.py', line 80 in _inspect_call
argspec = cached_argspecs[func.im_func]
AttributeError: 'function' object has no attribute 'im_func'
(or even any predicate gives this; at the same time the decorated
methods, like
@require(is_logged_in(msg=_('You must login first')))
-- they work smoothly)
Should I start a new thread and post a full traceback?
--
Sergei
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---