Changeset 4996 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 3 Feb 2010, 15:34:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/datacenter.py
r4980 r4996 137 137 138 138 def distProcessedFiles(self, successful, source_path, finished_file, 139 pending_file, mo ve_orig=True):139 pending_file, mode='create', move_orig=True): 140 140 """Put processed files into final locations. 141 141 … … 163 163 164 164 if basename.endswith('.pending.csv'): 165 maybe_basename = "%s.csv" % basename.rsplit('.', 2)[0]165 maybe_basename = "%s.csv" % basename.rsplit('.', 3)[0] 166 166 maybe_src = os.path.join(unfinished_dir, maybe_basename) 167 167 if os.path.isfile(maybe_src): … … 170 170 171 171 base, ext = os.path.splitext(basename) 172 finished_name = "%s. finished%s" % (base, ext)172 finished_name = "%s.%s.finished%s" % (base, mode, ext) 173 173 if not pending: 174 pending_name = "%s. pending%s" % (base, ext)174 pending_name = "%s.%s.pending%s" % (base, mode, ext) 175 175 176 176 # Put .pending and .finished file into respective places...
Note: See TracChangeset for help on using the changeset viewer.