--> -->

TypeError

sequence item 0: expected string, NoneType found

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. /Library/Python/2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object at 0x27c970>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show at 0x5eec70>
    • self = <MoinMoin.request.request_cgi.Request object at 0x27c970>
    • self.page = <MoinMoin.Page.Page object at 0x60f850>
    • self.page.page_name = u'PageTree'
  2. /Library/Python/2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'PageTree', request=<MoinMoin.request.request_cgi.Request object at 0x27c970>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /Library/Python/2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x6204f0>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1199 format_args=pi['formatargs'],
    2. 1200 do_cache=do_cache,
    3. 1201 start_line=pi['lines'])
    4. 1202
    5. 1203 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x4e4148>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
  4. /Library/Python/2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x6204f0>, request=<MoinMoin.request.request_cgi.Request object at 0x27c970>, body=u'<<Navigation(roottree,8,fullname=True,navtable=False)>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1287 try:
    2. 1288 code = self.loadCache(request)
    3. 1289 self.execute(request, parser, code)
    4. 1290 except Exception, e:
    5. 1291 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page object at 0x6204f0>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0x6204f0>>
    • request = <MoinMoin.request.request_cgi.Request object at 0x27c970>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x4d7e40>
    • code = <code object <module> at 0x677890, file "PageTree", line 2>
  5. /Library/Python/2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0x6204f0>, request=<MoinMoin.request.request_cgi.Request object at 0x27c970>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x4d7e40>, code=<code object <module> at 0x677890, file "PageTree", line 2>)

    1. 1318 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1319 try:
    3. 1320 exec code
    4. 1321 except "CacheNeedsUpdate": # convert the exception
    5. 1322 raise Exception("CacheNeedsUpdate")
    • code = <code object <module> at 0x677890, file "PageTree", line 2>
  6. /Library/WebServer/WikiFarm/PageTree in ()

  7. /Library/Python/2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x4e4198>, macro_obj=<MoinMoin.macro.Macro instance at 0x4e4170>, name=u'Navigation', args=u'roottree,8,fullname=True,navtable=False', markup=u'<<Navigation(roottree,8,fullname=True,navtable=False)>>')

    1. 308 # call the macro
    2. 309 try:
    3. 310 return macro_obj.execute(name, args)
    4. 311 except ImportError, err:
    5. 312 errmsg = unicode(err)
    • macro_obj = <MoinMoin.macro.Macro instance at 0x4e4170>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x4e4170>>
    • name = u'Navigation'
    • args = u'roottree,8,fullname=True,navtable=False'
  8. /Library/Python/2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x4e4170>, macro_name=u'Navigation', args=u'roottree,8,fullname=True,navtable=False')

    1. 126 else:
    2. 127 raise ImportError("Cannot load macro %s" % macro_name)
    3. 128 return execute(self, args)
    4. 129
    5. 130 def _m_lang(self, text):
    • execute = <function <lambda> at 0x48f930>
    • self = <MoinMoin.macro.Macro instance at 0x4e4170>
    • args = u'roottree,8,fullname=True,navtable=False'
  9. /Library/Python/2.5/site-packages/MoinMoin/macro/__init__.py in (_self=<MoinMoin.macro.Macro instance at 0x4e4170>, _args=u'roottree,8,fullname=True,navtable=False')

    1. 113 call = wikiutil.importPlugin(self.cfg, 'macro', macro_name,
    2. 114 function='macro_%s' % macro_name)
    3. 115 execute = lambda _self, _args: _self._wrap(call, _args, [self])
    4. 116 except wikiutil.PluginAttributeError:
    5. 117 # fall back to old execute() method, no longer recommended
    • execute undefined
    • _self = <MoinMoin.macro.Macro instance at 0x4e4170>
    • _args = u'roottree,8,fullname=True,navtable=False'
    • _self._wrap = <bound method Macro._wrap of <MoinMoin.macro.Macro instance at 0x4e4170>>
    • call = <function macro_Navigation at 0x48f730>
    • self = <MoinMoin.macro.Macro instance at 0x4e4170>
  10. /Library/Python/2.5/site-packages/MoinMoin/macro/__init__.py in _wrap (self=<MoinMoin.macro.Macro instance at 0x4e4170>, function=<function macro_Navigation at 0x48f730>, args=u'roottree,8,fullname=True,navtable=False', fixed=[<MoinMoin.macro.Macro instance at 0x4e4170>])

    1. 95 try:
    2. 96 return wikiutil.invoke_extension_function(self.request, function,
    3. 97 args, fixed)
    4. 98 except ValueError, e:
    5. 99 return self.format_error(e)
    • args = u'roottree,8,fullname=True,navtable=False'
    • fixed = [<MoinMoin.macro.Macro instance at 0x4e4170>]
  11. /Library/Python/2.5/site-packages/MoinMoin/wikiutil.py in invoke_extension_function (request=<MoinMoin.request.request_cgi.Request object at 0x27c970>, function=<function macro_Navigation at 0x48f730>, args=u'roottree,8,fullname=True,navtable=False', fixed_args=[<MoinMoin.macro.Macro instance at 0x4e4170>])

    1. 1975 # went wrong (if it does)
    2. 1976 kwargs[argname] = _convert_arg(request, kwargs[argname],
    3. 1977 defaults[argname], argname)
    4. 1978 if kwargs[argname] is None:
    5. 1979 if isinstance(defaults[argname], required_arg):
    • defaults = {'depth': 0, 'scheme': <MoinMoin.wikiutil.required_arg instance at 0x67f170>}
    • argname = 'scheme'
  12. /Library/Python/2.5/site-packages/MoinMoin/wikiutil.py in _convert_arg (request=<MoinMoin.request.request_cgi.Request object at 0x27c970>, value=u'roottree', default=<MoinMoin.wikiutil.required_arg instance at 0x67f170>, name='scheme')

    1. 1881 # is given in the value
    2. 1882 choices = [None] + list(default.argtype)
    3. 1883 return get_choice(request, value, name, choices)
    4. 1884 else:
    5. 1885 return _convert_arg(request, value, default.argtype, name)
    • global get_choice = <function get_choice at 0x4905b0>
    • request = <MoinMoin.request.request_cgi.Request object at 0x27c970>
    • value = u'roottree'
    • name = 'scheme'
    • choices = [None, u'children', u'siblings', u'slideshow', u'slides']
  13. /Library/Python/2.5/site-packages/MoinMoin/wikiutil.py in get_choice (request=<MoinMoin.request.request_cgi.Request object at 0x27c970>, arg=u'roottree', name='scheme', choices=[None, u'children', u'siblings', u'slideshow', u'slides'])

    1. 1727 raise ValueError(
    2. 1728 _('Argument "%s" must be one of "%s", not "%s"') % (
    3. 1729 name, '", "'.join(choices), arg))
    4. 1730 else:
    5. 1731 raise ValueError(
    • name = 'scheme'
    • '", "'.join = <built-in method join of str object at 0x27cbc0>
    • choices = [None, u'children', u'siblings', u'slideshow', u'slides']
    • arg = u'roottree'

TypeError

sequence item 0: expected string, NoneType found

  • args = ('sequence item 0: expected string, NoneType found',)
  • message = 'sequence item 0: expected string, NoneType found'

System Details

  • Date: Tue, 09 Mar 2010 22:19:27 +0000
  • Platform: Darwin gnarlodious.nedernet.net 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh
  • Python: Python 2.5.1 (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python)
  • MoinMoin: Release 1.8.3 (release)