Beispiel #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)
Beispiel #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,
     )
Beispiel #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,
     )
Beispiel #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,
     )
Beispiel #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))
Beispiel #6
0
 def get_data(self):
     return adapter.adapt_many(adapter.ServiceAdapter, self.collection)
Beispiel #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)
Beispiel #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
     )
Beispiel #9
0
 def render_GET(self, request):
     return respond(request, adapter.adapt_many(adapter.ActionRunAdapter, self.action_runs))
Beispiel #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))
Beispiel #11
0
 def get_data(self):
     return adapter.adapt_many(adapter.ServiceAdapter, self.collection)
Beispiel #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)
Beispiel #13
0
 def render_GET(self, request):
     return respond(
         request,
         adapter.adapt_many(adapter.ActionRunAdapter, self.action_runs))
Beispiel #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}
Beispiel #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}
Beispiel #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)