Example #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)
Example #2
0
 def delete_taskcomment(self, taskcoment_id, modifier_id):
     taskcomment = TaskComment.get_by_key(taskcoment_id)
     if taskcomment.creator_id != modifier_id:
         raise Error("task_error_deleteotherstaskcomment")
     if taskcomment.creator_id != modifier_id:
         raise Error("")
     taskcomment.delete(modifier_id)
     return True
Example #3
0
 def delete_taskcomments(self, task_id, modifier_id):
     query = TaskComment.all()
     query.filter("task_id =", task_id)
     query.delete(modifier_id)
     return True