Ignore:
Timestamp:
2 Dec 2011, 21:13:55 (13 years ago)
Author:
Henrik Bettermann
Message:

Before submission of clearance forms it must be checked if required scans are missing. This has to be specified in the customization packages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r7251 r7253  
    17621762        return
    17631763
     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
    17641771    @grok.action('Save and request clearance')
    17651772    def requestClearance(self, **data):
    17661773        self.applyData(self.context, **data)
    17671774        self.context._p_changed = True
    1768         #if self.dataNotComplete():
    1769         #    self.flash(self.dataNotComplete())
    1770         #    return
     1775        if self.dataNotComplete():
     1776            self.flash(self.dataNotComplete())
     1777            return
    17711778        self.flash('Clearance form has been saved.')
    17721779        self.redirect(self.url(self.context,'request_clearance'))
Note: See TracChangeset for help on using the changeset viewer.