Ignore:
Timestamp:
31 Jan 2015, 07:29:27 (10 years ago)
Author:
Henrik Bettermann
Message:

Provide method to customize requirements for submitting registration form.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py

    r12527 r12528  
    732732        return
    733733
     734    def dataNotComplete(self):
     735        """To be implemented in the customization package.
     736        """
     737        return False
     738
    734739    @action(_('Save and request registration now'),
    735740            warning=WARNING_CUST, condition=is_requestable)
    736741    def finalsubmit(self, **data):
    737742        msave(self, **data)
     743        if self.dataNotComplete():
     744            self.flash(self.dataNotComplete(), type="warning")
     745            return
    738746        IWorkflowInfo(self.context).fireTransition('request')
    739747        self.flash(_('Registration form has been submitted.'))
Note: See TracChangeset for help on using the changeset viewer.