Beispiel #1
0
 def fetch_taskcomments(self, task_id, limit=model.DEFAULT_FETCH_LIMIT):
     query = TaskComment.all()
     query.order("-modified_time")
     def taskcomment_proc(taskcomment):
         taskcomment.userName = user.get_user_display_name(taskcomment.creator_id)
     query.filter("task_id =", task_id)
     return query.fetch(model_proc=taskcomment_proc, limit=limit)
Beispiel #2
0
 def delete_taskcomments(self, task_id, modifier_id):
     query = TaskComment.all()
     query.filter("task_id =", task_id)
     query.delete(modifier_id)
     return True