11 """The Pafera Learning System is designed to separate student
12 performance into class participation grades, review grades, and
13 persistence grades. This
class tracks these grades for each student
14 to be easily compared.
18 'rid': (
'INTEGER',
'PRIMARY KEY NOT NULL',),
21 'classscore': (
'INT',
'NOT NULL DEFAULT 0',),
22 'reviewscore': (
'INT',
'NOT NULL DEFAULT 0',),
23 'persistencescore': (
'INT',
'NOT NULL DEFAULT 0',),
24 'finalscore': (
'INT',
'NOT NULL DEFAULT 0',),
25 'numhomework': (
'INT16',
'NOT NULL DEFAULT 0',),
26 'homeworkcompleted': (
'INT16',
'NOT NULL DEFAULT 0',),
27 'classpercent': (
'INT16',
'NOT NULL DEFAULT 0',),
28 'reviewpercent': (
'INT16',
'NOT NULL DEFAULT 0',),
29 'persistencepercent': (
'INT16',
'NOT NULL DEFAULT 0',),
30 'flags': (
'INT16',
'NOT NULL DEFAULT 0',),
35 _dbdisplay = [
'userid',
'classid',
'finalscore']
The Pafera Learning System is designed to separate student performance into class participation grade...
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.