Changeset 4892
- Timestamp:
- 25 Jan 2010, 08:32:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/trunk/src/waeup/datacenter.py
r4883 r4892 36 36 return logger 37 37 38 def __init__(self, *args, **kw): 39 super(DataCenter, self).__init__(*args, **kw) 40 self._createSubDirs() 41 38 42 def _setupLogger(self, logger): 39 43 """Setup datacenter logger. … … 58 62 return logger 59 63 64 def _createSubDirs(self): 65 """Create standard subdirs. 66 """ 67 for name in ['finished', 'pending']: 68 path = os.path.join(self.storage, name) 69 if os.path.exists(path): 70 continue 71 os.mkdir(path) 72 return 73 60 74 def getReceivers(self): 61 75 receivers = [] … … 144 158 overwrite=overwrite) 145 159 self.storage = path 160 self._createSubDirs() 146 161 # Adjust logger... 147 162 logger = self.logger
Note: See TracChangeset for help on using the changeset viewer.