hmmmm..... do you need this? Couldn't your decorator w/ arguments be written:
@auth.requires_any_membership( *list ) see, for example, http://www.artima.com/weblogs/viewpost.jsp?thread=240845 On Mon, May 18, 2009 at 9:33 AM, mdipierro <[email protected]> wrote: > > no with current decorators. > I could implement it but only with "|" not "or" since "or" cannot be > overloaded in Python (why?). > > Massimo > > On May 18, 7:49 am, annet <[email protected]> wrote: > > Is it possible to combine decorators using logical operators? e.g. > > executing a function requires membership of the group 'site' or > > membership of the group 'core' > > > > @auth.requires_membership('site') OR auth.requires_membership('core') > > > > Kind regards, > > > > Annet > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

