def _checkProtection( self ): if self._target.getOwner().getAvatar() != self._getUser() or self._getUser() is None: tempTarget = self._target self._target = self._conf RHRegistrationFormModifBase._checkProtection(self) self._target = tempTarget
def _checkParams( self, params ): RHRegistrationFormModifBase._checkParams(self, params) regId=params.get("registrantId",None) if regId is None: raise MaKaCError(_("registrant id not set")) self._registrant=self._conf.getRegistrantById(regId) if self._registrant is None: raise NotFoundError(_("The registrant with id %s does not exist or has been deleted")%regId)
def _checkParams(self, params): RHRegistrationFormModifBase._checkParams(self, params) regId = params.get("registrantId", None) if regId is None: raise MaKaCError(_("registrant id not set")) self._registrant = self._conf.getRegistrantById(regId) if self._registrant is None: raise NotFoundError( _("The registrant with id %s does not exist or has been deleted" ) % regId)
def _checkParams(self, params): RHRegistrationFormModifBase._checkParams( self, params ) self._regsIds = self._normaliseListParam(params.get("regsIds",[])) self._cancel=params.has_key("cancel") self._send = params.has_key("OK") self._preview = params.has_key("preview") if not self._cancel: if params.get("from","") == "": raise FormValuesError("Please write from address") if params.get("subject","") == "": raise FormValuesError("Please write any subject for the email") if params.get("body","") == "": raise FormValuesError("Please write any body for the email") self._p={} self._p["subject"]=params["subject"] self._p["from"]=params["from"] self._p["body"]=params["body"] self._p["cc"]=[params.get("cc", "")]
def _checkProtection( self ): RHRegistrationFormModifBase._checkProtection(self) if not self._conf.hasEnabledSection("regForm"): raise MaKaCError( _("The registrants' management was disabled by the conference managers"))
def _checkProtection(self): RHRegistrationFormModifBase._checkProtection(self) if not self._conf.hasEnabledSection("regForm"): raise MaKaCError( _("The registrants' management was disabled by the conference managers" ))