Changeset 8551 for main/waeup.uniben/trunk/src
- Timestamp:
- 29 May 2012, 22:37:16 (12 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r8530 r8551 39 39 ICustomApplicantOnlinePayment, IPUTMEApplicantEdit, 40 40 UG_OMIT_DISPLAY_FIELDS, PG_OMIT_DISPLAY_FIELDS, 41 UG_OMIT_PDF_FIELDS, PG_OMIT_PDF_FIELDS, 41 42 UG_OMIT_MANAGE_FIELDS, PG_OMIT_MANAGE_FIELDS, 42 43 UG_OMIT_EDIT_FIELDS, PG_OMIT_EDIT_FIELDS, PUTME_OMIT_EDIT_FIELDS) … … 64 65 class CustomPDFApplicationSlip(PDFApplicationSlip): 65 66 67 note = _(u'<br /><br /><br />' 68 'Comfirm your exam venue 72 hours to the exam.') 69 66 70 @property 67 71 def form_fields(self): … … 69 73 if target is not None and target.startswith('pg'): 70 74 form_fields = grok.AutoFields(IPGApplicant) 71 for field in PG_OMIT_ DISPLAY_FIELDS:75 for field in PG_OMIT_PDF_FIELDS: 72 76 form_fields = form_fields.omit(field) 73 77 else: 74 78 form_fields = grok.AutoFields(IUGApplicant) 75 for field in UG_OMIT_ DISPLAY_FIELDS:79 for field in UG_OMIT_PDF_FIELDS: 76 80 form_fields = form_fields.omit(field) 77 81 return form_fields -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py
r8539 r8551 35 35 36 36 UG_OMIT_DISPLAY_FIELDS = ('locked', 'course_admitted', 'password') 37 UG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('email', 'phone') 37 38 UG_OMIT_MANAGE_FIELDS = () 38 39 UG_OMIT_EDIT_FIELDS = UG_OMIT_MANAGE_FIELDS + ('locked', 'course_admitted', … … 43 44 44 45 PG_OMIT_DISPLAY_FIELDS = ('locked', 'course_admitted', 'password') 46 PG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('email', 'phone') 45 47 PG_OMIT_MANAGE_FIELDS = () 46 48 PG_OMIT_EDIT_FIELDS = PG_OMIT_MANAGE_FIELDS + (
Note: See TracChangeset for help on using the changeset viewer.