[Inteproxy-commits] r36 - trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 5 20:08:39 CEST 2007


Author: bh
Date: 2007-04-05 20:08:39 +0200 (Thu, 05 Apr 2007)
New Revision: 36

Modified:
   trunk/ChangeLog
   trunk/transcoder.py
Log:
* transcoder.py (create_transcoder_map): New.  Creates the default
transcoder map


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-04-05 15:28:33 UTC (rev 35)
+++ trunk/ChangeLog	2007-04-05 18:08:39 UTC (rev 36)
@@ -1,5 +1,10 @@
 2007-04-05  Bernhard Herzog  <bh at intevation.de>
 
+	* transcoder.py (create_transcoder_map): New.  Creates the default
+	transcoder map
+
+2007-04-05  Bernhard Herzog  <bh at intevation.de>
+
 	* transcoder.py (IdentityTranscoder): Turn it into a new-style
 	class
 	(HTTPSTranscoder.__init__): Use super to call the base class

Modified: trunk/transcoder.py
===================================================================
--- trunk/transcoder.py	2007-04-05 15:28:33 UTC (rev 35)
+++ trunk/transcoder.py	2007-04-05 18:08:39 UTC (rev 36)
@@ -151,10 +151,12 @@
             self.add_host(host, path, cls)
 
 
-transcoder_map = TranscoderMap([
-    ("identity", IdentityTranscoder, IdentityTranscoder),
-    ("owsproxy", OWSProxyGETTranscoder, OWSProxyPOSTTranscoder),
-    ])
+def create_transcoder_map():
+    return TranscoderMap([
+        ("identity", IdentityTranscoder, IdentityTranscoder),
+        ("owsproxy", OWSProxyGETTranscoder, OWSProxyPOSTTranscoder),
+        ])
+transcoder_map = create_transcoder_map()
 
 
 def get_transcoder(method, url):



More information about the Inteproxy-commits mailing list