--- cdli/cdli_files.py 2007/01/30 14:26:42 1.61 +++ cdli/cdli_files.py 2007/02/02 14:31:49 1.62 @@ -174,7 +174,7 @@ class uploadATFfinallyThread(Thread): conn.close() #set flag for end of this method self.end=True - print "ended" + logging.info("ended") return True def __del__(self): @@ -213,14 +213,21 @@ class uploadATFfinallyThread(Thread): uploadFns=[] #do first the changed files + i=0 for fn in uploadFns: + i+=1 founds=ctx2.CDLICatalog.search({'title':fn}) if len(founds)>0: SESSION['author']=str(username) self.result+="

Changing : %s"%fn founds[0].getObject().manage_addCDLIFileObject('',comment,SESSION['author'],file=os.path.join(SESSION['tmpdir'],fn),from_tmp=True) - - + if i==200: + i=0 + transaction.get().commit() + logging.info("changing: do commit") + transaction.get().commit() + logging.info("changing: last commit") + #now add the new files newPs=SESSION['newPs'] if len(newPs)>0: