Esempio n. 1
0
    def get(self, **kwargs):
        print('GET Schedule', kwargs, request.args, request.form, request.data)
        task = TaskGetSchedule(**request.args.to_dict())
        schedule_list = task.execute()

        result = {'success': True, 'result': schedule_list}
        return json.dumps(result, indent=4, sort_keys=True, cls=new_alchemy_encoder(), check_circular=False)
        pass
Esempio n. 2
0
 def get(self, schedule_id):
     print 'GET ONE Schedule', schedule_id
     task = TaskGetSchedule(id=schedule_id)
     result = {'success': True, 'result': task.execute()}
     return json.dumps(result, indent=4, sort_keys=True, cls=new_alchemy_encoder(), check_circular=False)