[Inteproxy-commits] r201 - in trunk: . inteproxy

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 10 22:14:29 CEST 2009


Author: bh
Date: 2009-09-10 22:14:29 +0200 (Thu, 10 Sep 2009)
New Revision: 201

Modified:
   trunk/ChangeLog
   trunk/inteproxy/transcoder.py
Log:
* inteproxy/transcoder.py
(TranscoderMap.add_host, TranscoderMap.add_hosts): Removed.  These
methods are now unused.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-09-10 20:13:14 UTC (rev 200)
+++ trunk/ChangeLog	2009-09-10 20:14:29 UTC (rev 201)
@@ -1,5 +1,11 @@
 2009-09-10  Bernhard Herzog  <bh at intevation.de>
 
+	* inteproxy/transcoder.py
+	(TranscoderMap.add_host, TranscoderMap.add_hosts): Removed.  These
+	methods are now unused.
+
+2009-09-10  Bernhard Herzog  <bh at intevation.de>
+
 	* test/test_transcoder_map.py (TranscoderMapTest.setUp): Use the
 	new TranscoderMap functions
 

Modified: trunk/inteproxy/transcoder.py
===================================================================
--- trunk/inteproxy/transcoder.py	2009-09-10 20:13:14 UTC (rev 200)
+++ trunk/inteproxy/transcoder.py	2009-09-10 20:14:29 UTC (rev 201)
@@ -193,21 +193,6 @@
         """
         self.classmap[name] = dict(GET=get, POST=post)
 
-    def add_host(self, host, path, classname):
-        """Adds a host description.
-
-        A connection path on host will be done with the appropriate
-        transcoder from the class given by classname.
-        """
-        self.rules.append((re.compile(pattern_to_regex(host,
-                                                       character_set="[^/]")),
-                           re.compile(pattern_to_regex(path)),
-                           classname))
-
-    def add_hosts(self, hosts):
-        for entry in hosts:
-            self.add_host(entry.host, entry.path, entry.scheme)
-
     def add_rule(self, rule):
         """Adds a transcoder rule (typically an instance of InteProxyRule)
         """



More information about the Inteproxy-commits mailing list