Exemple #1
0
 def alter_box_by_uuid(self, box_uuid, description=None, location=None):
     box = self.sessh.query(Box).filter(Box.box_uuid == box_uuid)
     description = description or box[0].description
     location = location or box[0].location
     box.update(
         {
             "description": description,
             "location": location,
             "last_modified": make_timestamp()
         },
         synchronize_session='evaluate')
     self.sessh.commit()
Exemple #2
0
 def alter_item_by_uuid(self, item_uuid, description=None, in_box=None):
     item = self.sessh.query(Item).filter(Item.item_uuid == item_uuid)
     description = description or item[0].description
     in_box = in_box or item[0].in_box
     item.update(
         {
             "description": description,
             "in_box": in_box,
             "last_modified": make_timestamp()
         },
         synchronize_session='evaluate')
     self.sessh.commit()
Exemple #3
0
 def __init__(self, description, box_uuid, location=None):
     self.box_uuid = box_uuid
     self.description = description
     if location:
         self.location = location
     self.last_modified = make_timestamp()
Exemple #4
0
 def __init__(self, description, box_uuid, location=None):
     self.box_uuid = box_uuid
     self.description = description
     if location:
         self.location = location
     self.last_modified = make_timestamp()
Exemple #5
0
 def __init__(self, description, item_uuid, in_box = None):
     self.item_uuid = item_uuid
     self.description = description
     if in_box:
         self.in_box = in_box
     self.last_modified = make_timestamp()
Exemple #6
0
 def __init__(self, description, item_uuid, in_box=None):
     self.item_uuid = item_uuid
     self.description = description
     if in_box:
         self.in_box = in_box
     self.last_modified = make_timestamp()
Exemple #7
0
 def alter_box_by_uuid(self, box_uuid, description=None, location=None):
     box = self.sessh.query(Box).filter(Box.box_uuid == box_uuid)
     description = description or box[0].description
     location = location or box[0].location
     box.update({"description": description, "location": location, "last_modified": make_timestamp()}, synchronize_session='evaluate')
     self.sessh.commit()
Exemple #8
0
 def alter_item_by_uuid(self, item_uuid, description=None, in_box=None):
     item = self.sessh.query(Item).filter(Item.item_uuid == item_uuid)
     description = description or item[0].description
     in_box = in_box or item[0].in_box
     item.update({"description": description, "in_box": in_box, "last_modified": make_timestamp()}, synchronize_session='evaluate')
     self.sessh.commit()