Changeset 4996


Ignore:
Timestamp:
3 Feb 2010, 15:34:57 (15 years ago)
Author:
uli
Message:

Make filenames even longer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/datacenter.py

    r4980 r4996  
    137137   
    138138    def distProcessedFiles(self, successful, source_path, finished_file,
    139                            pending_file, move_orig=True):
     139                           pending_file, mode='create', move_orig=True):
    140140        """Put processed files into final locations.
    141141
     
    163163
    164164        if basename.endswith('.pending.csv'):
    165             maybe_basename = "%s.csv" % basename.rsplit('.', 2)[0]
     165            maybe_basename = "%s.csv" % basename.rsplit('.', 3)[0]
    166166            maybe_src = os.path.join(unfinished_dir, maybe_basename)
    167167            if os.path.isfile(maybe_src):
     
    170170               
    171171        base, ext = os.path.splitext(basename)
    172         finished_name = "%s.finished%s" % (base, ext)
     172        finished_name = "%s.%s.finished%s" % (base, mode, ext)
    173173        if not pending:
    174             pending_name = "%s.pending%s" % (base, ext)
     174            pending_name = "%s.%s.pending%s" % (base, mode, ext)
    175175
    176176        # Put .pending and .finished file into respective places...
Note: See TracChangeset for help on using the changeset viewer.