db0_publishers.py 406 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
# -*- coding: utf-8 -*-
""" publishers

"""
db.define_table("publishers",
    Field("publisher", "string", default="", label="Review"),
    Field("abbreviation", "string", notnull=True, unique=True),
    migrate="publishers.table")

db.publishers._before_delete.append(INHIBIT_CASCADE_DELETE)
db.publishers.publisher.filter_in = dbui.CLEAN_SPACES
db.publishers.abbreviation.filter_in = filters.CLEAN_REVIEW