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