예제 #1
0
 def put(self):
   model = project.Project.get(db.Key(restful.get_model_key(self)))
   assist.update_model_from_params(model, self.request.params)
   restful.send_successful_response(self, model.to_xml())
예제 #2
0
파일: tasks.py 프로젝트: dima/pomodo_on_gae
 def post(self):
   model = task.Task(key_name = restful.gen_new_key())
   assist.update_model_from_params(model, self.request.params)
   restful.send_successful_response(self, model.to_xml())
예제 #3
0
 def post(self):
   model = project.Project()
   assist.update_model_from_params(model, self.request.params)
   restful.send_successful_response(self, model.to_xml())
예제 #4
0
 def post(self):
   model = location.Location()
   assist.update_model_from_params(model, self.request.params)
   restful.send_successful_response(self, model.to_xml())