THE PROBLEM IS ABOUT APPADMIN AND RENDERING DEFAULT CRUD ON
AUTH_PERMISSION TABLE.

to reproduce:
1: initialize new app
2: add a table in db.py
3: go here: http://127.0.0.1:8001/app/appadmin/insert/db/auth_permission
and check whether you can assign permissions to your new table in
dropbox(table name)

Description
In gluon/tools.py there is a line:
  table.table_name.requires = IS_IN_SET(self.db.tables)

this is the fragment about creating auth_permission
but this makes only 4 auth tables visible in DROPBOXES, not my own tables

still in console:
print db.tables
['auth_user', 'auth_group', 'auth_membership', 'auth_permission',
'auth_event', 'cstom_table1, 'cstom_table2']


is it a bug(limitation in appadmin) or am I missing something? should
I somehow trigger auth migration?
but when I do "migrate" it DOES NOT help:
auth.define_tables(migrate=True)


-- 
Kuba

Reply via email to