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

All Samples(17)  |  Call(12)  |  Derive(0)  |  Import(5)

src/a/r/archivematica-HEAD/src/dashboard/src/main/views.py   archivematica(Download)
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
import elasticSearchFunctions
from archivematicaFunctions import escape
 
""" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    # for any other encoding present.
    for item in objects:
        item.filename = escape(item.filename)
        item.arguments = escape(item.arguments)
        item.stdout = escape(item.stdout)
        item.stderror = escape(item.stderror)

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaCreateMETS2.py   archivematica(Download)
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
import databaseInterface
from archivematicaFunctions import escape
from archivematicaFunctions import strToUnicode
from archivematicaFunctions import normalizeNonDcElementName
        print >>sys.stderr, "Error: no location found."
    while row != None:
        etree.SubElement(object, "originalName").text = escape(row[0])
        row = c.fetchone()
    sqlLock.release()
        etree.SubElement(event, "eventType").text = row[3]
        etree.SubElement(event, "eventDateTime").text = row[4].__str__().replace(" ", "T")
        etree.SubElement(event, "eventDetail").text = escape(row[5])
 
        eventOutcomeInformation  = etree.SubElement(event, "eventOutcomeInformation")
        etree.SubElement(eventOutcomeInformation, "eventOutcome").text = row[6]
        eventOutcomeDetail = etree.SubElement(eventOutcomeInformation, "eventOutcomeDetail")
        etree.SubElement(eventOutcomeDetail, "eventOutcomeDetailNote").text = escape(row[7])

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaCreateMETS.py   archivematica(Download)
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
import databaseInterface
from archivematicaFunctions import escape
 
 
 
    structMapParent.set("TYPE", "directory")
    structMapParent.set("LABEL", escape(filename))
 
 
 
                    ID = "file-" + myuuid.__str__()
                    fileI.set("ID", escape(ID))
                    if includeAmdSec:
                        fileI.set("ADMID", "digiprov-" + item.__str__() + "-"    + myuuid.__str__())
 
                    Flocat = newChild(fileI, "FLocat")
                    Flocat.set(xlinkBNS + "href", escape(pathSTR) )
                    fptr = newChild(structMapParent, "fptr")
                    FILEID = "file-" + myuuid.__str__()
                    fptr.set("FILEID", escape(FILEID))
 
if __name__ == '__main__':

src/a/r/archivematica-HEAD/src/dashboard/src/components/ingest/views.py   archivematica(Download)
import elasticSearchFunctions, databaseInterface, databaseFunctions
from archivematicaCreateStructuredDirectory import createStructuredDirectory
from archivematicaFunctions import escape
 
sys.path.append("/usr/lib/archivematica/archivematicaCommon/externals")
    objects = getNormalizationReportQuery(sipUUID=uuid)
    for o in objects:
        o['location'] = escape(o['location'])
 
    results_per_page = 10

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaCreateMETSRights.py   archivematica(Download)
import databaseInterface
from sharedVariablesAcrossModules import sharedVariablesAcrossModules
from archivematicaFunctions import escape