- Timestamp:
- 17 Nov 2017, 16:12:06 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r14835 r14902 135 135 'phone', 'adm_code', 'email', 'date_of_birth', 136 136 'flash_notice') 137 if self.context. faccode == 'JUPEB':137 if self.context.is_jupeb: 138 138 omit_fields += ('faculty', 'department') 139 139 return omit_fields … … 143 143 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 144 144 line0 = '' 145 if self.context. faccode == 'JUPEB':145 if self.context.is_jupeb: 146 146 line0 = 'Joint Universities Preliminary Examinations Board (JUPEB)\n' 147 147 line1 = translate(_('Clearance Slip of'), … … 307 307 308 308 def update(self): 309 if not self.context.flash_notice or self.context.faccode != 'JUPEB'\309 if not self.context.flash_notice or not self.context.is_jupeb \ 310 310 or not 'results' in self.context.flash_notice.lower(): 311 311 self.flash(_('Forbidden'), type="warning")
Note: See TracChangeset for help on using the changeset viewer.