Exemple #1
0
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
Exemple #2
0
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
Exemple #4
0
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
Exemple #5
0
def get_job(id):
    return parse_job(rest.get_resource_as_xml("%s/jobs/%s" % (WS_URL, id)))
Exemple #6
0
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
Exemple #7
0
def alive():
    """Is the Pipeline2 alive?"""
    uri = "{0}/alive".format(settings.BASEURI)
    doc = rest.get_resource_as_xml(uri)
    return doc
Exemple #8
0
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
Exemple #9
0
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