def get_job(job_id): """Return an XML document for a given job""" uri = "{0}/jobs/{1}".format(settings.BASEURI, job_id) doc = rest.get_resource_as_xml(uri) return doc
def get_scripts(): """Return an XML document for all scripts""" uri = "{0}/scripts".format(settings.BASEURI) doc = rest.get_resource_as_xml(uri) return doc
def alive(): """Is the Pipeline2 alive?""" uri = "{0}/alive".format(settings.BASEURI) doc = rest.get_resource_as_xml(uri) return doc
def get_script(script_id): """Return an XML document for a given script""" uri = "{0}/scripts/{1}".format(settings.BASEURI, script_id) doc = rest.get_resource_as_xml(uri) return doc
def get_job(id): return parse_job(rest.get_resource_as_xml("%s/jobs/%s" % (WS_URL, id)))
def get_scripts(): """Return an XML document for all scripts""" uri = "{0}/scripts".format(settings.BASEURI) doc = rest.get_resource_as_xml(uri) return doc
def alive(): """Is the Pipeline2 alive?""" uri = "{0}/alive".format(settings.BASEURI) doc = rest.get_resource_as_xml(uri) return doc
def get_job(job_id): """Return an XML document for a given job""" uri = "{0}/jobs/{1}".format(settings.BASEURI, job_id) doc = rest.get_resource_as_xml(uri) return doc
def get_script(script_id): """Return an XML document for a given script""" uri = "{0}/scripts/{1}".format(settings.BASEURI, script_id) doc = rest.get_resource_as_xml(uri) return doc