Changeset 10707 for main/kofacustom.nigeria
- Timestamp:
- 6 Nov 2013, 16:26:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py
r10264 r10707 35 35 ExportPDFBedTicketSlipPage, 36 36 StudentFilesUploadPage, emit_lock_message) 37 from waeup.kofa.students.interfaces import IStudentsUtils 37 38 from waeup.kofa.students.viewlets import ( 38 39 PaymentReceiptActionButton, StudentPassportActionButton) … … 215 216 @property 216 217 def target_url(self): 218 # Passport pictures must not be editable if application slip 219 # exists. 217 220 slip = getUtility(IExtFileStore).getFileByContext( 218 221 self.context, 'application_slip') 219 if self.context.state != ADMITTED or slip is not None: 222 PWCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES 223 if self.context.state not in PWCHANGE_STATES or slip is not None: 220 224 return '' 221 225 return self.view.url(self.view.context, self.target) … … 229 233 230 234 def update(self): 235 # Passport pictures must not be editable if application slip 236 # exists. 231 237 slip = getUtility(IExtFileStore).getFileByContext( 232 238 self.context, 'application_slip') 233 if self.context.state != ADMITTED or slip is not None: 239 PWCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES 240 if self.context.state not in PWCHANGE_STATES or slip is not None: 234 241 emit_lock_message(self) 235 242 return
Note: See TracChangeset for help on using the changeset viewer.