Some of you have asked this:

@auth.requires(auth.is_logged_in() and 1<2 and (auth.has_membership
(auth.id_group('group1')) or auth.has_membership(auth.is_group
('group2'))))
def index():
    return "you are logged in, 1 is less than 2 and you a memeber of
'group1' or 'group2'"

It is in trunk, please give it a try.

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

Reply via email to