--> -->

AttributeError

'module' object has no attribute 'allow_subpages'

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. /var/lib/python-support/python2.4/MoinMoin/request.py in run (self=<MoinMoin.request.RequestFastCGI object>)

    1. 1152 # Visit pagename
    2. 1153 self.page = Page(self, pagename)
    3. 1154 self.page.send_page(self, count_hit=1)
    4. 1155
    5. 1156 # generate page footer (actions that do not want this footer
    • self = <MoinMoin.request.RequestFastCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
    • count_hit undefined
  2. /var/lib/python-support/python2.4/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, msg='', **keywords={'count_hit': 1})

    1. 1234 format_args=pi_formatargs,
    2. 1235 do_cache=do_cache,
    3. 1236 start_line=pi_lines)
    4. 1237
    5. 1238 # check for pending footnotes
    • start_line undefined
    • pi_lines = 9
  3. /var/lib/python-support/python2.4/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'[[Navigation(siblings)]]\n\nThis macro includes th...esonly)]]` -- show next 4 items only with titles\n', format_args=u'', do_cache=1, **kw={'start_line': 9})

    1. 1317 try:
    2. 1318 code = self.loadCache(request)
    3. 1319 self.execute(request, parser, code)
    4. 1320 except 'CacheNeedsUpdate':
    5. 1321 try:
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestFastCGI object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object ? at 0xb5f84360, file "HelpOnMacros/Include", line 2>
  4. /var/lib/python-support/python2.4/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0xb5f84360, file "HelpOnMacros/Include", line 2>)

    1. 1341 if hasattr(MoinMoin, '__loader__'):
    2. 1342 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    3. 1343 exec code
    4. 1344
    5. 1345 def loadCache(self, request):
    • code = <code object ? at 0xb5f84360, file "HelpOnMacros/Include", line 2>
  5. /usr/share/moin/server/HelpOnMacros/Include in ?

  6. /var/lib/python-support/python2.4/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'Navigation', args=u'siblings')

    1. 288 def macro(self, macro_obj, name, args):
    2. 289 # call the macro
    3. 290 return macro_obj.execute(name, args)
    4. 291
    5. 292 def _get_bang_args(self, line):
    • macro_obj = <MoinMoin.wikimacro.Macro instance>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>
    • name = u'Navigation'
    • args = u'siblings'
  7. /var/lib/python-support/python2.4/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'Navigation', args=u'siblings')

    1. 118 else:
    2. 119 raise ImportError("Cannot load macro %s" % macro_name)
    3. 120 return execute(self, args)
    4. 121
    5. 122 def _m_lang(self, text):
    • execute = <function execute>
    • self = <MoinMoin.wikimacro.Macro instance>
    • args = u'siblings'
  8. /var/www/wikidata/data/plugin/macro/Navigation.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, args=u'siblings')

    1. 227 def execute(macro, args):
    2. 228 # get HTML code with the links
    3. 229 navi = Navigation(macro, args or '').dispatch()
    4. 230 navi = '</li><li>'.join(navi)
    5. 231
    • navi undefined
    • global Navigation = <class wiki.plugin.macro.Navigation.Navigation>
    • macro = <MoinMoin.wikimacro.Macro instance>
    • args = u'siblings'
    • ).dispatch undefined
  9. /var/www/wikidata/data/plugin/macro/Navigation.py in dispatch (self=<wiki.plugin.macro.Navigation.Navigation instance>)

    1. 90
    2. 91 scheme = self.args[0] or '<default>'
    3. 92 return getattr(self, 'do_'+scheme, self.badscheme)()
    4. 93
    5. 94
    • builtin getattr = <built-in function getattr>
    • self = <wiki.plugin.macro.Navigation.Navigation instance>
    • scheme = u'siblings'
    • self.badscheme = <bound method Navigation.badscheme of <wiki.plugin.macro.Navigation.Navigation instance>>
  10. /var/www/wikidata/data/plugin/macro/Navigation.py in do_siblings (self=<wiki.plugin.macro.Navigation.Navigation instance>, root=None)

    1. 121 _ = self._
    2. 122 # get parent page name
    3. 123 parent = root or _getParent(self.pagename)
    4. 124 if not parent:
    5. 125 return (self.macro.formatter.sysmsg(1) +
    • parent undefined
    • root = None
    • global _getParent = <function _getParent>
    • self = <wiki.plugin.macro.Navigation.Navigation instance>
    • self.pagename = u'HelpOnMacros/Include'
  11. /var/www/wikidata/data/plugin/macro/Navigation.py in _getParent (pagename=u'HelpOnMacros/Include')

    1. 18 """ Return parent of pagename.
    2. 19 """
    3. 20 if config.allow_subpages:
    4. 21 pos = pagename.rfind('/')
    5. 22 if pos >= 0:
    • global config = <module 'MoinMoin.config' from '/var/lib/python-support/python2.4/MoinMoin/config.pyc'>
    • config.allow_subpages undefined

AttributeError

'module' object has no attribute 'allow_subpages'

  • args = ("'module' object has no attribute 'allow_subpages'",)

System Details

  • Date: Sat, 11 Oct 2008 04:15:32 +0000
  • Platform: Linux butterbox 2.6.18-6-686 #1 SMP Fri Jun 6 22:22:11 UTC 2008 i686
  • Python: Python 2.4.4 (/usr/bin/python)
  • MoinMoin: Release 1.5.3 (release)