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()
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()
def _process(self): p = registrationForm.WPRegistrationFormDisplay(self, self._conf) return p.display()