Changeset 8566 for main/waeup.fceokene/trunk/src/waeup/fceokene
- Timestamp:
- 30 May 2012, 20:37:11 (13 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/browser.py
r8531 r8566 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.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py
r8537 r8566 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', 39 'student_id', 'screening_score', 'screening_venue' )40 'student_id', 'screening_score', 'screening_venue', 'notice') 40 41 PUTME_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + ( 41 42 'firstname', 'middlename', 'lastname', 'sex', … … 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 + ( 47 49 'locked', 'course_admitted', 48 'student_id', 'screening_score', 'screening_venue' )50 'student_id', 'screening_score', 'screening_venue', 'notice') 49 51 50 52 class IUGApplicant(IApplicantBaseData): … … 349 351 constraint=validate_email, 350 352 ) 351 353 date_of_birth = FormattedDate( 354 title = _(u'Date of Birth'), 355 required = True, 356 show_year = True, 357 ) 358 359 IPUTMEApplicantEdit[ 360 'date_of_birth'].order = IUGApplicant['date_of_birth'].order 352 361 IPUTMEApplicantEdit[ 353 362 'email'].order = IUGApplicant['email'].order -
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/utils.py
r8537 r8566 34 34 'pude': ['Post UDE Screening', 'PUDE'], 35 35 'prence': ['Pre-NCE Programme', 'PRE'], 36 'sandwich': ['Part 36 'sandwich': ['Part-Time Degree in Education', 'SAND'], 37 37 'pt': ['Part-Time Degree Programmes', 'PTP'], 38 'putme': ['Post UTME Screening Test', 'PUTME'],38 'putme': ['Post-UTME Screening Exercise', 'PUTME'], 39 39 'app': ['General Studies', 'APP'], 40 40 'cest': ['Common Entry Screening Test', 'CEST'], -
main/waeup.fceokene/trunk/src/waeup/fceokene/utils/utils.py
r8528 r8566 40 40 41 41 PREFERRED_LANGUAGES_DICT = { 42 'en':(1, u'English'),43 'fr':(2, u'Français'),44 'de':(3, u'Deutsch'),45 42 } 46 43 … … 182 179 'pg_pt': 'Postgraduate Part Time', 183 180 'jm_ft': 'Joint Matriculation Full Time', 184 'utme_ft': 'UTME Full Time',185 181 'de_ft': 'Direct Entry Full Time', 186 182 'ph_ft': 'Post Higher Education Full Time',
Note: See TracChangeset for help on using the changeset viewer.