Example #1
0
 def _processIfActive(self):
     if not self._registrant:
         return redirect(url_for('event.confRegistrationFormDisplay-display', self._conf))
     if not self._regForm.inModificationPeriod():
         flash(_("The modification period is over."), 'error')
         return redirect(url_for('event.confRegistrationFormDisplay', self._conf))
     return registrationForm.WPRegistrationFormModify(self, self._conf).display()
Example #2
0
 def _process( self ):
     user = self._getUser()
     canManageRegistration = self._conf.canManageRegistration(user)
     if not canManageRegistration and (not self._regForm.isActivated() or not self._conf.hasEnabledSection("regForm")):
         p = registrationForm.WPRegFormInactive( self, self._conf )
         return p.display()
     if user is not None and user.isRegisteredInConf(self._conf):
         if not self._conf.getRegistrationForm().inRegistrationPeriod() and not self._conf.getRegistrationForm().inModificationPeriod():
             p = registrationForm.WPRegistrationFormClosed(self, self._conf)
             return p.display()
         else:
             p = registrationForm.WPRegistrationFormModify(self, self._conf)
             return p.display()
     self._redirect(urlHandlers.UHConfRegistrationForm.getURL(self._conf))