Esempio n. 1
0
 def get_data(self, include_job_run=False, include_action_runs=False, namespace=None):
     return adapter.adapt_many(adapter.JobAdapter,
         self.job_collection.get_jobs_by_namespace(namespace) if namespace
         else self.job_collection.get_jobs(),
         include_job_run,
         include_action_runs,
         num_runs=5)
Esempio n. 2
0
 def get_data(self, include_job_run=False, include_action_runs=False):
     return adapter.adapt_many(
         adapter.JobAdapter,
         self.job_collection.get_jobs(),
         include_job_run,
         include_action_runs,
         num_runs=5,
     )
Esempio n. 3
0
 def get_data(
     self,
     include_job_run=False,
     include_action_runs=False,
     include_action_graph=True,
     include_node_pool=True,
 ):
     return adapter.adapt_many(
         adapter.JobAdapter,
         self.job_collection.get_jobs(),
         include_job_run,
         include_action_runs,
         include_action_graph,
         include_node_pool,
         num_runs=5,
     )
Esempio n. 4
0
 def get_data(
     self,
     include_job_run=False,
     include_action_runs=False,
     include_action_graph=True,
     include_node_pool=True,
 ):
     return adapter.adapt_many(
         adapter.JobAdapter,
         self.job_collection.get_jobs(),
         include_job_run,
         include_action_runs,
         include_action_graph,
         include_node_pool,
         num_runs=5,
     )
Esempio n. 5
0
 def render_GET(self, request):
     recorder = event.get_recorder(self.entity_name)
     response_data = adapter.adapt_many(adapter.EventAdapter, recorder.list())
     return respond(request, dict(data=response_data))
Esempio n. 6
0
 def get_data(self):
     return adapter.adapt_many(adapter.ServiceAdapter, self.collection)
Esempio n. 7
0
 def get_job_index(self):
     jobs = adapter.adapt_many(adapter.JobIndexAdapter, self.job_collection.get_jobs())
     return dict((job["name"], job["actions"]) for job in jobs)
Esempio n. 8
0
 def get_data(self, include_job_run=False, include_action_runs=False):
     return adapter.adapt_many(
         adapter.JobAdapter, self.job_collection.get_jobs(), include_job_run, include_action_runs, num_runs=5
     )
Esempio n. 9
0
 def render_GET(self, request):
     return respond(request, adapter.adapt_many(adapter.ActionRunAdapter, self.action_runs))
Esempio n. 10
0
 def render_GET(self, request):
     recorder = event.get_recorder(self.entity_name)
     response_data = adapter.adapt_many(adapter.EventAdapter,
                                        recorder.list())
     return respond(request, dict(data=response_data))
Esempio n. 11
0
 def get_data(self):
     return adapter.adapt_many(adapter.ServiceAdapter, self.collection)
Esempio n. 12
0
 def get_job_index(self):
     jobs = adapter.adapt_many(adapter.JobIndexAdapter,
                               self.job_collection.get_jobs())
     return dict((job['name'], job['actions']) for job in jobs)
Esempio n. 13
0
 def render_GET(self, request):
     return respond(
         request,
         adapter.adapt_many(adapter.ActionRunAdapter, self.action_runs))
Esempio n. 14
0
 def get_job_index(self):
     jobs = adapter.adapt_many(
         adapter.JobIndexAdapter,
         self.job_collection.get_jobs(),
     )
     return {job['name']: job['actions'] for job in jobs}
Esempio n. 15
0
 def get_job_index(self):
     jobs = adapter.adapt_many(
         adapter.JobIndexAdapter,
         self.job_collection.get_jobs(),
     )
     return {job['name']: job['actions'] for job in jobs}
Esempio n. 16
0
 def get_data(self, namespace=None):
     return adapter.adapt_many(adapter.ServiceAdapter,
         self.collection.get_services_by_namespace(namespace) if namespace
         else self.collection)