예제 #1
0
파일: mapping.py 프로젝트: hibozzy/mediatum
def exportMapping(name):
    if name == "all":
        return getNodeXML(tree.getRoot("mappings"))
    else:
        return getNodeXML(getMapping(name))
예제 #2
0
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))
예제 #3
0
파일: mapping.py 프로젝트: agromsl/mediatum
def exportMapping(name):
    if name == "all":
        return getNodeXML(tree.getRoot("mappings"))
    else:
        return getNodeXML(getMapping(name))
예제 #4
0
def exportMetaScheme(name):
    if name == "all":
        return getNodeXML(tree.getRoot("metadatatypes"))
    else:
        return getNodeXML(getMetaType(name))
예제 #5
0
def exportWorkflow(name):
    if name == "all":
        return getNodeXML(q(Workflows).one())
    else:
        return getNodeXML(getWorkflow(name))
예제 #6
0
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))
예제 #7
0
def exportWorkflow(name):
    if name == "all":
        return getNodeXML(q(Workflows).one())
    else:
        return getNodeXML(getWorkflow(name))
예제 #8
0
def exportWorkflow(name):
    if name == "all":
        return getNodeXML(tree.getRoot("workflows"))
    else:
        return getNodeXML(getWorkflow(name))
예제 #9
0
def exportWorkflow(name):
    if name == "all":
        return getNodeXML(tree.getRoot("workflows"))
    else:
        return getNodeXML(getWorkflow(name))