Changeset 8979 for main/waeup.fceokene/trunk
- Timestamp:
- 12 Jul 2012, 08:15:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py
r8933 r8979 33 33 INigeriaUGApplicant, INigeriaPGApplicant, 34 34 INigeriaApplicantOnlinePayment, 35 INigeriaUGApplicantEdit, INigeriaPGApplicantEdit, 36 INigeriaApplicantUpdateByRegNo, 37 IPUTMEApplicantEdit, 35 38 UG_OMIT_DISPLAY_FIELDS, 36 39 UG_OMIT_PDF_FIELDS, … … 82 85 """ 83 86 84 class ICustomUGApplicantEdit(I CustomUGApplicant):87 class ICustomUGApplicantEdit(INigeriaUGApplicantEdit): 85 88 """An undergraduate applicant interface for edit forms. 86 89 … … 94 97 """ 95 98 96 email = schema.ASCIILine( 97 title = _(u'Email Address'), 98 required = True, 99 constraint=validate_email, 100 ) 101 date_of_birth = FormattedDate( 102 title = _(u'Date of Birth'), 103 required = True, 104 show_year = True, 105 ) 106 107 ICustomUGApplicantEdit[ 108 'date_of_birth'].order = ICustomUGApplicant['date_of_birth'].order 109 ICustomUGApplicantEdit[ 110 'email'].order = ICustomUGApplicant['email'].order 111 112 class ICustomPGApplicantEdit(ICustomPGApplicant): 99 class ICustomPGApplicantEdit(INigeriaPGApplicantEdit): 113 100 """A postgraduate applicant interface for editing. 114 101 … … 122 109 """ 123 110 124 email = schema.ASCIILine(125 title = _(u'Email Address'),126 required = True,127 constraint=validate_email,128 )129 date_of_birth = FormattedDate(130 title = _(u'Date of Birth'),131 required = True,132 show_year = True,133 )134 135 ICustomPGApplicantEdit[136 'date_of_birth'].order = ICustomPGApplicant['date_of_birth'].order137 ICustomPGApplicantEdit[138 'email'].order = ICustomPGApplicant['email'].order139 140 111 class ICustomApplicantOnlinePayment(INigeriaApplicantOnlinePayment): 141 112 """An applicant payment via payment gateways. … … 143 114 """ 144 115 145 class IPUTMEApplicantEdit(I CustomUGApplicant):116 class IPUTMEApplicantEdit(IPUTMEApplicantEdit): 146 117 """An undergraduate applicant interface for editing. 147 118 … … 154 125 respective form page. 155 126 """ 156 email = schema.ASCIILine(157 title = _(u'Email Address'),158 required = True,159 constraint=validate_email,160 )161 date_of_birth = FormattedDate(162 title = _(u'Date of Birth'),163 required = True,164 show_year = True,165 )166 127 167 IPUTMEApplicantEdit[ 168 'date_of_birth'].order = ICustomUGApplicant['date_of_birth'].order 169 IPUTMEApplicantEdit[ 170 'email'].order = ICustomUGApplicant['email'].order 171 172 class ICustomApplicantUpdateByRegNo(ICustomApplicant): 128 class ICustomApplicantUpdateByRegNo(INigeriaApplicantUpdateByRegNo): 173 129 """Representation of an applicant. 174 130 … … 176 132 the applicant object. 177 133 """ 178 reg_number = schema.TextLine( 179 title = u'Registration Number', 180 required = False, 181 ) 134
Note: See TracChangeset for help on using the changeset viewer.