Yarko,

> Couldn't your decorator w/ arguments be written:
>
> @auth.requires_any_membership( *list )

Like this?:

@auth.requires_membership(['site','core'])
def crud_address():
   return dict()

@auth.requires_membership('site')
def crud_event():
   return dict()


Core is an intersection of site, for example, core manager and site
manager both have permission to crud the address table,
but only sitemanager has permission to create, update and delete the
event table.


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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to