db0_publishers.py 430 Bytes
Newer Older
1 2 3 4 5
# -*- coding: utf-8 -*-
""" publishers

"""
db.define_table("publishers",
6 7
    Field("publisher", "string", length=255, default="", label="Review"),
    Field("abbreviation", "string", length=255, notnull=True, unique=True),
8 9 10 11 12
    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