[Inteproxy-commits] r27 - trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 8 17:53:13 CET 2007


Author: bh
Date: 2007-02-08 17:53:13 +0100 (Thu, 08 Feb 2007)
New Revision: 27

Modified:
   trunk/ChangeLog
   trunk/transcoder.py
Log:
* transcoder.py (OWSProxyPOSTTranscoder.convert_body): Handle WFS
Transaction in the same way as GetFeature.  Based on a patch by
Stephan Holl


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-02-08 16:25:23 UTC (rev 26)
+++ trunk/ChangeLog	2007-02-08 16:53:13 UTC (rev 27)
@@ -1,5 +1,11 @@
 2007-02-08  Bernhard Herzog  <bh at intevation.de>
 
+	* transcoder.py (OWSProxyPOSTTranscoder.convert_body): Handle WFS
+	Transaction in the same way as GetFeature.  Based on a patch by
+	Stephan Holl
+
+2007-02-08  Bernhard Herzog  <bh at intevation.de>
+
 	* InteProxy.py (InteProxyHTTPRequestHandler.handle_proxy_request):
 	Set the protocol version of the InteProxyHTTPRequestHandler to the
 	version used in the request.  Ideally it should be set to the

Modified: trunk/transcoder.py
===================================================================
--- trunk/transcoder.py	2007-02-08 16:25:23 UTC (rev 26)
+++ trunk/transcoder.py	2007-02-08 16:53:13 UTC (rev 27)
@@ -97,7 +97,8 @@
         """
         t = etree.parse(StringIO(body))
         root = t.getroot()
-        if root.tag == "{http://www.opengis.net/wfs}GetFeature":
+        if root.tag in ("{http://www.opengis.net/wfs}GetFeature",
+                        "{http://www.opengis.net/wfs}Transaction"):
             user, password = self.get_password()
             root.set("user", user)
             root.set("password", password)



More information about the Inteproxy-commits mailing list