Changeset 13085 for main/waeup.uniben/trunk
- Timestamp:
- 21 Jun 2015, 11:47:55 (9 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r13063 r13085 46 46 NigeriaExportPDFClearanceSlip, 47 47 NigeriaStudentPersonalDisplayFormPage, 48 NigeriaStudentPersonalManageFormPage 48 NigeriaStudentPersonalManageFormPage, 49 NigeriaStudentPersonalEditFormPage 49 50 ) 50 51 … … 56 57 ICustomUGStudentClearance, 57 58 ICustomPGStudentClearance, 58 ICustomStudentPersonal) 59 ICustomStudentPersonal, 60 ICustomStudentPersonalEdit) 59 61 from waeup.uniben.interfaces import MessageFactory as _ 60 62 … … 229 231 form_fields[ 230 232 'personal_updated'].custom_widget = FriendlyDatetimeDisplayWidget('le') 233 234 class CstomStudentPersonalEditFormPage(NigeriaStudentPersonalEditFormPage): 235 """ Page to edit personal data 236 """ 237 form_fields = grok.AutoFields( 238 ICustomStudentPersonalEdit).omit('personal_updated') 231 239 232 240 class StudyCourseCOEditFormPage(KofaEditFormPage): -
main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py
r12856 r13085 21 21 from kofacustom.nigeria.students.interfaces import ( 22 22 INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance, 23 INigeriaStudentPersonal, INigeriaStudentStudyLevel, 23 INigeriaStudentPersonal, INigeriaStudentPersonalEdit, 24 INigeriaStudentStudyLevel, 24 25 INigeriaStudentStudyCourse, INigeriaCourseTicket, 25 26 INigeriaStudentUpdateByRegNo, INigeriaStudentUpdateByMatricNo, … … 30 31 class ICustomStudentBase(INigeriaStudentBase): 31 32 """Representation of student base data. 32 33 33 """ 34 34 35 35 class ICustomStudentPersonal(INigeriaStudentPersonal): 36 36 """Student personal data. 37 """ 37 38 39 parent_email = schema.ASCIILine( 40 title = _(u'Parent Email'), 41 required = False, 42 constraint=validate_email, 43 ) 44 45 class ICustomStudentPersonalEdit(INigeriaStudentPersonalEdit): 46 """Interface for editing personal data by students. 38 47 """ 39 48 … … 46 55 class ICustomUGStudentClearance(INigeriaUGStudentClearance): 47 56 """Representation of ug student clearance data. 48 49 57 """ 50 58 51 59 class ICustomPGStudentClearance(INigeriaPGStudentClearance): 52 60 """Representation of pg student clearance data. 53 54 61 """ 55 56 62 57 63 class ICustomStudent(ICustomStudentBase, ICustomUGStudentClearance, 58 64 ICustomPGStudentClearance, ICustomStudentPersonal): 59 65 """Representation of a student. 60 61 66 """ 62 67 63 68 class ICustomStudentStudyCourse(INigeriaStudentStudyCourse): 64 69 """A container for student study levels. 65 66 70 """ 67 71 68 72 class ICustomStudentStudyLevel(INigeriaStudentStudyLevel): 69 73 """A container for course tickets. 70 71 74 """ 72 75 … … 94 97 class ICustomCourseTicket(INigeriaCourseTicket): 95 98 """A course ticket. 96 97 99 """ 98 100 99 101 class ICustomStudentUpdateByRegNo(INigeriaStudentUpdateByRegNo): 100 102 """Representation of a student. Skip regular reg_number validation. 101 102 103 """ 103 104 104 105 class ICustomStudentUpdateByMatricNo(INigeriaStudentUpdateByMatricNo): 105 106 """Representation of a student. Skip regular matric_number validation. 106 107 107 """ -
main/waeup.uniben/trunk/src/waeup/uniben/students/student.py
r12845 r13085 26 26 from waeup.kofa.utils.helpers import get_current_principal 27 27 from kofacustom.nigeria.students.student import NigeriaStudent 28 from waeup.uniben.students.interfaces import ICustomStudent 28 from waeup.uniben.students.interfaces import ( 29 ICustomStudent, ICustomStudentPersonalEdit) 29 30 30 31 … … 33 34 owned by students. 34 35 """ 35 grok.implements(ICustomStudent, IStudentNavigation) 36 grok.implements( 37 ICustomStudent, IStudentNavigation, ICustomStudentPersonalEdit) 36 38 grok.provides(ICustomStudent) 37 39 -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r13063 r13085 195 195 open(path, 'wb').write(self.browser.contents) 196 196 print "Sample PDF clearance_invitation_slip.pdf written to %s" % path 197 # Students can open the personal edit page and see the parent_email field. 198 self.browser.open(self.student_path + '/edit_personal') 199 self.assertTrue('parent_email' in self.browser.contents) 197 200 198 201 def test_manage_payments(self):
Note: See TracChangeset for help on using the changeset viewer.