Changeset 7063


Ignore:
Timestamp:
23/06/10 13:53:37 (9 years ago)
Author:
astephen
Message:

Added process_base.py to use as optional base module/class.

Location:
cows_wps/trunk/process_modules
Files:
1 added
1 edited

Legend:

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

    r7062 r7063  
    3838                      "EndDateTime": gws_utils.revertDateTimeToLongString} 
    3939 
    40  
    41     def __call__(self, context): 
    42         """ 
    43         This is where the WPS controller calls the process. 
    44         Since this process is async we actually pass both the 
    45         __call__ and dryRun methods through the same _executeProc  
    46         method which does the same for each except that for  
    47         dry_run = True it will not produce any outputs. 
    48         """ 
    49  
    50         return self._executeProc(context, dry_run = False) 
    51  
    52  
    53     def dryRun(self, context): 
    54         """ 
    55         This is where the WPS controller calls the process for 
    56         an estimate of the volume and duration of the outputs. 
    57  
    58         Since this process is async we actually pass both the 
    59         __call__ and dryRun methods through the same _executeProc  
    60         method which does the same for each except that for  
    61         dry_run = True it will not produce any outputs. 
    62         """ 
    63  
    64         return self._executeProc(context, dry_run = True) 
    65  
    6640     
    6741    def _executeProc(self, context, dry_run): 
     
    12397            # In this case we set keep = True so that weather station file is accessible to downstream process 
    12498            # without unzipping. This is fine as files are small. 
    125             process_support.finishProcess(context, self.fileSet, startTime, keep = True) 
     99            process_support.finishProcess(context, self.fileSet, self.startTime, keep = True) 
    126100        else: 
    127101            estimated_duration = 60 # seconds 
Note: See TracChangeset for help on using the changeset viewer.