Exemple #1
0
 def _processIfActive( self ):
     if self._getUser() is not None and self._getUser().isRegisteredInConf(self._conf):
         p = registrationForm.WPRegistrationFormAlreadyRegistered(self, self._conf)
     else:
         if self._conf.getRegistrationForm().isFull():
             p = registrationForm.WPRegistrationFormFull(self, self._conf)
         elif not self._conf.getRegistrationForm().inRegistrationPeriod():
             p = registrationForm.WPRegistrationFormClosed(self, self._conf)
         else:
             p = registrationForm.WPRegistrationFormDisplay(self, self._conf)
     return p.display()
Exemple #2
0
 def _processIfActive(self):
     if (self._conf.getRegistrationForm().isFull() or
             not self._conf.getRegistrationForm().inRegistrationPeriod() or
             (session.avatar and session.avatar.isRegisteredInConf(self._conf))):
         return redirect(url_for('event.confRegistrationFormDisplay', self._conf))
     return registrationForm.WPRegistrationFormDisplay(self, self._conf).display()
Exemple #3
0
 def _process(self):
     p = registrationForm.WPRegistrationFormDisplay(self, self._conf)
     return p.display()