Example #1
0
 def post(self):
     list_name = self.request.POST['list_name'].strip()
     sub_list = self.request.POST['list'].split('\n')
     new_list = []
     for item in sub_list:
         if item.strip() <> '': new_list.append(item.strip())
     person = Person().getCurrentPerson()
     person.updateTimesheetTasks(new_list)
     self.response.out.write(json.dumps({"response": person.toDict()}))
Example #2
0
 def post(self):
     person = Person().getCurrentPerson()
     self.response.out.write(json.dumps({"response": person.toDict()}))
Example #3
0
 def post(self):
     new_field_value = self.request.POST['new_field_value'].strip()
     field_name = self.request.POST['field_name'].strip()
     person = Person().getCurrentPerson()
     person.updateField(field_name, new_field_value)
     self.response.out.write(json.dumps({"response": person.toDict()}))