Beispiel #1
0
 def delete_item(self, item_id):
     my_item = User.get(
         User.id == item_id,
         User.is_deleted == False
     )
     my_item.is_deleted = True
     my_item.changed()
     my_item.save()
     return my_item
Beispiel #2
0
 def read_item(self, item_id):
     item = User.get(User.id == item_id, User.is_deleted == False)
     return item