ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/Downloader.py
(Generate patch)

Comparing COMP/CRAB/python/Downloader.py (file contents):
Revision 1.6 by farinafa, Wed Apr 21 08:50:52 2010 UTC vs.
Revision 1.7 by spiga, Wed May 19 16:16:20 2010 UTC

# Line 4 | Line 4 | import common
4   class Downloader:
5  
6      def __init__(self, endpoint, cachepath='', cacheduration = 0.5, timeout = 20, \
7 <                 type = "txt/csv", logger = common.logger):
7 >                 type = "txt/csv", logger = None ):
8          ## if not already defined set default CachePath to $HOME/.cms_crab  
9          if cachepath =='':
10              import os
# Line 22 | Line 22 | class Downloader:
22                  common.logger.info('Warning cannot create %s. Using current directory'%cachepath)
23                  cachepath=os.getcwd()
24        
25 <        if not logger: logger = common.logger
25 >        if not logger: logger = common.logger()
26  
27          self.wmcorecache = {}
28          self.wmcorecache['logger'] = logger

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines