Changeset 10380 for main/waeup.imostate
- Timestamp:
- 25 Jun 2013, 05:54:25 (12 years ago)
- Location:
- main/waeup.imostate/trunk/src/waeup/imostate/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.imostate/trunk/src/waeup/imostate/applicants/browser.py
r10367 r10380 43 43 ) 44 44 45 UG_OMIT_DISPLAY_FIELDS += ('course2',) 46 UG_OMIT_PDF_FIELDS += ('course2',) 47 UG_OMIT_MANAGE_FIELDS += ('course2',) 48 UG_OMIT_EDIT_FIELDS += ('course2',) 49 45 50 from waeup.imostate.applicants.workflow import STARTED 46 51 -
main/waeup.imostate/trunk/src/waeup/imostate/applicants/interfaces.py
r10350 r10380 21 21 from zope import schema 22 22 from zope.interface import Attribute, invariant, Invalid 23 from waeup.kofa.schema import FormattedDate, TextLineChoice 24 from waeup.kofa.schoolgrades import ResultEntryField 23 25 from waeup.kofa.applicants.interfaces import ( 24 26 IApplicantBaseData, … … 36 38 from waeup.imostate.interfaces import MessageFactory as _ 37 39 38 class ICustomUGApplicant(I NigeriaUGApplicant):40 class ICustomUGApplicant(IApplicantBaseData): 39 41 """An undergraduate applicant. 40 42 … … 43 45 adding them to the UG_OMIT* tuples. 44 46 """ 47 48 nationality = schema.Choice( 49 source = nats_vocab, 50 title = _(u'Nationality'), 51 required = True, 52 ) 53 lga = schema.Choice( 54 source = LGASource(), 55 title = _(u'State/LGA (Nigerians only)'), 56 required = False, 57 ) 58 #perm_address = schema.Text( 59 # title = _(u'Permanent Address'), 60 # required = False, 61 # ) 62 course1 = schema.Choice( 63 title = _(u'Programme Desired'), 64 source = AppCatCertificateSource(), 65 required = True, 66 ) 67 68 olevel_type = schema.Choice( 69 title = _(u'Qualification Obtained'), 70 required = False, 71 readonly = False, 72 vocabulary = exam_types, 73 ) 74 olevel_school = schema.TextLine( 75 title = _(u'Institution Attended'), 76 required = False, 77 readonly = False, 78 ) 79 olevel_exam_number = schema.TextLine( 80 title = _(u'Exam Number'), 81 required = False, 82 readonly = False, 83 ) 84 olevel_exam_date = FormattedDate( 85 title = _(u'Exam Date'), 86 required = False, 87 readonly = False, 88 show_year = True, 89 ) 90 olevel_results = schema.List( 91 title = _(u'Exam Results'), 92 value_type = ResultEntryField(), 93 required = False, 94 readonly = False, 95 default = [], 96 ) 97 98 notice = schema.Text( 99 title = _(u'Notice'), 100 required = False, 101 ) 102 screening_venue = schema.TextLine( 103 title = _(u'Screening Venue'), 104 required = False, 105 ) 106 screening_date = schema.TextLine( 107 title = _(u'Screening Date'), 108 required = False, 109 ) 110 screening_score = schema.Int( 111 title = _(u'Screening Score (%)'), 112 required = False, 113 ) 114 result_uploaded = schema.Bool( 115 title = _(u'Result uploaded'), 116 default = False, 117 ) 118 student_id = schema.TextLine( 119 title = _(u'Student Id'), 120 required = False, 121 readonly = False, 122 ) 123 course_admitted = schema.Choice( 124 title = _(u'Programme Admitted'), 125 source = CertificateSource(), 126 required = False, 127 ) 128 locked = schema.Bool( 129 title = _(u'Form locked'), 130 default = False, 131 ) 45 132 46 133 class ICustomApplicant(ICustomUGApplicant): -
main/waeup.imostate/trunk/src/waeup/imostate/applicants/utils.py
r10366 r10380 32 32 SEPARATORS_DICT = { 33 33 'form.applicant_id': _(u'Base Data'), 34 'form.course1': _(u'Programmes/Courses Desired'), 34 #'form.course1': _(u'Programmes/Courses Desired'), 35 'form.olevel_type': _(u"'O' Level Records"), 36 'form.notice': _(u'Application Process Information'), 35 37 } 36 38
Note: See TracChangeset for help on using the changeset viewer.