I'd move the groups creation to a setup action or similar.
adding this into models/db.py after the auth.define_table() every time i am
> visiting appadmin it adds the same groups over and over
>
@auth.requires_membership("admin")
def setup():
if not db(db.auth_group.role=="role").count():
auth.add_group(...)
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.