Description

The DOM formatter gives an error:

Steps to reproduce

  1. ask to get a docbook rendering of a page

Example

any page on a 1.7 wiki

Component selection

Details

2007-10-31 11:27:02,025 ERROR AttributeError: DocBookOutputFormatter instance has no attribute 'domHeadNode'
Traceback (most recent call last):
  File "/usr/local/src/moin/MoinMoin/request/__init__.py", line 1274, in run
    handler(self.page.page_name, self)
  File "/usr/local/src/moin/MoinMoin/action/__init__.py", line 239, in do_show
    content_only=content_only,
  File "/usr/local/src/moin/MoinMoin/Page.py", line 1201, in send_page
    start_line=pi['lines'])
  File "/usr/local/src/moin/MoinMoin/Page.py", line 1285, in send_page_content
    self.format(parser)
  File "/usr/local/src/moin/MoinMoin/Page.py", line 1306, in format
    parser.format(self.formatter)
  File "/usr/local/src/moin/MoinMoin/parser/text_moin_wiki.py", line 1503, in format
    formatted_line = self.scan(scanning_re, line, inhibit_p=inhibit_p)
  File "/usr/local/src/moin/MoinMoin/parser/text_moin_wiki.py", line 1256, in scan
    result.append(self.replace(match, inhibit_p))
  File "/usr/local/src/moin/MoinMoin/parser/text_moin_wiki.py", line 1294, in replace
    result.append(replace_func(hit, match.groupdict()))
  File "/usr/local/src/moin/MoinMoin/parser/text_moin_wiki.py", line 1230, in _macro_repl
    return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
  File "/usr/local/src/moin/MoinMoin/formatter/text_docbook.py", line 576, in macro
    text = FormatterBase.macro(self, macro_obj, name, args, markup)
  File "/usr/local/src/moin/MoinMoin/formatter/__init__.py", line 316, in macro
    return macro_obj.execute(name, args)
  File "/usr/local/src/moin/MoinMoin/macro/__init__.py", line 129, in execute
    return execute(self, args)
  File "/usr/local/src/moin/MoinMoin/macro/Include.py", line 209, in execute
    count_hit=False)
  File "/usr/local/src/moin/MoinMoin/Page.py", line 1209, in send_page
    request.write(self.formatter.endContent())
  File "/usr/local/src/moin/MoinMoin/formatter/text_docbook.py", line 124, in endContent
    bodyStr = self.outputFormatter.getBody()
  File "/usr/local/src/moin/MoinMoin/formatter/text_docbook.py", line 72, in getBody
    if firstNode != self.domHeadNode:
AttributeError: DocBookOutputFormatter instance has no attribute 'domHeadNode'

MoinMoin Version

1.7 from hg

Language you are using the wiki in (set in the browser/UserPreferences)

en

Workaround

N/A

Discussion

For better docbook support see DocBook (volunteers needed!).

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/DomFormatterError (last edited 2007-10-31 17:11:37 by ThomasWaldmann)