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

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/createSIPfromTransferObjects.py   archivematica(Download)
import databaseInterface
import databaseFunctions
from archivematicaCreateStructuredDirectory import createStructuredDirectory
from archivematicaCreateStructuredDirectory import createManualNormalizedDirectoriesList
#def updateDB(dst, transferUUID):
    tmpSIPDir = os.path.join(processingDirectory, sipName) + "/"
    destSIPDir =  os.path.join(autoProcessSIPDirectory, sipName) + "/"
    createStructuredDirectory(tmpSIPDir, createManualNormalizedDirectories=False)
 
    #create row in SIPs table if one doesn't already exist

src/a/r/archivematica-HEAD/src/dashboard/src/components/ingest/views.py   archivematica(Download)
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
import elasticSearchFunctions, databaseInterface, databaseFunctions
from archivematicaCreateStructuredDirectory import createStructuredDirectory
from archivematicaFunctions import escape
 
        )
 
        createStructuredDirectory(transfer_path, createManualNormalizedDirectories=False)
 
        processingDirectory = helpers.get_server_config_value('processingDirectory')
        processSIPDirectory = os.path.join(sharedPath, 'watchedDirectories/SIPCreation/SIPsUnderConstruction') + '/'
 
        createStructuredDirectory(tmpSIPDir, createManualNormalizedDirectories=False)
        objectsDirectory = os.path.join(transfer_path, 'objects') + '/'
 

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/createSIPsfromTRIMTransferContainers.py   archivematica(Download)
import databaseInterface
import databaseFunctions
from archivematicaCreateStructuredDirectory import createStructuredDirectory
 
#def updateDB(dst, transferUUID):
        tmpSIPDir = os.path.join(processingDirectory, sipName) + "/"
        destSIPDir =  os.path.join(autoProcessSIPDirectory, sipName) + "/"
        createStructuredDirectory(tmpSIPDir, createManualNormalizedDirectories=True)
        databaseFunctions.createSIP(destSIPDir.replace(sharedPath, '%sharedPath%'), sipUUID)
 

src/a/r/archivematica-HEAD/src/dashboard/src/components/filesystem_ajax/views.py   archivematica(Download)
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
import archivematicaFunctions, databaseInterface, databaseFunctions
from archivematicaCreateStructuredDirectory import createStructuredDirectory
from components import helpers
import storageService as storage_service
        sipUUID = uuid.uuid4().__str__()
 
        createStructuredDirectory(tmpSIPDir)
        databaseFunctions.createSIP(destSIPDir.replace('/var/archivematica/sharedDirectory/', '%sharedPath%'), sipUUID)