10SCHOOL_AUTO_APPROVE = 0x01
14 """Represents a school, which organizes students, teachers, and classes.
16 This class is pretty much just an easy way to search for contact
21 'rid': (
'INTEGER',
'PRIMARY KEY NOT NULL',),
22 'icon': (
'IMAGEFILE',
"NOT NULL DEFAULT ''",),
28 'contactinfo': (
'TRANSLATION',
"NOT NULL DEFAULT ''",),
29 'numadministrators': (
'INT',
'NOT NULL DEFAULT 0',),
30 'numteachers': (
'INT',
'NOT NULL DEFAULT 0',),
31 'numclasses': (
'INT',
'NOT NULL DEFAULT 0',),
32 'numstudents': (
'INT',
'NOT NULL DEFAULT 0',),
33 'flags': (
'INT',
'NOT NULL DEFAULT 0',),
40 'learn_schooladministrator',
41 'learn_schoolsystemadministrator',
43 _dbdisplay = [
'displayname',
'description',
'address',
'phone',
'email']
Represents a school, which organizes students, teachers, and classes.
def __init__(self)
Initialize all fields at creation like a good programmer should.
Base class for all database models.
Throws an exception on blank values.