On 08/26/2010 02:52 PM, Jean-Guy wrote:
On 2010-08-26 15:51, Gary wrote:
I'm trying to put some access control around some of my functions.
When I use the admin interface to define a new auth_permission, the
form allows a tablename from a drop-down list containint *ONLY* the 4
predefined auth_* tables.
    It does not list any of my own tables in the drop-down list.
Shouldn't it?
    Also shouldn't an empty field be allowed here?
    Also shouldn't an empty record id field also be allowed?   It not,
        but using a zero is a workaround.

Add this at the end of your models

db.auth_permission.table_name.requires=\
    IS_IN_SET(db.tables)

Perfect.  Thanks.



--
Gary Herron, PhD.
Department of Computer Science
DigiPen Institute of Technology
(425) 895-4418

Reply via email to