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

All Samples(11)  |  Call(4)  |  Derive(0)  |  Import(7)

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/transcoder.py   archivematica(Download)
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
from executeOrRunSubProcess import executeOrRun
from archivematicaFunctions import escapeForCommand
 
# TODO is this needed?  Django models used, but not defined/queried here
            # For each key replace all instances of the key in the command string
            for key, value in self.replacement_dict.iteritems():
                self.command = self.command.replace(key, escapeForCommand(value) )
        # For other command types, we translate the entries from
        # replacement_dict into GNU-style long options, e.g.
        # [%fileName%, foo] => --file-name=foo
        else:
            for key, value in self.replacement_dict.iteritems():
                optname = re.sub(r'([A-Z]+)', r'-\1', key[1:-1]).lower()
                optvalue = escapeForCommand(value)

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaFITS.py   archivematica(Download)
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
from archivematicaFunctions import getTagged
from archivematicaFunctions import escapeForCommand
from databaseFunctions import insertIntoFPCommandOutput
from databaseFunctions import insertIntoEvents
    tempFile="/tmp/" + uuid.uuid4().__str__()
 
    command = "fits.sh -i \"" + escapeForCommand(target) + "\" -o \"" + tempFile + "\""
    try:
        p = subprocess.Popen(shlex.split(command), stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

src/a/r/archivematica-HEAD/src/transcoder/lib/transcoder.py   archivematica(Download)
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
from executeOrRunSubProcess import executeOrRun
from archivematicaFunctions import escapeForCommand
import databaseInterface
LowerEndMainGroupMax = -10
            #self.outputLocation = toStrFromUnicode(self.outputLocation)
            #self.command = self.command.replace ( key, quote(replacementDic[key]) )
            self.command = self.command.replace( key, escapeForCommand(replacementDic[key]) )
            if self.outputLocation:
                self.outputLocation = self.outputLocation.replace( key, replacementDic[key] )

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaTika.py   archivematica(Download)
from executeOrRunSubProcess import executeOrRun
from archivematicaFunctions import getTagged
from archivematicaFunctions import escapeForCommand
from databaseFunctions import insertIntoEvents
from databaseFunctions import insertIntoFilesIDs

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaMediaInfo.py   archivematica(Download)
from executeOrRunSubProcess import executeOrRun
from archivematicaFunctions import getTagged
from archivematicaFunctions import escapeForCommand
from databaseFunctions import insertIntoEvents
from databaseFunctions import insertIntoFilesIDs

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaFido.py   archivematica(Download)
from executeOrRunSubProcess import executeOrRun
from archivematicaFunctions import getTagged
from archivematicaFunctions import escapeForCommand
from databaseFunctions import insertIntoEvents
from databaseFunctions import insertIntoFilesIDs

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/archivematicaClamscan.py   archivematica(Download)
from executeOrRunSubProcess import executeOrRun
from databaseFunctions import insertIntoEvents
from archivematicaFunctions import escapeForCommand
 
clamscanResultShouldBe="Infected files: 0"