示例#1
0
 def _copyStudentToForm(self, student):
     """Copy relevant fields from Student to StudentForm."""
     sf = StudentForm()
     #return capitalized name. names are stored all lower for querying
     sf.name = string.capwords(student.name)
     sf.email = student.email
     sf.cellphone = student.cellphone
     sf.sbId = student.sbId
     sf.check_initialized()
     return sf
示例#2
0
 def _copyStudentToForm(self, student):
     """Copy relevant fields from Student to StudentForm."""
     sf = StudentForm()
     #return capitalized name. names are stored all lower for querying
     sf.name = string.capwords(student.name)
     sf.email = student.email
     sf.cellphone = student.cellphone
     sf.sbId = student.sbId
     sf.check_initialized()
     return sf