Attachment 'traceback6.html'
DownloadTypeError
object of type 'generator' has no len()
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.
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_standalone.Request object at 0x16f1390>)
- 1302 self.page.send_page()
- 1303 else:
- 1304 handler(self.page.page_name, self)
- 1305
- 1306 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function execute at 0x1713410>
- self = <MoinMoin.request.request_standalone.Request object at 0x16f1390>
- self.page = <MoinMoin.Page.Page object at 0x16f1dd0>
- self.page.page_name = u'SystemInfo'
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/action/login.py in execute (pagename=u'SystemInfo', request=<MoinMoin.request.request_standalone.Request object at 0x16f1390>)
- 16
- 17 def execute(pagename, request):
- 18 return LoginHandler(pagename, request).handle()
- 19
- 20 class LoginHandler:
- global LoginHandler = <class MoinMoin.action.login.LoginHandler at 0x17190b0>
- pagename = u'SystemInfo'
- request = <MoinMoin.request.request_standalone.Request object at 0x16f1390>
- ).handle undefined
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/action/login.py in handle (self=<MoinMoin.action.login.LoginHandler instance at 0x15147a0>)
- 72 error = ''.join(error)
- 73 request.theme.add_msg(error, "error")
- 74 return self.page.send_page()
- 75
- 76 else: # show login form
- self = <MoinMoin.action.login.LoginHandler instance at 0x15147a0>
- self.page = <MoinMoin.Page.Page object at 0x16f1e10>
- self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page object at 0x16f1e10>>
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x16f1e10>, **keywords={})
- 982 format_args=pi['formatargs'],
- 983 do_cache=do_cache,
- 984 start_line=pi['lines'])
- 985
- 986 # check for pending footnotes
- start_line undefined
- pi = {'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 10}
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x16f1e10>, request=<MoinMoin.request.request_standalone.Request object at 0x16f1390>, body=u'<<SystemInfo>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 10})
- 1065
- 1066 if not (do_cache and self.canUseCache(Parser)):
- 1067 self.format(parser)
- 1068 else:
- 1069 try:
- self = <MoinMoin.Page.Page object at 0x16f1e10>
- self.format = <bound method Page.format of <MoinMoin.Page.Page object at 0x16f1e10>>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page object at 0x16f1e10>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>)
- 1086 def format(self, parser):
- 1087 """ Format and write page content without caching """
- 1088 parser.format(self.formatter)
- 1089
- 1090 def execute(self, request, parser, code):
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>
- parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>>
- self = <MoinMoin.Page.Page object at 0x16f1e10>
- self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x170f560>
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>, formatter=<MoinMoin.formatter.text_html.Formatter instance at 0x170f560>, inhibit_p=False)
- 1541
- 1542 # Scan line, format and write
- 1543 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1544 self.request.write(formatted_line)
- 1545
- formatted_line undefined
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>
- self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>>
- line = u'<<SystemInfo>> '
- inhibit_p = False
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>, line=u'<<SystemInfo>> ', inhibit_p=False)
- 1357 self.in_table or self.in_list):
- 1358 result.append(self.formatter.paragraph(1, css_class="line867"))
- 1359 result.append(self.replace(match, inhibit_p))
- 1360 end = match.end()
- 1361 lastpos = end
- result = ['<p class="line867">']
- result.append = <built-in method append of list object at 0x170ff80>
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>
- self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>>
- match = <_sre.SRE_Match object at 0x17aa2e0>
- inhibit_p = False
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>, match=<_sre.SRE_Match object at 0x17aa2e0>, inhibit_p=False)
- 1399 # Get replace method and replace hit
- 1400 replace_func = getattr(self, '_%s_repl' % type)
- 1401 result.append(replace_func(hit, match.groupdict()))
- 1402 return ''.join(result)
- 1403 else:
- result = []
- result.append = <built-in method append of list object at 0x170f3b0>
- replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>>
- hit = u'SystemInfo'
- match = <_sre.SRE_Match object at 0x17aa2e0>
- match.groupdict = <built-in method groupdict of _sre.SRE_Match object at 0x17aa2e0>
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>, word=u'SystemInfo', 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, ...})
- 1324 if self.macro is None:
- 1325 self.macro = macro.Macro(self)
- 1326 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
- 1327 _macro_name_repl = _macro_repl
- 1328 _macro_args_repl = _macro_repl
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x170fa28>
- self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x170f560>
- self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_html.Formatter instance at 0x170f560>>
- self.macro = <MoinMoin.macro.Macro instance at 0x170f320>
- macro_name = u'SystemInfo'
- 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 0x15ac650>
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x170f560>, macro_obj=<MoinMoin.macro.Macro instance at 0x170f320>, name=u'SystemInfo', args=None, markup=u'<<SystemInfo>>')
- 312 # call the macro
- 313 try:
- 314 return macro_obj.execute(name, args)
- 315 except ImportError, err:
- 316 errmsg = unicode(err)
- macro_obj = <MoinMoin.macro.Macro instance at 0x170f320>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x170f320>>
- name = u'SystemInfo'
- args = None
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x170f320>, macro_name=u'SystemInfo', args=None)
- 126 else:
- 127 raise ImportError("Cannot load macro %s" % macro_name)
- 128 return execute(self, args)
- 129
- 130 def _m_lang(self, text):
- execute = <function <lambda> at 0x16f3398>
- self = <MoinMoin.macro.Macro instance at 0x170f320>
- args = None
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/macro/__init__.py in (_self=<MoinMoin.macro.Macro instance at 0x170f320>, _args=None)
- 113 call = wikiutil.importPlugin(self.cfg, 'macro', macro_name,
- 114 function='macro_%s' % macro_name)
- 115 execute = lambda _self, _args: _self._wrap(call, _args, [self])
- 116 except wikiutil.PluginAttributeError:
- 117 # fall back to old execute() method, no longer recommended
- execute undefined
- _self = <MoinMoin.macro.Macro instance at 0x170f320>
- _args = None
- _self._wrap = <bound method Macro._wrap of <MoinMoin.macro.Macro instance at 0x170f320>>
- call = <function macro_SystemInfo at 0x1721aa0>
- self = <MoinMoin.macro.Macro instance at 0x170f320>
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/macro/__init__.py in _wrap (self=<MoinMoin.macro.Macro instance at 0x170f320>, function=<function macro_SystemInfo at 0x1721aa0>, args=None, fixed=[<MoinMoin.macro.Macro instance at 0x170f320>])
- 95 try:
- 96 return wikiutil.invoke_extension_function(self.request, function,
- 97 args, fixed)
- 98 except ValueError, e:
- 99 return self.format_error(e)
- args = None
- fixed = [<MoinMoin.macro.Macro instance at 0x170f320>]
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/wikiutil.py in invoke_extension_function (request=<MoinMoin.request.request_standalone.Request object at 0x16f1390>, function=<function macro_SystemInfo at 0x1721aa0>, args=None, fixed_args=[<MoinMoin.macro.Macro instance at 0x170f320>])
- 2033 kwargs_to_pass.keys()[0]))
- 2034
- 2035 return function(*fixed_args, **kwargs)
- 2036
- 2037
- function = <function macro_SystemInfo at 0x1721aa0>
- fixed_args = [<MoinMoin.macro.Macro instance at 0x170f320>]
- kwargs = {}
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/macro/SystemInfo.py in macro_SystemInfo (macro=<MoinMoin.macro.Macro instance at 0x170f320>)
- 171 def macro_SystemInfo(macro):
- 172 if macro.request.isSpiderAgent: # reduce bot cpu usage
- 173 return ''
- 174 return SystemInfo(macro).render()
- 175
- global SystemInfo = <class MoinMoin.macro.SystemInfo.SystemInfo at 0x126db30>
- macro = <MoinMoin.macro.Macro instance at 0x170f320>
- ).render undefined
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/macro/SystemInfo.py in render (self=<MoinMoin.macro.SystemInfo.SystemInfo instance at 0x170fbd8>)
- 51 def render(self):
- 52 _ = self.request.getText
- 53 return self.formatter.rawHTML(self.getInfo())
- 54
- 55 def getInfo(self):
- self = <MoinMoin.macro.SystemInfo.SystemInfo instance at 0x170fbd8>
- self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x170f560>
- self.formatter.rawHTML = <bound method Formatter.rawHTML of <MoinMoin.formatter.text_html.Formatter instance at 0x170f560>>
- self.getInfo = <bound method SystemInfo.getInfo of <MoinMoin.macro.SystemInfo.SystemInfo instance at 0x170fbd8>>
/home/user/workspace/1.8-mercurialbackend-ppacana/MoinMoin/macro/SystemInfo.py in getInfo (self=<MoinMoin.macro.SystemInfo.SystemInfo instance at 0x170fbd8>)
- 94 totalsize += Page(request, page).size()
- 95
- 96 row(_('Number of pages'), str(len(pagelist)-len(systemPages)))
- 97 row(_('Number of system pages'), str(len(systemPages)))
- 98
- row = <function <lambda> at 0x171caa0>
- _ = <function <lambda> at 0x16f36e0>
- builtin str = <type 'str'>
- builtin len = <built-in function len>
- pagelist = <generator object at 0x170f2d8>
- systemPages = [u'Pr\xe9sentationTemplate', u'HilfeTemplate', u'HomepageGroupsTemplate', u'HomepageReadPageTemplate', u'HomepageReadWritePageTemplate', u'HomepageTemplate', u'HulpTemplate', u'PagePersonnelleTemplate', u'ProjectGroupsTemplate', u'ProjectTemplate', u'SyncJobTemplate', u'TransparentTemplate', u'AideTemplate', u'Cat\xe9gorieTemplate', u'HelpTemplate', u'HomepagePrivatePageTemplate', u'SlideShowTemplate', u'SlideTemplate', u"SupportPapierD'UnePr\xe9sentationTemplate", u'ThuisbladTemplate', ...]
TypeError
object of type 'generator' has no len()
- args = ("object of type 'generator' has no len()",)
- message = "object of type 'generator' has no len()"
System Details
- Date: Sun, 17 Aug 2008 20:13:52 +0000
- Platform: Linux linux 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64
- Python: Python 2.5.2 (/usr/bin/python)
- MoinMoin: Release 1.8.0 (alpha)
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.You are not allowed to attach a file to this page.