--- cdli/cdli_basket.py 2009/06/21 11:12:00 1.2 +++ cdli/cdli_basket.py 2009/06/22 10:48:35 1.3 @@ -33,7 +33,9 @@ from types import * import pickle import tempfile from cdli_files import CDLIFile +from cdli_files import splitatf,checkFile from cdli_helpers import * + class BasketContent(SimpleItem): """classe fuer den Inhalt eines Baskets""" @@ -347,14 +349,14 @@ class uploadATFThread(Thread): #make sure that id is a string and not an integer basketId=str(basketId) - + logging.info("basketID:"+basketId) #TODO: make this configurable, at the moment, rootFolder for cdli has to be cdliRoot ctx2=ctx.cdliRoot #get temporary file for staging the downloaded and splitted files dir=tempfile.mkdtemp() - + logging.info("tmpfFile:"+str(dir)) changed=[] # changed files errors=[] # files with errors lockerrors=[] # files with errors @@ -363,6 +365,7 @@ class uploadATFThread(Thread): psNotInCatalog=[] # files not in the catalog #split the uploadedd atf file + logging.info("start splitting") basketNameFromFile, numberOfFiles=splitatf(upload,dir,ext=self) #find basketId if not set