Exemplo n.º 1
0
def getJobsAwaitingApproval():
    ret = etree.Element("choicesAvailableForUnits")
    dbStatus = verifyDatabaseIsNotLocked()
    if dbStatus:
        #print etree.tostring(dbStatus)
        return etree.tostring(dbStatus)
    for UUID, choice in choicesAvailableForUnits.items():
        ret.append(choice.xmlify())
    return etree.tostring(ret, pretty_print=True)
Exemplo n.º 2
0
def getJobsAwaitingApproval():
    ret = etree.Element("choicesAvailableForUnits")
    dbStatus = verifyDatabaseIsNotLocked()
    if dbStatus:
        #print etree.tostring(dbStatus)
        return etree.tostring(dbStatus)
    for UUID, choice in choicesAvailableForUnits.items():
        ret.append(choice.xmlify())
    return etree.tostring(ret, pretty_print=True)
Exemplo n.º 3
0
    def _job_awaiting_approval_handler(self, worker, job):
        """List jobs awaiting for approval.

        [config]
        name = getJobsAwaitingApproval
        raise_exc = True
        """
        ret = etree.Element("choicesAvailableForUnits")
        for uuid, choice in choicesAvailableForUnits.items():
            ret.append(choice.xmlify())
        return etree.tostring(ret, pretty_print=True)
Exemplo n.º 4
0
def getJobsAwaitingApproval():
    ret = etree.Element("choicesAvailableForUnits")
    for UUID, choice in choicesAvailableForUnits.items():
        ret.append(choice.xmlify())
    return etree.tostring(ret, pretty_print=True)
Exemplo n.º 5
0
def job_awaiting_approval_handler(*args):
    ret = etree.Element('choicesAvailableForUnits')
    for uuid, choice in choicesAvailableForUnits.items():
        ret.append(choice.xmlify())
    return etree.tostring(ret, pretty_print=True)