def exportMapping(name): if name == "all": return getNodeXML(tree.getRoot("mappings")) else: return getNodeXML(getMapping(name))
def exportMapping(name): if name == "all": return getNodeXML(q(Mappings).one()) else: id = q(Node).filter_by(name=unicode(name)).one().id return getNodeXML(getMapping(id))
def exportMetaScheme(name): if name == "all": return getNodeXML(tree.getRoot("metadatatypes")) else: return getNodeXML(getMetaType(name))
def exportWorkflow(name): if name == "all": return getNodeXML(q(Workflows).one()) else: return getNodeXML(getWorkflow(name))
def exportWorkflow(name): if name == "all": return getNodeXML(tree.getRoot("workflows")) else: return getNodeXML(getWorkflow(name))