Description
I did get with my 1.6dev test wiki building the xapian index an attribute error 'Request' object has no attribute 'html_formatter' -- ReimarBauer 2007-01-06 10:45:22
Example
{{{moin --config-dir=/usr/share/moin/mywiki --wiki-url=http://localhost/mywiki index build --mode=add }}}
AttributeError: 'Request' object has no attribute 'html_formatter' Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1457, in parsePageLinks page.send_page(request, content_only=1) File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1136, in send_page start_line=pi_lines) File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1220, in send_page_content self.format(parser) File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1241, in format parser.format(self.formatter) File "/usr/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py", line 1102, in format formatted_line = self.scan(scanning_re, line) File "/usr/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py", line 881, in scan result.append(self.replace(match)) File "/usr/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py", line 907, in replace result.append(replace(hit)) File "/usr/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py", line 855, in _macro_repl return self.formatter.macro(self.macro, macro_name, args) File "/usr/lib/python2.4/site-packages/MoinMoin/formatter/__init__.py", line 296, in macro return macro_obj.execute(name, args) File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 117, in execute return execute(self, args) File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 260, in _macro_WordIndex return self._make_index(args, word_re=word_re) File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 235, in _make_index html.append(Page(self.request, name).link_to(self.request, attachment_indicator=1)) File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 776, in link_to link = self.link_to_raw(request, text, querystr, anchor, **kw) File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 750, in link_to_raw formatter=getattr(self, 'formatter', None), **kw) File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1547, in link_tag formatter = request.html_formatter
Component selection
1.6 dev related to xapian search index build
- general
Details
1.6dev
MoinMoin Version |
|
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Discussion
Plan
- Priority:
Assigned to: ThomasWaldmann
Status: fixed in 1.6 by initializing request.html_formatter in RequestBase.__init__ in changeset 2075: 27569464c97e