示例#1
0
 def put(self, sid):
     submit = self.request()
     submit["schedule_id"] = sid
     ProjectSchedule.edit_members(submit)
     return self.succ()
示例#2
0
 def post(self, pid):
     submit = self.request()
     submit["project_id"] = pid
     ProjectSchedule.add(submit)
     return self.succ()
示例#3
0
 def post(self, pid):
     submit = self.request()
     submit["project_id"] = pid
     ProjectSchedule.add(submit)
     return self.succ()
示例#4
0
        ProjectSchedule.add(submit)
        return self.succ()

    def put(self, pid):
        submit = self.request()
        submit["project_id"] = pid
        ProjectSchedule.edit(submit)
        return self.succ()


if __name__ == "__main__":





    def sched(id,time):
        return {
            "type":"release",
            "begin_time":time,
            "end_time":time,
            "status":"完成",
            "project_id":id
        }

    ProjectSchedule.add(sched(6,"2016-01-13"))
    ProjectSchedule.add(sched(7,"2016-01-08"))
    ProjectSchedule.add(sched(8,"2016-01-20"))
    ProjectSchedule.add(sched(9,"2016-02-01"))
    ProjectSchedule.add(sched(10,"2016-01-26"))
示例#5
0
    def post(self, pid):
        submit = self.request()
        submit["project_id"] = pid
        ProjectSchedule.add(submit)
        return self.succ()

    def put(self, pid):
        submit = self.request()
        submit["project_id"] = pid
        ProjectSchedule.edit(submit)
        return self.succ()


if __name__ == "__main__":

    def sched(id, time):
        return {
            "type": "release",
            "begin_time": time,
            "end_time": time,
            "status": "完成",
            "project_id": id
        }

    ProjectSchedule.add(sched(6, "2016-01-13"))
    ProjectSchedule.add(sched(7, "2016-01-08"))
    ProjectSchedule.add(sched(8, "2016-01-20"))
    ProjectSchedule.add(sched(9, "2016-02-01"))
    ProjectSchedule.add(sched(10, "2016-01-26"))