Ejemplo n.º 1
0
 def push(self):
     parameter = core.parameter_encode(self.attributes)
     parameter["command"] = "update_project"
     res = API.post(parameter)
     if res:
         print res
         return True
     else:
         return False
Ejemplo n.º 2
0
 def save(self):
     parameter = core.parameter_encode(self.attributes)
     parameter["command"] = "add_task_target_type"
     res = API.post(parameter)
     if res:
         data = json.loads(res)
         self.attributes.update(data)
         return True
     else:
         return False
Ejemplo n.º 3
0
    def save(self):
        if not self.task:
            print "The note have not mission_code."
            return False

        parameter = core.parameter_encode(self.attributes)
        parameter["command"] = "add_task_note"
        res = API.post(parameter)
        if res:
            data = json.loads(res)
            self.attributes.update(data)
            return True
        else:
            return False
Ejemplo n.º 4
0
 def pull(self):
     parameter = core.parameter_encode(self.attributes)
     parameter["command"] = "project_by_id"