if not db(db.auth_permission.id>0).count():
create them
On Mar 2, 11:49 am, Jonathan Lundell <[email protected]> wrote:
> I have a set of standard roles & permissions that I need to pre-populate the
> appropriate tables with. For now, I've got an initialization function that I
> invoke manually, but I'd prefer to have happen automatically.
>
> What's the idiomatic way to do that?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" 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.