[XML-SIG] [Bug #128827] [0.10.1-beta3] cannot Print a validated document

noreply@sourceforge.net noreply@sourceforge.net
Mon, 15 Jan 2001 02:27:38 -0800


Bug #128827, was updated on 2001-Jan-15 02:27
Here is a current snapshot of the bug.

Project: Python/XML
Category: 4Suite
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: afayolle
Assigned to : nobody
Summary: [0.10.1-beta3] cannot Print a validated document

Details: Attempting to use xml.dom.ext.Print() on a validated document
gives the following traceback:

>>> Print(tree)
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE preferencesTraceback
(innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python1.5/site-packages/xml/dom/ext/__init__.py", line 65,
in Print
    Printer.PrintWalker(visitor, root).run()
  File "/usr/lib/python1.5/site-packages/xml/dom/ext/Printer.py", line 353,
in run
    return self.step()
  File "/usr/lib/python1.5/site-packages/xml/dom/ext/Printer.py", line 349,
in step
    self.visitor.visit(self.start_node)
  File "/usr/lib/python1.5/site-packages/xml/dom/ext/Printer.py", line 159,
in visit
    return self.visitDocument(node)
  File "/usr/lib/python1.5/site-packages/xml/dom/ext/Printer.py", line 203,
in visitDocument
    node.doctype and self.visitDocumentType(node.doctype)
  File "/usr/lib/python1.5/site-packages/xml/dom/ext/Printer.py", line 282,
in visitDocumentType
    self.stream.write(' PUBLIC %s %s' % public, system)
TypeError: not enough arguments for format string


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=128827&group_id=6473