@@ -22,7 +22,7 @@ class Meta:
2222
2323# To see the databases, do this:
2424# sqlite_web -p $PORT -H $IP -x data/test.sqlite
25-
25+
2626######################################################
2727# STATIC MODELS
2828######################################################
@@ -35,30 +35,30 @@ class LDAPFaculty (DynamicModel):
3535 firstname = TextField ()
3636 isChair = BooleanField (default = False )
3737 isCommitteeMember = BooleanField (default = False )
38-
38+
3939 def is_active (self ):
4040 """All user will be active"""
4141 return True
42-
43-
42+
43+
4444 def get_id (self ):
4545 return str (self .fID )
46-
46+
4747 def is_authenticated (self ):
4848 """Return True if the user is authenticated"""
4949 return True
50-
50+
5151 def is_anonymous (self ):
5252 return False
53-
53+
5454 def __repr__ (self ):
5555 return '{0} {1}' .format (self .firstname , self .lastname )
5656class LDAPStudents (DynamicModel ):
5757 username = PrimaryKeyField ()
5858 bnumber = TextField ()
5959 lastname = TextField ()
6060 firstname = TextField ()
61-
61+
6262class Programs (DynamicModel ):
6363 pID = PrimaryKeyField ()
6464 name = TextField ()
@@ -82,13 +82,13 @@ class Budget (DynamicModel):
8282 materialsDesc = TextField (default = "" )
8383 other = IntegerField (null = True )
8484 otherDesc = TextField (default = "" )
85-
85+
8686class PreSurvey (DynamicModel ):
8787 psID = PrimaryKeyField ()
8888
8989class PostSurvey (DynamicModel ):
9090 psID = PrimaryKeyField ()
91-
91+
9292
9393class Parameters (DynamicModel ):
9494 pID = PrimaryKeyField ()
@@ -134,14 +134,14 @@ class URCPPFaculty (DynamicModel):
134134 fID = PrimaryKeyField ()
135135 pID = ForeignKeyField (Projects , db_column = "pid_id" , related_name = "project" )
136136 username = ForeignKeyField (LDAPFaculty , to_field = "username" )
137- # We will always name these ourselves, and
137+ # We will always name these ourselves, and
138138 # choose where they go. It is in our config[] YAML.
139139 # Something like...
140140 # /year/projid/username.pdf
141141 # vitae = BlobField()
142142 yearsFunded = TextField ( default = "" )
143143 relatedFunding = TextField ( default = "" )
144- programID = ForeignKeyField (Programs , default = 0 )
144+ programID = ForeignKeyField (Programs , default = 0 )
145145
146146class Collaborators (DynamicModel ):
147147 cID = PrimaryKeyField ()
@@ -168,7 +168,7 @@ class Voting (DynamicModel):
168168 budget = FloatField (null = True )
169169 timeline = FloatField (null = True )
170170 comments = TextField (null = True )
171-
171+
172172class EmailTemplates (DynamicModel ):
173173 eID = PrimaryKeyField ()
174174 Body = TextField (null = True )
0 commit comments