Beispiel #1
0
 def event(self):
     return Event.get_or_404(self.event_id, is_deleted=False)
Beispiel #2
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.event = (
         Event.get_or_404(request.view_args['event_id']) if 'event_id' in request.view_args else None
     )
Beispiel #3
0
 def _build_report(self):
     event = Event.get_or_404(self.params['event_id'], is_deleted=False)
     new_material = get_nested_attached_items(event)
     self.material = {'tree': [self._format_data(new_material)]}