Ignore:
Timestamp:
14/06/10 12:40:08 (10 years ago)
Author:
astephen
Message:

more fixes for zipping up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/process_modules/get_weather_stations.py

    r7014 r7018  
    4545 
    4646        # Always need a FileSet, even if empty 
    47         fileSet = context.outputs['FileSet'] = FileSet() 
     47        self.fileSet = context.outputs['FileSet'] = FileSet() 
    4848 
    4949        # Make path to output file 
     
    6262        filesize = os.stat(MyFilePath)[stat.ST_SIZE] 
    6363 
    64         fileSet = context.outputs['FileSet'] = FileSet() 
    6564        fileSet.contents.append(FileSet(FLAG.DATA, WFile, filesize, 'Weather Stations File')) 
    6665 
    67         context.setStatus(STATUS.COMPLETED, 'The End', 100) 
    68          
    69         completionTime = time.time() 
    70         process_support.updateJobDetailsAfterCompletion(context, startTime, completionTime) 
     66#        context.setStatus(STATUS.COMPLETED, 'The End', 100) 
     67#        completionTime = time.time() 
     68#        process_support.updateJobDetailsAfterCompletion(context, startTime, completionTime) 
     69 
     70        # Set keep = True so that weather station files are accessible to downstream process 
     71        # without unzipping. This is fine as files are small. 
     72        process_support.finishProcess(context, self.fileSet, startTime, keep = True) 
    7173 
    7274 
Note: See TracChangeset for help on using the changeset viewer.