Esempio n. 1
0
def buildRawModuleMetaLeft(group):
    ret = ""
    metadatanames = getMetadata(group)
    metadatanames.sort(lambda x, y: cmp(x.lower(), y.lower()))
    for met in metadatanames:
        ret += '<option value="%s">%s</option>' % (met, met)
    return ret
Esempio n. 2
0
def buildRawModuleMetaLeft(group):
    ret = ""
    metadatanames = getMetadata(group)
    metadatanames.sort(lambda x, y: cmp(x.lower(), y.lower()))
    for met in metadatanames:
        ret += '<option value="%s">%s</option>' % (met, met)
    return ret
Esempio n. 3
0
def buildRawModuleMetaRight(group):
    ret = ""
    mdts = [mdt.name for mdt in tree.getRoot("metadatatypes").getChildren()]
    mdts.sort(lambda x, y: cmp(x.lower(), y.lower()))
    assignedList = getMetadata(group)
    for mod in mdts:
        if mod not in assignedList:
            ret += '<option value="%s">%s</option>' % (mod, mod)
    return ret
Esempio n. 4
0
def buildRawModuleMetaRight(group):
    ret = ""
    mdts = [mdt.name for mdt in tree.getRoot("metadatatypes").getChildren()]
    mdts.sort(lambda x, y: cmp(x.lower(), y.lower()))
    assignedList = getMetadata(group)
    for mod in mdts:
        if mod not in assignedList:
            ret += '<option value="%s">%s</option>' % (mod, mod)
    return ret