Esempio n. 1
0
 def _process_args(self):
     RHEditingManagementBase._process_args(self)
     self.editable_type = EditableType[request.view_args['type']]
     self.file_type = (EditingFileType.query
                       .with_parent(self.event)
                       .filter_by(id=request.view_args['file_type_id'], type=self.editable_type)
                       .first_or_404())
Esempio n. 2
0
 def _process_args(self):
     RHEditingManagementBase._process_args(self)
     uuid = request.view_args['uuid']
     conditions = editing_settings.get(self.event, 'review_conditions')
     self.uuid = unicode(uuid)
     if self.uuid not in conditions:
         raise NotFound
Esempio n. 3
0
 def _process_args(self):
     RHEditingManagementBase._process_args(self)
     self.editable_type = EditableType[request.view_args['type']]
     uuid = request.view_args['uuid']
     conditions = editing_settings.get(self.event, self.editable_type.name + '_review_conditions')
     self.uuid = unicode(uuid)
     if self.uuid not in conditions:
         raise NotFound
Esempio n. 4
0
 def _process_args(self):
     RHEditingManagementBase._process_args(self)
     self.editable_type = EditableType[request.view_args['type']]
Esempio n. 5
0
 def _process_args(self):
     RHEditingManagementBase._process_args(self)
     self.tag = (EditingTag.query.with_parent(self.event).filter_by(
         id=request.view_args['tag_id']).first_or_404())
Esempio n. 6
0
 def _process_args(self):
     RHEditingManagementBase._process_args(self)
     self.editable_type = EditableType[request.view_args['type']]
     id_ = request.view_args['condition_id']
     self.condition = EditingReviewCondition.query.with_parent(
         self.event).filter_by(id=id_).first_or_404()