Thanks Massimo,

I added the lines

db.auth_permission.table_name.requires =
IS_NULL_OR(IS_IN_SET(db.tables))
db.auth_permission.record_id.default = 0

to the end of my last model file which seems to work for what I need
as well. The table name is allowed to be empty and the record_id
defaults to 0 which will pass a decorator of the form

@auth.requires_permission('symbolic_name') through only for users
given membership in the associated group.


Interesting point about declaring a table name that cannot be created
in the database.

When one starts to get the hang of web2py it is so easy to customise
from the outside avoiding the nightmare of keeping changes to the core
up to date.

Reply via email to