changeset 66:a8d7b3456045

HTML output converter - Remove unused base URL
author Bastian Blank <bblank@thinkmo.de>
date Thu, 03 Mar 2011 00:03:38 +0100
parents 21cc311e30a8
children d43c7fb728e0
files MoinMoin/converter/html_out.py
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/html_out.py	Wed Mar 02 22:47:18 2011 +0100
+++ b/MoinMoin/converter/html_out.py	Thu Mar 03 00:03:38 2011 +0100
@@ -148,8 +148,6 @@
     direct_inline_tags = set(['abbr', 'address', 'dfn', 'kbd'])
 
     def __call__(self, element):
-        # Base URL extracted from xml:base
-        self.base_url = ''
         return self.visit(element)
 
     def do_children(self, element):
@@ -185,8 +183,6 @@
         return self.new_copy(elem.tag, elem)
 
     def visit_moinpage(self, elem):
-        # Get base_url from xml:base
-        self.base_url = elem.get(xml.base) or self.base_url
         n = 'visit_moinpage_' + elem.tag.name.replace('-', '_')
         f = getattr(self, n, None)
         if f:
@@ -200,8 +196,6 @@
         attrib = {}
         href = elem.get(_tag_xlink_href)
         if href:
-            if self.base_url:
-                href = ''.join([self.base_url, href])
             attrib[_tag_html_href] = href
         # XXX should support more tag attrs
         return self.new_copy(_tag_html_a, elem, attrib)
@@ -350,8 +344,6 @@
             return "object"
     def visit_moinpage_object(self, elem):
         href = elem.get(xlink.href, None)
-        if self.base_url:
-            href = ''.join([self.base_url, href])
         if href:
             if isinstance(href, unicode): # XXX sometimes we get Iri, sometimes unicode - bug?
                 h = href