Ignore:
Timestamp:
28/06/07 16:12:23 (12 years ago)
Author:
spascoe
Message:

Commiting midway through development to change platform. Various classes
have been added to support process execution.

Location:
TI05-delivery/ows_framework/trunk/ows_wps/ows_wps
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_wps/ows_wps/execute.py

    r2656 r2659  
    3131    description.inputs/outputs attributes respectively. 
    3232     
    33     @ivar status 
    34     @type status: One of PENDING, ACCEPTED, STARTED, SUCCEEDED, FAILED 
    35     @ivar statusMessage: This is the message put in the Status XML element 
    36     @type statusMessage: str 
     33    @ivar flag 
     34    @type flag: One of PENDING, ACCEPTED, STARTED, SUCCEEDED, FAILED 
     35    @ivar message: This is the message put in the Status XML element 
     36    @type message: str 
    3737    @ivar percentComplete 
    3838    @type percentComplete: int or None 
     
    4747 
    4848    """ 
    49     PENDING = 0 
    50     ACCEPTED = 1 
    51     STARTED = 2 
    52     SUCCEEDED = 3 
    53     FAILED = 4 
     49    PENDING = 'PENDING' 
     50    ACCEPTED = 'ACCEPTED' 
     51    STARTED = 'STARTED' 
     52    SUCCEEDED = 'SUCCEEDED' 
     53    FAILED = 'FAILED' 
    5454     
    55     def __init__(self, inputs=[], outputs=[], statusMessage=''): 
    56         self.status = self.PENDING 
    57         self.statusMessage = statusMessage 
     55    def __init__(self, inputs=[], outputs=[], message=''): 
     56        self.flag = self.PENDING 
     57        self.message = message 
    5858        self.percentComplete = None 
    5959        self.inputs = inputs 
     
    7272            else: 
    7373                raise ValueError("Output %s not in description" % k) 
     74 
  • TI05-delivery/ows_framework/trunk/ows_wps/ows_wps/process.py

    r2656 r2659  
    4141        self.context = context 
    4242 
    43         self.status.status = status.ACCEPTED 
     43        self.status.flag = self.status.ACCEPTED 
    4444 
    4545 
     
    5454            outputs = self.run(**self.status.inputs) 
    5555        except OwsError, e: 
    56             self.status = self.status.FAILED 
    5756            self.exceptionReport = e.report 
     57            self.status.flag = self.status.FAILED 
    5858        else: 
    5959            # Set the status outputs 
    6060            self.status.setOutputs(**outputs) 
    61              
     61            self.status.flag = self.status.SUCCEEDED 
    6262 
    6363    def run(self, **inputs): 
Note: See TracChangeset for help on using the changeset viewer.