def delete_worksheet(self, worksheet_id, modifier_id): worksheet = Worksheet.get_by_key(worksheet_id) worksheet.delete(modifier_id) query = Task.all() query.filter("worksheet_id =", worksheet_id) query.set("worksheet_id", EMPTY_UID) query.set("is_trashed", True) query.update(modifier_id) query = Worksheet.all() return True
def get_worksheet(self, worksheet_id): worksheet = Worksheet.get_by_key(worksheet_id) return worksheet