[Pywps-commits] r860 - trunk/doc/examples/clients

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 27 22:15:14 CET 2009


Author: jachym
Date: 2009-10-27 22:15:11 +0100 (Tue, 27 Oct 2009)
New Revision: 860

Modified:
   trunk/doc/examples/clients/WPS.js
Log:
some fixes in the OpenLayers.WPS class

Modified: trunk/doc/examples/clients/WPS.js
===================================================================
--- trunk/doc/examples/clients/WPS.js	2009-10-22 09:19:51 UTC (rev 859)
+++ trunk/doc/examples/clients/WPS.js	2009-10-27 21:15:11 UTC (rev 860)
@@ -158,7 +158,7 @@
      * Property: timeOut
      * {Integer}, ms
      */
-    timeOut: 5000,
+    timeOut: 10000,
 
     /**
      * Property: statusLocation
@@ -762,13 +762,8 @@
             this.parseProcessFailed(process,dom);
         }
 
-        if (this.status == "ProcessSucceeded") {
-            pri
-            this.statusEvents[this.status](process);
-        }
-
-        this.onStatusChanged(this.status,process);
         this.statusEvents[this.status].apply(this.scope,[process]);
+        this.onStatusChanged(this.status,process);
         
         if (this.status != "ProcessFailed" && this.status != "ProcessSucceeded") {
             if (this.statusLocation) {
@@ -846,7 +841,7 @@
         this.status = status;
         this.statusMessage = message;
         this.statusTime = creationTime;
-        this.percentCompleted = (status == "ProcessSucceeded" ? 100 : (percentCompleted ? percentCompleted : 0));
+        this.percentCompleted = percentCompleted;
     },
 
     /**
@@ -915,7 +910,6 @@
      * To be redefined by the user
      */
     onStarted: function(process) {
-        OpenLayers.Console.log("started");
     },
 
     /**
@@ -939,7 +933,7 @@
     getProcess: function(identifier) {
         
         for (var i = 0; i < this.processes.length; i++) {
-            if (this.processes[i] && this.processes[i].identifier == identifier) {
+            if (this.processes[i].identifier == identifier) {
                 return this.processes[i];
             }
         }
@@ -952,7 +946,6 @@
      *
      */
     onException: function (process,code,text) {
-        OpenLayers.Console.log("onException: ", process, code, text);
     },
 
     /**



More information about the Pywps-commits mailing list