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)
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)
def getJobsAwaitingApproval(): ret = etree.Element("choicesAvailableForUnits") for UUID, choice in choicesAvailableForUnits.items(): ret.append(choice.xmlify()) return etree.tostring(ret, pretty_print=True)
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)