db0_authors_roles.py 429 Bytes
Newer Older
1 2 3 4 5 6 7
# -*- coding: utf-8 -*-
""" authors_roles 

    It defined the role of the CPPM authors.
    
"""
db.define_table("authors_roles",
8
    Field("role", "string", length=255, default="", notnull=True),
9 10
    migrate="authors_roles.table")

11 12 13
db.authors_roles._before_delete.append(INHIBIT_CASCADE_DELETE)
db.authors_roles._before_delete.append(dbui.INHIBIT_DELETE_UNDEF)
db.authors_roles._before_update.append(dbui.INHIBIT_UPDATE_UNDEF)