コード例 #1
0
ファイル: WPSResponse.py プロジェクト: vovoma/pywps
 def _process_failed(self):
     return WPS.Status(WPS.ProcessFailed(
         WPS.ExceptionReport(
             OWS.Exception(OWS.ExceptionText(self.message),
                           exceptionCode='NoApplicableCode',
                           locater='None'))),
                       creationTime=time.strftime('%Y-%m-%dT%H:%M:%SZ',
                                                  time.localtime()))
コード例 #2
0
ファイル: WPSResponse.py プロジェクト: SiggyF/pywps-4
 def _process_paused(self):
     return WPS.Status(
         WPS.ProcessPaused(
             self.message,
             percentCompleted=str(self.status_percentage)
         ),
         creationTime=time.strftime('%Y-%m-%dT%H:%M:%SZ', time.localtime())
     )
コード例 #3
0
ファイル: WPSResponse.py プロジェクト: vovoma/pywps
 def _process_accepted(self):
     return WPS.Status(WPS.ProcessAccepted(self.message),
                       creationTime=time.strftime('%Y-%m-%dT%H:%M:%SZ',
                                                  time.localtime()))