| AttributeErrorFormatter instance has no attribute 'raw_html' | Please include this information in your bug reports!: Python Python 2.3.6: /srv/wikis/valley-01/bin/python2.3 Linux infinity4 2.6.26.8-smp #1 SMP Fri Mar 19 06:39:57 EDT 2010 x86_64 MoinMoin Release 1.3.5 [Revision 1.3.5 release] Fri May 18 14:36:47 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /srv/wikis/valley-01/lib/python2.3/MoinMoin/request.py in run(self=<MoinMoin.request.RequestCGI object>) |
| 854 if self.cfg.allow_extended_names: |
| 855 self.page = Page(self, pagename) |
| 856 self.page.send_page(self, count_hit=1) |
| 857 else: |
| 858 # TODO: kill this. Why disable allow extended names? |
| self = <MoinMoin.request.RequestCGI object>, self.page = <MoinMoin.Page.Page instance>, self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>, count_hit undefined |
| /srv/wikis/valley-01/lib/python2.3/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg='', **keywords={'count_hit': 1}) |
| 1152 else: |
| 1153 # parse the text and send the page content |
| 1154 self.send_page_content(request, Parser, body, format_args=pi_formatargs, do_cache=do_cache) |
| 1155 |
| 1156 # check for pending footnotes |
| self = <MoinMoin.Page.Page instance>, self.send_page_content = <bound method Page.send_page_content of <MoinMoin.Page.Page instance>>, request = <MoinMoin.request.RequestCGI object>, Parser = <class MoinMoin.parser.wiki.Parser>, body = u'\n[[TableOfContents(1)]]\n\n= XML Pages & XSLT Proc... like described above to make this example work.\n', format_args undefined, pi_formatargs = u'', do_cache = 1 |
| /srv/wikis/valley-01/lib/python2.3/MoinMoin/Page.py in send_page_content(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'\n[[TableOfContents(1)]]\n\n= XML Pages & XSLT Proc... like described above to make this example work.\n', needsupdate=1, format_args=u'', do_cache=1) |
| 1287 request.redirect(buffer) |
| 1288 parser = Parser(body, request) |
| 1289 parser.format(formatter) |
| 1290 request.redirect() |
| 1291 text = buffer.getvalue() |
| parser = <MoinMoin.parser.wiki.Parser instance>, parser.format = <bound method Parser.format of <MoinMoin.parser.wiki.Parser instance>>, formatter = <MoinMoin.formatter.text_python.Formatter instance> |
| /srv/wikis/valley-01/lib/python2.3/MoinMoin/parser/wiki.py in format(self=<MoinMoin.parser.wiki.Parser instance>, formatter=<MoinMoin.formatter.text_python.Formatter instance>) |
| 1035 res = self.formatter.processor(self.processor_name, |
| 1036 self.colorize_lines, |
| 1037 self.processor_is_parser) |
| 1038 self.request.write(res) |
| 1039 del self.colorize_lines |
| self = <MoinMoin.parser.wiki.Parser instance>, self.processor_is_parser = 1 |
| /srv/wikis/valley-01/lib/python2.3/MoinMoin/formatter/text_python.py in processor(self=<MoinMoin.formatter.text_python.Formatter instance>, processor_name=u'docbook', lines=[u'#!docbook ', u'<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML...w.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">', u'<book>', u'<bookinfo>', u'<author>', u'<firstname>Bernd</firstname>', u'<surname>Le Pain</surname>', u'</author>', u'<copyright>', u'<year>2005</year>', u'</copyright>', u'</bookinfo>', u'<chapter>', u'<title>This is a title of a chapter</title>', u'<sect1>', u'<title>This is a title of a section</title>', u'<para>This is a paragraph.</para>', u'<para>', u'<emphasis role="bold">', u'This is a paragraph in bold.', ...], is_parser=1) |
| 188 Dependencies = ["time"] |
| 189 if self.__is_static(Dependencies): |
| 190 return self.formatter.processor(processor_name, lines, is_parser) |
| 191 else: |
| 192 return self.__insert_code('%s%s.processor(%r, %r, %r)' % |
| self = <MoinMoin.formatter.text_python.Formatter instance>, self.formatter = <MoinMoin.formatter.text_html.Formatter instance>, self.formatter.processor = <bound method Formatter.processor of <MoinMoin.formatter.text_html.Formatter instance>>, processor_name = u'docbook', lines = [u'#!docbook ', u'<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML...w.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">', u'<book>', u'<bookinfo>', u'<author>', u'<firstname>Bernd</firstname>', u'<surname>Le Pain</surname>', u'</author>', u'<copyright>', u'<year>2005</year>', u'</copyright>', u'</bookinfo>', u'<chapter>', u'<title>This is a title of a chapter</title>', u'<sect1>', u'<title>This is a title of a section</title>', u'<para>This is a paragraph.</para>', u'<para>', u'<emphasis role="bold">', u'This is a paragraph in bold.', ...], is_parser = 1 |
| /srv/wikis/valley-01/lib/python2.3/MoinMoin/formatter/base.py in processor(self=<MoinMoin.formatter.text_html.Formatter instance>, processor_name=u'docbook', lines=[u'<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML...w.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">', u'<book>', u'<bookinfo>', u'<author>', u'<firstname>Bernd</firstname>', u'<surname>Le Pain</surname>', u'</author>', u'<copyright>', u'<year>2005</year>', u'</copyright>', u'</bookinfo>', u'<chapter>', u'<title>This is a title of a chapter</title>', u'<sect1>', u'<title>This is a title of a section</title>', u'<para>This is a paragraph.</para>', u'<para>', u'<emphasis role="bold">', u'This is a paragraph in bold.', u'</emphasis>', ...], is_parser=1) |
| 256 lines=lines[1:] |
| 257 p = parser('\n'.join(lines), self.request, format_args = args) |
| 258 p.format(self) |
| 259 del p |
| 260 return '' |
| p = <MoinMoin.parser.docbook.Parser instance>, p.format = <bound method Parser.format of <MoinMoin.parser.docbook.Parser instance>>, self = <MoinMoin.formatter.text_html.Formatter instance> |
| /srv/wikis/valley-01/lib/python2.3/MoinMoin/parser/docbook.py in format(self=<MoinMoin.parser.docbook.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>) |
| 63 def format(self, formatter): |
| 64 self.wikiParser.formatter = formatter |
| 65 XsltParser.format(self, formatter) |
| 66 |
| 67 def append_stylesheet(self): |
| global XsltParser = <class MoinMoin.parser.xslt.Parser>, XsltParser.format = <unbound method Parser.format>, self = <MoinMoin.parser.docbook.Parser instance>, formatter = <MoinMoin.formatter.text_html.Formatter instance> |
| /srv/wikis/valley-01/lib/python2.3/MoinMoin/parser/xslt.py in format(self=<MoinMoin.parser.docbook.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>) |
| 46 # can be activated in wikiconfig.py |
| 47 from MoinMoin.parser import plain |
| 48 self.request.write(formatter.sysmsg(1) + |
| 49 formatter.raw_html(_('XSLT option disabled, please look at HelpOnConfiguration.')) + |
| 50 formatter.sysmsg(0)) |
| self = <MoinMoin.parser.docbook.Parser instance>, self.request = <MoinMoin.request.RequestCGI object>, self.request.write = <bound method RequestCGI.write of <MoinMoin.request.RequestCGI object>>, formatter = <MoinMoin.formatter.text_html.Formatter instance>, formatter.sysmsg = <bound method Formatter.sysmsg of <MoinMoin.formatter.text_html.Formatter instance>>, formatter.raw_html undefined, _ = <function <lambda>> |
AttributeError: Formatter instance has no attribute 'raw_html'
__doc__ =
'Attribute not found.'
__getitem__ =
<bound method AttributeError.__getitem__ of <exceptions.AttributeError instance>>
__init__ =
<bound method AttributeError.__init__ of <exceptions.AttributeError instance>>
__module__ =
'exceptions'
__str__ =
<bound method AttributeError.__str__ of <exceptions.AttributeError instance>>
args =
("Formatter instance has no attribute 'raw_html'",)
NSS Wiki