Changeset 1761 for ZMS/trunk/_filtermanager.py
- Timestamp:
- 12.12.2011 21:54:06 (5 months ago)
- File:
-
- 1 edited
-
ZMS/trunk/_filtermanager.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/_filtermanager.py
r1557 r1761 339 339 # ------------------------------------------------------------------------------ 340 340 def moveFilterProcess(self, id, pid, pos): 341 if _globals.debug( self): 342 _globals.writeLog( self, '[moveFilterProcess]:id=%s; pid=%s; dir=%s'%(id,str(pid),str(dir))) 341 _globals.writeLog( self, '[moveFilterProcess]:id=%s; pid=%s; dir=%s'%(id,str(pid),str(dir))) 343 342 # Set. 344 343 obs = getRawFilters(self) … … 396 395 # ------------------------------------------------------------------------------ 397 396 def processMethod(self, processId, filename, trans, REQUEST): 398 if _globals.debug( self): 399 _globals.writeLog( self, '[processMethod]: processId=%s'%processId) 397 _globals.writeLog( self, '[processMethod]: processId=%s'%processId) 400 398 infilename = filename 401 399 outfilename = filename … … 419 417 # ------------------------------------------------------------------------------ 420 418 def processCommand(self, filename, command): 421 if _globals.debug( self): 422 _globals.writeLog( self, '[processCommand]: infilename=%s'%filename) 419 _globals.writeLog( self, '[processCommand]: infilename=%s'%filename) 423 420 infilename = _fileutil.getOSPath( filename) 424 421 outfilename = _fileutil.getOSPath( filename) … … 446 443 command = command.replace( mIn,infilename) 447 444 command = command.replace( mOut,tmpoutfilename) 448 if _globals.debug( self): 449 _globals.writeLog( self, '[processCommand]: command=%s'%command) 445 _globals.writeLog( self, '[processCommand]: command=%s'%command) 450 446 os.system(command) 451 447 # Check if output file exists. 452 448 try: 453 449 os.stat( _fileutil.getOSPath( tmpoutfilename)) 454 if _globals.debug( self): 455 _globals.writeLog( self, '[processCommand]: rename %s to %s'%( tmpoutfilename, outfilename)) 450 _globals.writeLog( self, '[processCommand]: rename %s to %s'%( tmpoutfilename, outfilename)) 456 451 try: 457 452 os.remove( outfilename) … … 465 460 os.remove( infilename) 466 461 # Return filename. 467 if _globals.debug( self): 468 _globals.writeLog( self, '[processCommand]: outfilename=%s'%( outfilename)) 462 _globals.writeLog( self, '[processCommand]: outfilename=%s'%( outfilename)) 469 463 return outfilename 470 464 … … 476 470 # ------------------------------------------------------------------------------ 477 471 def processFile(self, processId, filename, trans=None): 478 if _globals.debug( self): 479 _globals.writeLog( self, '[processFile]: processId=%s'%processId) 472 _globals.writeLog( self, '[processFile]: processId=%s'%processId) 480 473 folder = _fileutil.getFilePath(filename) 481 474 processOb = self.getProcess(processId) … … 532 525 # Read File. 533 526 else: 534 if _globals.debug( self): 535 _globals.writeLog( self, '[exportFilter]: Read %s'%outfilename) 527 _globals.writeLog( self, '[exportFilter]: Read %s'%outfilename) 536 528 f = open(outfilename, 'rb') 537 529 data = f.read()
Note: See TracChangeset
for help on using the changeset viewer.
