Changeset 2659
- Timestamp:
- 28/06/07 16:12:23 (14 years ago)
- 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 31 31 description.inputs/outputs attributes respectively. 32 32 33 @ivar status34 @type status: One of PENDING, ACCEPTED, STARTED, SUCCEEDED, FAILED35 @ivar statusMessage: This is the message put in the Status XML element36 @type statusMessage: str33 @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 37 37 @ivar percentComplete 38 38 @type percentComplete: int or None … … 47 47 48 48 """ 49 PENDING = 050 ACCEPTED = 151 STARTED = 252 SUCCEEDED = 353 FAILED = 449 PENDING = 'PENDING' 50 ACCEPTED = 'ACCEPTED' 51 STARTED = 'STARTED' 52 SUCCEEDED = 'SUCCEEDED' 53 FAILED = 'FAILED' 54 54 55 def __init__(self, inputs=[], outputs=[], statusMessage=''):56 self. status= self.PENDING57 self. statusMessage = statusMessage55 def __init__(self, inputs=[], outputs=[], message=''): 56 self.flag = self.PENDING 57 self.message = message 58 58 self.percentComplete = None 59 59 self.inputs = inputs … … 72 72 else: 73 73 raise ValueError("Output %s not in description" % k) 74 -
TI05-delivery/ows_framework/trunk/ows_wps/ows_wps/process.py
r2656 r2659 41 41 self.context = context 42 42 43 self.status. status =status.ACCEPTED43 self.status.flag = self.status.ACCEPTED 44 44 45 45 … … 54 54 outputs = self.run(**self.status.inputs) 55 55 except OwsError, e: 56 self.status = self.status.FAILED57 56 self.exceptionReport = e.report 57 self.status.flag = self.status.FAILED 58 58 else: 59 59 # Set the status outputs 60 60 self.status.setOutputs(**outputs) 61 61 self.status.flag = self.status.SUCCEEDED 62 62 63 63 def run(self, **inputs):
Note: See TracChangeset
for help on using the changeset viewer.