Changeset 7253 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 2 Dec 2011, 21:13:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7251 r7253 1762 1762 return 1763 1763 1764 # To be specified in the customisation package 1765 def dataNotComplete(self): 1766 #store = getUtility(IExtFileStore) 1767 #if not store.getFileByContext(self.context, attr=u'xyz.jpg'): 1768 # return 'No xyz scan uploaded.' 1769 return False 1770 1764 1771 @grok.action('Save and request clearance') 1765 1772 def requestClearance(self, **data): 1766 1773 self.applyData(self.context, **data) 1767 1774 self.context._p_changed = True 1768 #if self.dataNotComplete():1769 #self.flash(self.dataNotComplete())1770 #return1775 if self.dataNotComplete(): 1776 self.flash(self.dataNotComplete()) 1777 return 1771 1778 self.flash('Clearance form has been saved.') 1772 1779 self.redirect(self.url(self.context,'request_clearance'))
Note: See TracChangeset for help on using the changeset viewer.