Exemplo n.º 1
0
 def _process(self, attributes):
     update_room_attributes(self.room, attributes)
     return jsonify(room_attribute_values_schema.dump(self.room.attributes))
Exemplo n.º 2
0
 def _process(self):
     return jsonify(room_attribute_values_schema.dump(self.room.attributes))
Exemplo n.º 3
0
 def _process(self):
     return jsonify(room_attribute_values_schema.dump(self.room.attributes))
Exemplo n.º 4
0
 def _process(self, attributes):
     update_room_attributes(self.room, attributes)
     return jsonify(room_attribute_values_schema.dump(self.room.attributes))
Exemplo n.º 5
0
 def _process(self):
     attributes = self.room.attributes.filter(RoomAttributeAssociation.attribute.has(~RoomAttribute.is_hidden)).all()
     return jsonify(room_attribute_values_schema.dump(attributes))