Beispiel #1
0
 def delete(self, lid):
     LeaveEvent.delete(lid)
     return self.succ()
Beispiel #2
0
 def post(self):
     submit = self.request()
     LeaveEvent.add(submit)
     return self.succ()
Beispiel #3
0
 def get(self, begin_time, end_time):
     return self.succ(
         LeaveEvent.between(datetime.strptime(begin_time, "%Y-%m-%d"),
                            datetime.strptime(end_time, "%Y-%m-%d"))
     )
Beispiel #4
0
 def delete(self, lid):
     LeaveEvent.delete(lid)
     return self.succ()
Beispiel #5
0
 def post(self):
     submit = self.request()
     LeaveEvent.add(submit)
     return self.succ()
Beispiel #6
0
 def get(self, begin_time, end_time):
     return self.succ(
         LeaveEvent.between(datetime.strptime(begin_time, "%Y-%m-%d"),
                            datetime.strptime(end_time, "%Y-%m-%d")))