Changeset 9374 for main/waeup.kofa/trunk/src
- Timestamp:
- 21 Oct 2012, 20:28:28 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/frontpage.html
r8367 r9374 18 18 <a href="https://waeup.org/">West African eUniversity Project (WAeUP)</a>. 19 19 It is a powerful and comprehensive Student Management System. 20 The software is written in Python and buil dupon the Open Source20 The software is written in Python and built upon the Open Source 21 21 <a href="http://grok.zope.org/">Grok Web Framework</a>. 22 22 </p> -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9338 r9374 371 371 """ Page to display student base data in pdf files. 372 372 """ 373 form_fields = grok.AutoFields(IStudentBase).omit( 374 'password', 'suspended', 'phone', 'adm_code', 'sex') 373 374 def __init__(self, context, request, omit_fields): 375 self.omit_fields = omit_fields 376 super(StudentBasePDFFormPage, self).__init__(context, request) 377 378 @property 379 def form_fields(self): 380 form_fields = grok.AutoFields(IStudentBase) 381 for field in self.omit_fields: 382 form_fields = form_fields.omit(field) 383 return form_fields 375 384 376 385 class ContactStudentForm(ContactAdminForm): … … 622 631 def render(self): 623 632 studentview = StudentBasePDFFormPage(self.context.student, 624 self.request )633 self.request, ('password', 'suspended', 'phone', 'adm_code', 'sex')) 625 634 students_utils = getUtility(IStudentsUtils) 626 635 return students_utils.renderPDF( … … 1015 1024 Score = translate(_('Score'), 'waeup.kofa', target_language=portal_language) 1016 1025 studentview = StudentBasePDFFormPage(self.context.student, 1017 self.request )1026 self.request, ('password', 'suspended', 'phone', 'adm_code', 'sex')) 1018 1027 students_utils = getUtility(IStudentsUtils) 1019 1028 tabledata = sorted(self.context.values(), … … 1426 1435 # return 1427 1436 studentview = StudentBasePDFFormPage(self.context.student, 1428 self.request )1437 self.request, ('password', 'suspended', 'phone', 'adm_code', 'sex')) 1429 1438 students_utils = getUtility(IStudentsUtils) 1430 1439 return students_utils.renderPDF(self, 'payment_slip.pdf', … … 1655 1664 def render(self): 1656 1665 studentview = StudentBasePDFFormPage(self.context.student, 1657 self.request )1666 self.request, ('password', 'suspended', 'phone', 'adm_code', 'sex')) 1658 1667 students_utils = getUtility(IStudentsUtils) 1659 1668 return students_utils.renderPDF(
Note: See TracChangeset for help on using the changeset viewer.