Attachment 'PageDicts-traceback.html'

Download

  • Editieren
  • Anzeigen
  • DifferenzAnzeige
  • Info
  • Nicht abonnieren
  • Rohform
  • Druckansicht
--> -->

AttributeError

'NoneType' object has no attribute 'split'

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/lotek/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0xaebf97ac>)

    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 0xaef7c454>
    • self = <MoinMoin.request.request_wsgi.Request object at 0xaebf97ac>
    • self.page = <MoinMoin.Page.Page object at 0xaeb8b6ec>
    • self.page.page_name = u'PageDicts'
  2. /home/lotek/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'PageDicts', request=<MoinMoin.request.request_wsgi.Request object at 0xaebf97ac>, 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. /home/lotek/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xaeb8b8cc>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1196 format_args=pi['formatargs'],
    2. 1197 do_cache=do_cache,
    3. 1198 start_line=pi['lines'])
    4. 1199
    5. 1200 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance at 0xaeb8b9cc>, 'format': 'wiki', 'formatargs': '', 'language': 'de', 'lines': 0}
  4. /home/lotek/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0xaeb8b8cc>, request=<MoinMoin.request.request_wsgi.Request object at 0xaebf97ac>, body=u'= PageDicts =\n\n<<PageDicts>>\n\n----\nCategoryTest\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1289 raise
    2. 1290 try:
    3. 1291 code = self.makeCache(request, parser)
    4. 1292 self.execute(request, parser, code)
    5. 1293 except Exception, e:
    • code undefined
    • self = <MoinMoin.Page.Page object at 0xaeb8b8cc>
    • self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object at 0xaeb8b8cc>>
    • request = <MoinMoin.request.request_wsgi.Request object at 0xaebf97ac>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>
  5. /home/lotek/lib/python2.5/site-packages/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object at 0xaeb8b8cc>, request=<MoinMoin.request.request_wsgi.Request object at 0xaebf97ac>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>)

    1. 1349 saved_current_lang = request.current_lang
    2. 1350 try:
    3. 1351 text = request.redirectedOutput(parser.format, formatter)
    4. 1352 finally:
    5. 1353 request.current_lang = saved_current_lang
    • text undefined
    • request = <MoinMoin.request.request_wsgi.Request object at 0xaebf97ac>
    • request.redirectedOutput = <bound method Request.redirectedOutput of <MoinM...quest.request_wsgi.Request object at 0xaebf97ac>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>>
    • formatter = <MoinMoin.formatter.text_python.Formatter instance at 0xaeb8bdec>
  6. /home/lotek/lib/python2.5/site-packages/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_wsgi.Request object at 0xaebf97ac>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>>, *args=(<MoinMoin.formatter.text_python.Formatter instance at 0xaeb8bdec>,), **kw={})

    1. 846 self.redirect(buf)
    2. 847 try:
    3. 848 function(*args, **kw)
    4. 849 finally:
    5. 850 self.redirect()
    • function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>>
    • args = (<MoinMoin.formatter.text_python.Formatter instance at 0xaeb8bdec>,)
    • kw = {}
  7. /home/lotek/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>, formatter=<MoinMoin.formatter.text_python.Formatter instance at 0xaeb8bdec>, inhibit_p=False)

    1. 1544
    2. 1545 # Scan line, format and write
    3. 1546 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1547 self.request.write(formatted_line)
    5. 1548
    • formatted_line = u'<p class="line867"><<<>>>PageDicts</h1>\n'
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>>
    • line = u'<<PageDicts>> '
    • inhibit_p = False
  8. /home/lotek/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>, line=u'<<PageDicts>> ', inhibit_p=False)

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

    1. 1402 # Get replace method and replace hit
    2. 1403 replace_func = getattr(self, '_%s_repl' % type)
    3. 1404 result.append(replace_func(hit, match.groupdict()))
    4. 1405 return ''.join(result)
    5. 1406 else:
    • result = []
    • result.append = <built-in method append of list object at 0xaeb8beac>
    • replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>>
    • hit = u'PageDicts'
    • match = <_sre.SRE_Match object at 0x88274c0>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object at 0x88274c0>
  10. /home/lotek/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>, word=u'PageDicts', 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. 1325 if self.macro is None:
    2. 1326 self.macro = macro.Macro(self)
    3. 1327 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1328 _macro_name_repl = _macro_repl
    5. 1329 _macro_args_repl = _macro_repl
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xaeb8bb0c>
    • self.formatter = <MoinMoin.formatter.text_python.Formatter instance at 0xaeb8bdec>
    • self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_python.Formatter instance at 0xaeb8bdec>>
    • self.macro = <MoinMoin.macro.Macro instance at 0xaeb8be8c>
    • macro_name = u'PageDicts'
    • macro_args = None
    • 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 at 0xaeb8e68c>
  11. /home/lotek/lib/python2.5/site-packages/MoinMoin/formatter/text_python.py in macro (self=<MoinMoin.formatter.text_python.Formatter instance at 0xaeb8bdec>, macro_obj=<MoinMoin.macro.Macro instance at 0xaeb8be8c>, name=u'PageDicts', args=None, markup=u'<<PageDicts>>')

    1. 190 # XXX: why is this necessary??
    2. 191 macro_obj.formatter = self
    3. 192 return macro_obj.execute(name, args)
    4. 193 else:
    5. 194 return self.__insert_code(
    • macro_obj = <MoinMoin.macro.Macro instance at 0xaeb8be8c>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0xaeb8be8c>>
    • name = u'PageDicts'
    • args = None
  12. /home/lotek/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0xaeb8be8c>, macro_name=u'PageDicts', args=None)

    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 execute at 0xaeb9256c>
    • self = <MoinMoin.macro.Macro instance at 0xaeb8be8c>
    • args = None
  13. /home2/lotek/wiki/data/galaxy/plugin/macro/PageDicts.py in execute (macro=<MoinMoin.macro.Macro instance at 0xaeb8be8c>, args=None)

    1. 70 def execute(macro, args):
    2. 71 request = macro.request
    3. 72 args = [ arg.strip() for arg in args.split(',') ]
    4. 73 conditions = []
    5. 74 transpose = 0 ## if we transpose the results
    • args = None
    • arg undefined
    • args.split undefined

AttributeError

'NoneType' object has no attribute 'split'

  • args = ("'NoneType' object has no attribute 'split'",)
  • message = "'NoneType' object has no attribute 'split'"

System Details

  • Date: Mon, 09 Feb 2009 18:42:33 +0000
  • Platform: Linux web11.webfaction.com 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 12 17:59:08 EDT 2007 i686
  • Python: Python 2.5 (/home/lotek/bin/python)
  • MoinMoin: Release 1.8.1 (release)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-09-03 14:07:57, 3.4 KB) [[attachment:PageDicts-0.2.py]]
  • [get | view] (2006-12-22 22:23:43, 4.0 KB) [[attachment:PageDicts-0.3.py]]
  • [get | view] (2008-06-06 11:04:38, 4.1 KB) [[attachment:PageDicts-0.4.py]]
  • [get | view] (2008-10-06 21:25:15, 4.2 KB) [[attachment:PageDicts-0.5.py]]
  • [get | view] (2011-07-19 11:57:52, 4.7 KB) [[attachment:PageDicts-0.6.py]]
  • [get | view] (2009-02-09 21:23:53, 28.9 KB) [[attachment:PageDicts-traceback.html]]
  • [get | view] (2006-09-03 13:19:03, 3.2 KB) [[attachment:PageDicts.py]]
  • [get | view] (2008-06-06 11:02:01, 25.4 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.