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
def read_item(self, item_id): item = User.get(User.id == item_id, User.is_deleted == False) return item