--> -->

NameError

global name 'MoinMoin' is not defined

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.CGI.Request object>)

    1. 1108 from MoinMoin import action
    2. 1109 handler = action.getHandler(self, action_name)
    3. 1110 handler(self.page.page_name, self)
    4. 1111
    5. 1112 # every action that didn't use to raise MoinMoinNoFooter must call this now:
    • handler = <function do_edit>
    • self = <MoinMoin.request.CGI.Request object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'rst'
  2. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/action/__init__.py in do_edit (pagename=u'rst', request=<MoinMoin.request.CGI.Request object>)

    1. 452 pg = Page(request, backto)
    2. 453
    3. 454 pg.send_page(request, msg=savemsg)
    4. 455
    5. 456 def do_goto(pagename, request):
    • pg = <MoinMoin.PageEditor.PageEditor instance>
    • pg.send_page = <bound method PageEditor.send_page of <MoinMoin.PageEditor.PageEditor instance>>
    • request = <MoinMoin.request.CGI.Request object>
    • msg undefined
    • savemsg = u'Thank you for your changes. Your attention to detail is appreciated.'
  3. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/Page.py in send_page (self=<MoinMoin.PageEditor.PageEditor instance>, request=<MoinMoin.request.CGI.Request object>, msg=u'Thank you for your changes. Your attention to detail is appreciated.', **keywords={})

    1. 1273 format_args=pi_formatargs,
    2. 1274 do_cache=do_cache,
    3. 1275 start_line=pi_lines)
    4. 1276
    5. 1277 # check for pending footnotes
    • start_line undefined
    • pi_lines = 0
  4. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/Page.py in send_page_content (self=<MoinMoin.PageEditor.PageEditor instance>, request=<MoinMoin.request.CGI.Request object>, Parser=<class MoinMoin.parser.text_moin_wiki.Parser>, body=u'{{{#!rst\n\nThe text below contains links that loo...urceforge.net/docs/user/rst/quickref.html\n\n\n\n}}}\n', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1364 except 'CacheNeedsUpdate':
    2. 1365 try:
    3. 1366 code = self.makeCache(request, parser)
    4. 1367 self.execute(request, parser, code)
    5. 1368 except 'CacheNeedsUpdate':
    • code undefined
    • self = <MoinMoin.PageEditor.PageEditor instance>
    • self.makeCache = <bound method PageEditor.makeCache of <MoinMoin.PageEditor.PageEditor instance>>
    • request = <MoinMoin.request.CGI.Request object>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
  5. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/Page.py in makeCache (self=<MoinMoin.PageEditor.PageEditor instance>, request=<MoinMoin.request.CGI.Request object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)

    1. 1415 saved_current_lang = request.current_lang
    2. 1416 try:
    3. 1417 text = request.redirectedOutput(parser.format, formatter)
    4. 1418 finally:
    5. 1419 request.current_lang = saved_current_lang
    • text undefined
    • request = <MoinMoin.request.CGI.Request object>
    • request.redirectedOutput = <bound method Request.redirectedOutput of <MoinMoin.request.CGI.Request object>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • formatter = <MoinMoin.formatter.text_python.Formatter instance>
  6. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.CGI.Request object>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>, *args=(<MoinMoin.formatter.text_python.Formatter instance>,), **kw={})

    1. 709 self.redirect(buffer)
    2. 710 try:
    3. 711 function(*args, **kw)
    4. 712 finally:
    5. 713 self.redirect()
    • function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • args = (<MoinMoin.formatter.text_python.Formatter instance>,)
    • kw = {}
  7. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_python.Formatter instance>)

    1. 998 # TODO: do we really need this?
    2. 999 self.request.write(self._closeP())
    3. 1000 res = self.formatter.parser(self.parser_name, self.parser_lines)
    4. 1001 self.request.write(res)
    5. 1002 del self.parser_lines
    • res undefined
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.formatter = <MoinMoin.formatter.text_python.Formatter instance>
    • self.formatter.parser = <bound method Formatter.parser of <MoinMoin.formatter.text_python.Formatter instance>>
    • self.parser_name = u'rst'
    • self.parser_lines = [u'#!rst ', u'', u'The text below contains links that look like "(quickref__)". These', u'are relative links that point to the `Quick reStructuredText`_ user', u"reference. If these links don't work, please refer to the `master", u'quick reference`_ document.', u'', u'__', u'.. _Quick reStructuredText: quickref.html', u'.. _master quick reference:', u' http://docutils.sourceforge.net/docs/user/rst/quickref.html', u'', u'', u'']
  8. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/formatter/text_python.py in parser (self=<MoinMoin.formatter.text_python.Formatter instance>, parser_name=u'rst', lines=[u'#!rst ', u'', u'The text below contains links that look like "(quickref__)". These', u'are relative links that point to the `Quick reStructuredText`_ user', u"reference. If these links don't work, please refer to the `master", u'quick reference`_ document.', u'', u'__', u'.. _Quick reStructuredText: quickref.html', u'.. _master quick reference:', u' http://docutils.sourceforge.net/docs/user/rst/quickref.html', u'', u'', u''])

    1. 197 Dependencies = self.defaultDependencies
    2. 198 if self.__is_static(Dependencies):
    3. 199 return self.formatter.parser(parser_name, lines)
    4. 200 else:
    5. 201 return self.__insert_code('%s%s.parser(%r, %r)' %
    • self = <MoinMoin.formatter.text_python.Formatter instance>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance>
    • self.formatter.parser = <bound method Formatter.parser of <MoinMoin.formatter.text_html.Formatter instance>>
    • parser_name = u'rst'
    • lines = [u'#!rst ', u'', u'The text below contains links that look like "(quickref__)". These', u'are relative links that point to the `Quick reStructuredText`_ user', u"reference. If these links don't work, please refer to the `master", u'quick reference`_ document.', u'', u'__', u'.. _Quick reStructuredText: quickref.html', u'.. _master quick reference:', u' http://docutils.sourceforge.net/docs/user/rst/quickref.html', u'', u'', u'']
  9. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/formatter/__init__.py in parser (self=<MoinMoin.formatter.text_html.Formatter instance>, parser_name=u'rst', lines=[u'', u'The text below contains links that look like "(quickref__)". These', u'are relative links that point to the `Quick reStructuredText`_ user', u"reference. If these links don't work, please refer to the `master", u'quick reference`_ document.', u'', u'__', u'.. _Quick reStructuredText: quickref.html', u'.. _master quick reference:', u' http://docutils.sourceforge.net/docs/user/rst/quickref.html', u'', u'', u''])

    1. 322 lines = lines[1:]
    2. 323 p = parser('\n'.join(lines), self.request, format_args=args)
    3. 324 p.format(self)
    4. 325 del p
    5. 326 return ''
    • p = <MoinMoin.parser.text_rst.Parser instance>
    • p.format = <bound method Parser.format of <MoinMoin.parser.text_rst.Parser instance>>
    • self = <MoinMoin.formatter.text_html.Formatter instance>
  10. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/parser/text_rst.py in format (self=<MoinMoin.parser.text_rst.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>)

    1. 189 source = self.raw,
    2. 190 writer = MoinWriter(formatter, self.request),
    3. 191 settings_overrides = {
    4. 192 'halt_level': 5,
    5. 193 'traceback': True,
    • settings_overrides undefined
    • builtin True = True
  11. /usr/local/lib/python2.4/site-packages/docutils/core.py in publish_parts (source=u'\nThe text below contains links that look like "(...ls.sourceforge.net/docs/user/rst/quickref.html\n\n\n', source_path=None, source_class=<class docutils.io.StringInput>, destination_path=None, reader=None, reader_name='standalone', parser=None, parser_name='restructuredtext', writer=<MoinMoin.parser.text_rst.MoinWriter instance>, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides={'file_insertion_enabled': 0, 'halt_level': 5, 'raw_enabled': 0, 'stylesheet_path': '', 'template': '', 'traceback': True}, config_section=None, enable_exit_status=None)

    1. 429 settings_overrides=settings_overrides,
    2. 430 config_section=config_section,
    3. 431 enable_exit_status=enable_exit_status)
    4. 432 return pub.writer.parts
    5. 433
    • enable_exit_status = None
  12. /usr/local/lib/python2.4/site-packages/docutils/core.py in publish_programmatically (source_class=<class docutils.io.StringInput>, source=u'\nThe text below contains links that look like "(...ls.sourceforge.net/docs/user/rst/quickref.html\n\n\n', source_path=None, destination_class=<class docutils.io.StringOutput>, destination=None, destination_path=None, reader=None, reader_name='standalone', parser=None, parser_name='restructuredtext', writer=<MoinMoin.parser.text_rst.MoinWriter instance>, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides={'file_insertion_enabled': 0, 'halt_level': 5, 'raw_enabled': 0, 'stylesheet_path': '', 'template': '', 'traceback': True}, config_section=None, enable_exit_status=None)

    1. 609 settings_spec, settings_overrides, config_section)
    2. 610 pub.set_source(source, source_path)
    3. 611 pub.set_destination(destination, destination_path)
    4. 612 output = pub.publish(enable_exit_status=enable_exit_status)
    5. 613 return output, pub
    • output undefined
    • pub = <docutils.core.Publisher instance>
    • pub.publish = <bound method Publisher.publish of <docutils.core.Publisher instance>>
    • enable_exit_status = None
  13. /usr/local/lib/python2.4/site-packages/docutils/core.py in publish (self=<docutils.core.Publisher instance>, argv=None, usage=None, description=None, settings_spec=None, settings_overrides=None, config_section=None, enable_exit_status=None)

    1. 204 self.settings)
    2. 205 self.apply_transforms()
    3. 206 output = self.writer.write(self.document, self.destination)
    4. 207 self.writer.assemble_parts()
    5. 208 except SystemExit, error:
    • output undefined
    • self = <docutils.core.Publisher instance>
    • self.writer = <MoinMoin.parser.text_rst.MoinWriter instance>
    • self.writer.write = <bound method MoinWriter.write of <MoinMoin.parser.text_rst.MoinWriter instance>>
    • self.document = <document: <paragraph...><target...><target "quick restructuredtext ...>
    • self.destination = docutils.io.StringOutput: destination=None, destination_path='<string>'
  14. /usr/local/lib/python2.4/site-packages/docutils/writers/__init__.py in write (self=<MoinMoin.parser.text_rst.MoinWriter instance>, document=<document: <paragraph...><target...><target "quick restructuredtext ...>, destination=docutils.io.StringOutput: destination=None, destination_path='<string>')

    1. 76 document.settings.language_code)
    2. 77 self.destination = destination
    3. 78 self.translate()
    4. 79 output = self.destination.write(self.output)
    5. 80 return output
    • self = <MoinMoin.parser.text_rst.MoinWriter instance>
    • self.translate = <bound method MoinWriter.translate of <MoinMoin.parser.text_rst.MoinWriter instance>>
  15. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/parser/text_rst.py in translate (self=<MoinMoin.parser.text_rst.MoinWriter instance>)

    1. 164 self.wikiparser,
    2. 165 self)
    3. 166 self.document.walkabout(visitor)
    4. 167 self.visitor = visitor
    5. 168 # Docutils 0.5.0 and later require the writer to have the visitor
    • self = <MoinMoin.parser.text_rst.MoinWriter instance>
    • self.document = <document: <paragraph...><target...><target "quick restructuredtext ...>
    • self.document.walkabout = <bound method document.walkabout of <document: <...><target...><target "quick restructuredtext ...>>
    • visitor = <MoinMoin.parser.text_rst.MoinTranslator instance>
  16. /usr/local/lib/python2.4/site-packages/docutils/nodes.py in walkabout (self=<document: <paragraph...><target...><target "quick restructuredtext ...>, visitor=<MoinMoin.parser.text_rst.MoinTranslator instance>)

    1. 157 try:
    2. 158 for child in children[:]:
    3. 159 child.walkabout(visitor)
    4. 160 except SkipSiblings:
    5. 161 pass
    • child = <paragraph: <#text: u'The text below c ...'><reference...><#text: u' ...>
    • child.walkabout = <bound method paragraph.walkabout of <paragraph:... text below c ...'><reference...><#text: u' ...>>
    • visitor = <MoinMoin.parser.text_rst.MoinTranslator instance>
  17. /usr/local/lib/python2.4/site-packages/docutils/nodes.py in walkabout (self=<paragraph: <#text: u'The text below c ...'><reference...><#text: u' ...>, visitor=<MoinMoin.parser.text_rst.MoinTranslator instance>)

    1. 157 try:
    2. 158 for child in children[:]:
    3. 159 child.walkabout(visitor)
    4. 160 except SkipSiblings:
    5. 161 pass
    • child = <reference: <#text: u'quickref'>>
    • child.walkabout = <bound method reference.walkabout of <reference: <#text: u'quickref'>>>
    • visitor = <MoinMoin.parser.text_rst.MoinTranslator instance>
  18. /usr/local/lib/python2.4/site-packages/docutils/nodes.py in walkabout (self=<reference: <#text: u'quickref'>>, visitor=<MoinMoin.parser.text_rst.MoinTranslator instance>)

    1. 149 try:
    2. 150 try:
    3. 151 visitor.dispatch_visit(self)
    4. 152 except SkipNode:
    5. 153 return
    • visitor = <MoinMoin.parser.text_rst.MoinTranslator instance>
    • visitor.dispatch_visit = <bound method MoinTranslator.dispatch_visit of <MoinMoin.parser.text_rst.MoinTranslator instance>>
    • self = <reference: <#text: u'quickref'>>
  19. /usr/local/lib/python2.4/site-packages/docutils/nodes.py in dispatch_visit (self=<MoinMoin.parser.text_rst.MoinTranslator instance>, node=<reference: <#text: u'quickref'>>)

    1. 1500 'docutils.nodes.NodeVisitor.dispatch_visit calling %s for %s'
    2. 1501 % (method.__name__, node_name))
    3. 1502 return method(node)
    4. 1503
    5. 1504 def dispatch_departure(self, node):
    • method = <bound method MoinTranslator.visit_reference of <MoinMoin.parser.text_rst.MoinTranslator instance>>
    • node = <reference: <#text: u'quickref'>>
  20. /srv/de.thinkmo.hg/repos/moin/1.6-docbook-mvirkkil/MoinMoin/parser/text_rst.py in visit_reference (self=<MoinMoin.parser.text_rst.MoinTranslator instance>, node=<reference: <#text: u'quickref'>>)

    1. 380 else:
    2. 381 # Default case - make a link to a wiki page.
    3. 382 page = MoinMoin.Page.Page(self.request, refuri)
    4. 383 node['refuri'] = page.url(self.request)
    5. 384 if not page.exists():
    • page undefined
    • MoinMoin undefined
    • self = <MoinMoin.parser.text_rst.MoinTranslator instance>
    • self.request = <MoinMoin.request.CGI.Request object>
    • refuri = u'quickref.html'

NameError

global name 'MoinMoin' is not defined

  • args = ("global name 'MoinMoin' is not defined",)

System Details

  • Date: Tue, 04 Jul 2006 06:40:12 +0000
  • Platform: Linux thinkmo 2.6.14-thinkmo-1 #1 SMP Wed Nov 9 17:33:56 CET 2005 x86_64
  • Python: Python 2.4.3 (/usr/local/bin/python)
  • MoinMoin: Release 1.6.0alpha (release)