changeset 247:5028c04190a9

html_out converter: remove unused code from moinpage_object that crashed on transclusions with URLs without path. Fixes #30.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 31 May 2011 14:31:27 +0200
parents 727e03c59dbf
children 1a1dab306214 3872b8328dd5 f04fafdd629f
files MoinMoin/converter/html_out.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/html_out.py	Sun May 29 23:58:55 2011 +0200
+++ b/MoinMoin/converter/html_out.py	Tue May 31 14:31:27 2011 +0200
@@ -344,13 +344,9 @@
         else:
             # Nothing else worked...try using <object>
             return "object"
+
     def visit_moinpage_object(self, elem):
         href = elem.get(xlink.href, None)
-        if href:
-            if isinstance(href, unicode): # XXX sometimes we get Iri, sometimes unicode - bug?
-                h = href
-            else: # Iri
-                h = href.path[-1] # XXX BUG Iri doesn't have a path if we access the root page (eg. http://google.de doesn't have a path)
         attrib = {}
         mimetype = Type(_type=elem.get(moin_page.type_, 'application/x-nonexistent'))
         # Get the object type