Changeset 9955


Ignore:
Timestamp:
15 Feb 2013, 09:57:56 (12 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes made in base package.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students
Files:
2 deleted
1 edited

Legend:

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

    r9789 r9955  
    6060class CustomStartClearancePage(StartClearancePage):
    6161
    62     grok.template('startclearance')
    63 
    64     def update(self, SUBMIT=None):
    65         if not self.context.state == ADMITTED:
    66             self.flash(_("Wrong state"))
    67             self.redirect(self.url(self.context))
    68             return
    69         if not self.portrait_uploaded:
    70             self.flash(_("No portrait uploaded."))
    71             self.redirect(self.url(self.context, 'change_portrait'))
    72             return
    73         if not self.all_required_fields_filled:
    74             self.flash(_("Not all required fields filled."))
    75             self.redirect(self.url(self.context, 'edit_base'))
    76             return
    77         if SUBMIT is None:
    78             return
    79         IWorkflowInfo(self.context).fireTransition('start_clearance')
    80         self.flash(_('Clearance process has been started.'))
    81         self.redirect(self.url(self.context,'cedit'))
    82         return
     62    with_ac = False
    8363
    8464class CustomStudentClearanceEditFormPage(NigeriaStudentClearanceEditFormPage):
     
    9272    """ Page to add an online payment ticket
    9373    """
    94     grok.template('bookbed')
    9574    buttonname = _('Create bed ticket')
    9675    notice = ''
Note: See TracChangeset for help on using the changeset viewer.