示例#1
0
文件: tickets.py 项目: qroques/indico
 def _check_access(self):
     RHRegistrationFormRegistrationBase._check_access(self)
     if self.registration.state != RegistrationState.complete:
         raise Forbidden
     if not self.regform.tickets_enabled:
         raise Forbidden
     if not self.regform.ticket_on_event_page and not self.regform.ticket_on_summary_page:
         raise Forbidden
示例#2
0
 def _checkProtection(self):
     RHRegistrationFormRegistrationBase._checkProtection(self)
     if self.registration.state != RegistrationState.complete:
         raise Forbidden
     if not self.regform.tickets_enabled:
         raise Forbidden
     if not self.regform.ticket_on_event_page and not self.regform.ticket_on_summary_page:
         raise Forbidden
示例#3
0
 def _process_args(self):
     RHRegistrationFormRegistrationBase._process_args(self)
     if self.registration is None:
         raise NotFound
示例#4
0
 def _checkParams(self, params):
     RHRegistrationFormRegistrationBase._checkParams(self, params)
     if self.registration is None:
         raise NotFound
 def _process_args(self):
     RHRegistrationFormRegistrationBase._process_args(self)
     self.cern_access_request = get_last_request(self.event)
     if not self.cern_access_request:
         raise NotFound
示例#6
0
文件: tickets.py 项目: qroques/indico
 def _process_args(self):
     RHRegistrationFormRegistrationBase._process_args(self)
     if not self.registration:
         raise NotFound
示例#7
0
 def _checkParams(self, params):
     RHRegistrationFormRegistrationBase._checkParams(self, params)
     if self.registration is None:
         raise NotFound
示例#8
0
 def _process_args(self):
     RHRegistrationFormRegistrationBase._process_args(self)
     if self.registration is None:
         raise NotFound
示例#9
0
 def _process_args(self):
     RHRegistrationFormRegistrationBase._process_args(self)
     if not self.registration:
         raise NotFound