[Commits] r2126 - core/branches/0.7/geoext/lib/GeoExt/data
commits at geoext.org
commits at geoext.org
Tue Apr 27 11:15:02 CEST 2010
Author: elemoine
Date: 2010-04-27 11:15:02 +0200 (Tue, 27 Apr 2010)
New Revision: 2126
Modified:
core/branches/0.7/geoext/lib/GeoExt/data/PrintProvider.js
Log:
pull up patch for ticket 249 (closes #249)
Modified: core/branches/0.7/geoext/lib/GeoExt/data/PrintProvider.js
===================================================================
--- core/branches/0.7/geoext/lib/GeoExt/data/PrintProvider.js 2010-04-27 08:57:40 UTC (rev 2125)
+++ core/branches/0.7/geoext/lib/GeoExt/data/PrintProvider.js 2010-04-27 09:15:02 UTC (rev 2126)
@@ -224,6 +224,17 @@
*/
"print",
+ /** api: events[printexception]
+ * Triggered when using the ``POST`` method, when the print
+ * backend returns an exception.
+ *
+ * Listener arguments:
+ * * printProvider - :class:`GeoExt.data.PrintProvider` this
+ * PrintProvider
+ * * response - ``Object`` the response object of the XHR
+ */
+ "printexception",
+
/** api: events[beforeencodelayer]
* Triggered before a layer is encoded. This can be used to
* exclude layers from the printing, by having the listener
@@ -417,6 +428,9 @@
}
this.fireEvent("print", this, url);
},
+ failure: function(response) {
+ this.fireEvent("printexception", this, response);
+ },
scope: this
});
}
More information about the Commits
mailing list