def _process_args(self): RHAgreementManagerDetails._process_args(self) if 'id' in request.view_args: self.agreement = Agreement.get_or_404(request.view_args['id']) if self.event != self.agreement.event: raise NotFound if not self.agreement.pending: raise NoReportError(_("The agreement is already signed")) else: self.agreement = None identifier = request.args['identifier'] try: self.person = self.definition.get_people(self.event)[identifier] except KeyError: raise NotFound
def _process_args(self): RHDisplayEventBase._process_args(self) self.agreement = Agreement.get_or_404(request.view_args['id']) if self.agreement.is_orphan(): raise NotFound('The agreement is not active anymore')
def _process_args(self): RHAgreementManagerDetails._process_args(self) self.agreement = Agreement.get_or_404(request.view_args['id'])