Пример #1
0
 def _process_PATCH(self, data):
     update_tag(self.tag, **data)
     return EditingTagSchema().jsonify(self.tag)
Пример #2
0
 def _process(self):
     return EditingTagSchema(many=True).jsonify(self.event.editing_tags)
Пример #3
0
 def _process(self, data):
     tag = create_new_tag(self.event, **data)
     return EditingTagSchema().jsonify(tag)
Пример #4
0
 def _process_PATCH(self, data):
     if self.tag.system and not self.is_service_call:
         raise Forbidden
     update_tag(self.tag, **data)
     return EditingTagSchema().jsonify(self.tag)