Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/restructureDIPForContentDMUpload.py   archivematica(Download)
from lxml import etree
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
from archivematicaFunctions import normalizeNonDcElementName
from executeOrRunSubProcess import executeOrRun
 
            # metadata. We need to do this because the raw (i.e., human readable field names)
            # are used as field keys in collectionFieldInfo['nonDcMappings'].
            normalizedElement = normalizeNonDcElementName(element)
            if normalizedElement in nonDcMetadata.keys():
                values = ''
                    delimHeaderRow.append(v['name'])
                    # Append the element value to the values row.
                    if normalizeNonDcElementName(k) in nonDcMetadata:
                        # In CONTENTdm, repeated values are joined with a semicolon.
                        normalized_name = normalizeNonDcElementName(k)
                   delimHeaderRow.append(v['name'])
                   # Append the element value to the values row.
                   if normalizeNonDcElementName(k) in nonDcMetadata:
                       # In CONTENTdm, repeated values are joined with a semicolon.
                       normalized_name = normalizeNonDcElementName(k)

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaCreateMETS2.py   archivematica(Download)
from archivematicaFunctions import escape
from archivematicaFunctions import strToUnicode
from archivematicaFunctions import normalizeNonDcElementName
from sharedVariablesAcrossModules import sharedVariablesAcrossModules
sharedVariablesAcrossModules.globalErrorCount = 0
                mdWrap.set("OTHERMDTYPE", "CUSTOM")
                other = etree.SubElement(mdWrap, "xmlData")
            etree.SubElement(other, normalizeNonDcElementName(key)).text = value
    return  " ".join(ret)