Пример #1
0
 def _process(self, args):
     update_room_equipment(self.room, args['available_equipment'])
     return jsonify(room_update_schema.dump(self.room, many=False))
Пример #2
0
 def _process_GET(self):
     return jsonify(room_update_schema.dump(self.room))
Пример #3
0
 def _process(self, args):
     update_room(self.room, args)
     RHRoomsPermissions._jsonify_user_permissions.clear_cached(session.user)
     return jsonify(room_update_schema.dump(self.room, many=False))