Locked History Actions

Diff for "ANAROOT"

Differences between revisions 14 and 15
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
<<Navigation(siblings,1)>> <<Navigation(ANAROOT,1)>>

ANAROOT

このページではanarootを開発するために情報を交換するためのページです。

Contents

何かページを作成する際には http://****/ANAROOT/hoge としてください。

Contents

  1. ANAROOT

--> -->

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. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object>)

    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 execute>
    • self = <MoinMoin.request.request_cgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'ANAROOT'
  2. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/action/diff.py in execute (pagename=u'ANAROOT', request=<MoinMoin.request.request_cgi.Request object>)

    1. 184 from MoinMoin.util import diff_html
    2. 185 request.write(f.rawHTML(diff_html.diff(request, oldpage.get_raw_body(), newpage.get_raw_body())))
    3. 186 newpage.send_page(count_hit=0, content_only=1, content_id="content-below-diff")
    4. 187 else:
    5. 188 from MoinMoin.util import diff_text
    • newpage = <MoinMoin.Page.Page object>
    • newpage.send_page = <bound method Page.send_page of <MoinMoin.Page.Page object>>
    • count_hit undefined
    • content_only undefined
    • content_id undefined
  3. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, **keywords={'content_id': 'content-below-diff', 'content_only': 1, 'count_hit': 0})

    1. 1198 format_args=pi['formatargs'],
    2. 1199 do_cache=do_cache,
    3. 1200 start_line=pi['lines'])
    4. 1201
    5. 1202 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': 'wiki', 'formatargs': '', 'language': 'ja', 'lines': 0}
  4. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, body=u'= ANAROOT =\n\u3053\u306e\u30da\u30fc\u30b8\u3067\u306fanaroot\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306b\u60c5\u5831\u3092\u4ea4\u63db\u3059\u308b\u305f\u3081\u306e\u30da\u30fc\u30b8\u3067...<<TableOfContents(2)>>\n<<Navigation(ANAROOT,1)>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1288
    2. 1289 if not (do_cache and self.canUseCache(Parser)):
    3. 1290 self.format(parser)
    4. 1291 else:
    5. 1292 try:
    • self = <MoinMoin.Page.Page object>
    • self.format = <bound method Page.format of <MoinMoin.Page.Page object>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
  5. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)

    1. 1309 def format(self, parser):
    2. 1310 """ Format and write page content without caching """
    3. 1311 parser.format(self.formatter)
    4. 1312
    5. 1313 def execute(self, request, parser, code):
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • self = <MoinMoin.Page.Page object>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance>
  6. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>, inhibit_p=False)

    1. 1545
    2. 1546 # Scan line, format and write
    3. 1547 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1548 self.request.write(formatted_line)
    5. 1549
    • formatted_line = u'<div class="table-of-contents"><p class="table-o...">ANAROOT</a></li></ol></div><p class="line874"> '
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • line = u'<<Navigation(ANAROOT,1)>> '
    • inhibit_p = False
  7. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'<<Navigation(ANAROOT,1)>> ', inhibit_p=False)

    1. 1359 self.in_table or self.in_list):
    2. 1360 result.append(self.formatter.paragraph(1, css_class="line867"))
    3. 1361 result.append(self.replace(match, inhibit_p))
    4. 1362 end = match.end()
    5. 1363 lastpos = end
    • result = []
    • result.append = <built-in method append of list object>
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • match = <_sre.SRE_Match object>
    • inhibit_p = False
  8. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, match=<_sre.SRE_Match object>, inhibit_p=False)

    1. 1403 # Get replace method and replace hit
    2. 1404 replace_func = getattr(self, '_%s_repl' % type)
    3. 1405 result.append(replace_func(hit, match.groupdict()))
    4. 1406 return ''.join(result)
    5. 1407 else:
    • result = []
    • result.append = <built-in method append of list object>
    • replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • hit = u'ANAROOT,1'
    • match = <_sre.SRE_Match object>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object>
  9. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'ANAROOT,1', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})

    1. 1326 if self.macro is None:
    2. 1327 self.macro = macro.Macro(self)
    3. 1328 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1329 _macro_name_repl = _macro_repl
    5. 1330 _macro_args_repl = _macro_repl
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance>
    • self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_html.Formatter instance>>
    • self.macro = <MoinMoin.macro.Macro instance>
    • macro_name = u'Navigation'
    • macro_args = u'ANAROOT,1'
    • markup undefined
    • groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
    • groups.get = <built-in method get of dict object>
  10. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, name=u'Navigation', args=u'ANAROOT,1', markup=u'<<Navigation(ANAROOT,1)>>')

    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>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance>>
    • name = u'Navigation'
    • args = u'ANAROOT,1'
  11. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance>, macro_name=u'Navigation', args=u'ANAROOT,1')

    1. 127 else:
    2. 128 raise ImportError("Cannot load macro %s" % macro_name)
    3. 129 return execute(self, args)
    4. 130
    5. 131 def _m_lang(self, text):
    • execute = <function <lambda>>
    • self = <MoinMoin.macro.Macro instance>
    • args = u'ANAROOT,1'
  12. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/macro/__init__.py in (_self=<MoinMoin.macro.Macro instance>, _args=u'ANAROOT,1')

    1. 114 call = wikiutil.importPlugin(self.cfg, 'macro', macro_name,
    2. 115 function='macro_%s' % macro_name)
    3. 116 execute = lambda _self, _args: _self._wrap(call, _args, [self])
    4. 117 except wikiutil.PluginAttributeError:
    5. 118 # fall back to old execute() method, no longer recommended
    • execute undefined
    • _self = <MoinMoin.macro.Macro instance>
    • _args = u'ANAROOT,1'
    • _self._wrap = <bound method Macro._wrap of <MoinMoin.macro.Macro instance>>
    • call = <function macro_Navigation>
    • self = <MoinMoin.macro.Macro instance>
  13. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/macro/__init__.py in _wrap (self=<MoinMoin.macro.Macro instance>, function=<function macro_Navigation>, args=u'ANAROOT,1', fixed=[<MoinMoin.macro.Macro instance>])

    1. 96 try:
    2. 97 return wikiutil.invoke_extension_function(self.request, function,
    3. 98 args, fixed)
    4. 99 except ValueError, e:
    5. 100 return self.format_error(e)
    • args = u'ANAROOT,1'
    • fixed = [<MoinMoin.macro.Macro instance>]
  14. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/wikiutil.py in invoke_extension_function (request=<MoinMoin.request.request_cgi.Request object>, function=<function macro_Navigation>, args=u'ANAROOT,1', fixed_args=[<MoinMoin.macro.Macro instance>])

    1. 1983 # went wrong (if it does)
    2. 1984 kwargs[argname] = _convert_arg(request, kwargs[argname],
    3. 1985 defaults[argname], argname)
    4. 1986 if kwargs[argname] is None:
    5. 1987 if isinstance(defaults[argname], required_arg):
    • defaults = {'depth': 0, 'scheme': <MoinMoin.wikiutil.required_arg instance>}
    • argname = 'scheme'
  15. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/wikiutil.py in _convert_arg (request=<MoinMoin.request.request_cgi.Request object>, value=u'ANAROOT', default=<MoinMoin.wikiutil.required_arg instance>, name='scheme')

    1. 1889 # is given in the value
    2. 1890 choices = [None] + list(default.argtype)
    3. 1891 return get_choice(request, value, name, choices)
    4. 1892 else:
    5. 1893 return _convert_arg(request, value, default.argtype, name)
    • global get_choice = <function get_choice>
    • request = <MoinMoin.request.request_cgi.Request object>
    • value = u'ANAROOT'
    • name = 'scheme'
    • choices = [None, u'children', u'siblings', u'slideshow', u'slides']
  16. /home/kondo/MoinMoin/lib/python2.4/site-packages/MoinMoin/wikiutil.py in get_choice (request=<MoinMoin.request.request_cgi.Request object>, arg=u'ANAROOT', name='scheme', choices=[None, u'children', u'siblings', u'slideshow', u'slides'])

    1. 1735 raise ValueError(
    2. 1736 _('Argument "%s" must be one of "%s", not "%s"') % (
    3. 1737 name, '", "'.join(choices), arg))
    4. 1738 else:
    5. 1739 raise ValueError(
    • name = 'scheme'
    • '", "'.join = <built-in method join of str object>
    • choices = [None, u'children', u'siblings', u'slideshow', u'slides']
    • arg = u'ANAROOT'

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: Thu, 28 Mar 2024 19:10:30 +0000
  • Platform: Linux be.nucl.ap.titech.ac.jp 2.6.32-358.2.1.el6.x86_64 #1 SMP Tue Mar 12 14:18:09 CDT 2013 x86_64
  • Python: Python 2.6.6 (/usr/bin/python)
  • MoinMoin: Release 1.8.8 (release)