[XML-SIG] [ pyxml-Bugs-424260 ] error importing Xhtml2HtmlPrinter

noreply@sourceforge.net noreply@sourceforge.net
Tue, 15 May 2001 09:24:17 -0700


Bugs item #424260, was updated on 2001-05-15 09:24
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=424260&group_id=6473

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: error importing Xhtml2HtmlPrinter

Initial Comment:
>>> import
xml.dom.ext.XHtml2HtmlPrinter                              
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File
"/usr/lib/python1.5/site-packages/xml/dom/ext/XHtml2HtmlPrinter.py",
line 3, in ?
    from xml.dom.html import HTML_FORBIDDEN_END,
XHTML_NAMESPACE
ImportError: cannot import name XHTML_NAMESPACE


Patch for the bug is:

--- XHtml2HtmlPrinter.py        Tue Apr 24 20:31:42
2001
+++ /home/alf/XHtml2HtmlPrinter.py      Tue May 15
18:18:18 2001
@@ -1,6 +1,7 @@
 import string
 import Printer
-from xml.dom.html import HTML_FORBIDDEN_END,
XHTML_NAMESPACE
+from xml.dom.html import HTML_FORBIDDEN_END
+from xml.dom import XHTML_NAMESPACE
 
 class HtmlDocType:
     name = 'HTML'


Cheers 

Alexandre Fayolle
(I could not logging, because it seems there's some
problem with SF and their ssl server)

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=424260&group_id=6473