id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 10892,TypeError: 'NoneType' object is not iterable --- enumerating late links (layout.html),olemis+trac@…,olemis+trac@…,"I'm submitting this bug report after performing [/search?q=%22late+links%22&noquickjump=1&ticket=on this search] . Nothing found . Fact is that I got this error . ==== How to Reproduce ==== While doing a GET operation on `/ticket/48`, Trac issued an internal error. ''(please provide additional details here)'' Request parameters: {{{ {'id': u'48'} }}} User agent: `Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0` ==== System Information ==== || '''`Trac`''' || `0.13dev-r11046 ` || || '''`Bloodhound Trac`''' || `0.13dev-r1360726` || || '''`Genshi`''' || `0.6` || || '''`Mercurial`''' || `2.1` || || '''`Pygments`''' || `1.2.2` || || '''`pysqlite`''' || `2.4.1` || || '''`Python`''' || `2.6.5 (r265:79063, Apr 16 2010, 13:57:41) ` [[br]] `[GCC 4.4.3]` || || '''`setuptools`''' || `0.6c11` || || '''`SQLite`''' || `3.6.22` || || '''`jQuery`''' || `1.7.2` || ==== Enabled Plugins ==== || '''`BloodhoundDashboardPlugin`''' || `1.0.0` || || '''`BloodhoundMultiProduct`''' || `0.2.0` || || '''`BloodhoundTheme`''' || `1.0.1` || || '''`IniAdmin`''' || `0.2` || || '''`TracAccountManager`''' || `0.3.2` || || '''`TracGrowlPlugin`''' || `0.2.1dev` || || '''`TracMercurial`''' || `0.13.0.5dev` || || '''`TracThemeEngine`''' || `2.0.1` || ==== Python Traceback ==== {{{ Traceback (most recent call last): File ""/path/to/hg/trac/trac/web/main.py"", line 480, in _dispatch_request dispatcher.dispatch(req) File ""/path/to/hg/trac/trac/web/main.py"", line 217, in dispatch content_type) File ""/path/to/hg/trac/trac/web/chrome.py"", line 1022, in render_template encoding='utf-8') File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py"", line 183, in render return encode(generator, method=method, encoding=encoding, out=out) File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py"", line 58, in encode for chunk in iterator: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py"", line 339, in __call__ for kind, data, pos in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py"", line 826, in __call__ for kind, data, pos in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py"", line 670, in __call__ for kind, data, pos in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py"", line 771, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py"", line 586, in __call__ for ev in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py"", line 288, in _ensure for event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py"", line 288, in _ensure for event in stream: File ""/path/to/hg/trac/trac/web/chrome.py"", line 1161, in _strip_accesskeys for kind, data, pos in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py"", line 288, in _ensure for event in stream: File ""/path/to/hg/trac/trac/web/chrome.py"", line 1150, in _generate for kind, data, pos in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py"", line 288, in _ensure for event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py"", line 288, in _ensure for event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py"", line 686, in _unmark for mark, event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py"", line 1175, in __call__ for mark, (kind, data, pos) in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py"", line 714, in __call__ for mark, event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py"", line 779, in __call__ for mark, event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py"", line 726, in __call__ mark, subevent = next() File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py"", line 682, in _mark for event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py"", line 605, in _include for event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py"", line 378, in _match ctxt, start=idx + 1, **vars): File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py"", line 378, in _match ctxt, start=idx + 1, **vars): File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py"", line 327, in _match for event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py"", line 545, in _flatten for kind, data, pos in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py"", line 288, in _ensure for event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/path.py"", line 588, in _generate subevent = next() File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py"", line 605, in _include for event in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py"", line 316, in _strip event = next() File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py"", line 545, in _flatten for kind, data, pos in stream: File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/directives.py"", line 359, in __call__ iterable = _eval_expr(self.expr, ctxt, vars) File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py"", line 277, in _eval_expr retval = expr.evaluate(ctxt) File ""/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py"", line 178, in evaluate return eval(self.code, _globals, {'__data__': data}) File ""/path/to/hg/trac/trac/templates/layout.html"", line 44, in TypeError: 'NoneType' object is not iterable }}} I detected this while running Trac @ r11046 . Nonetheless I checked [source:/trunk/trac/templates/layout.html@11155:55-57 latest code] and it seems there is still a problem in there . The following modification (against r11046) should fix it {{{ #!diff $ hg diff diff -r 54c6e88255c6 trac/templates/layout.html --- a/trac/templates/layout.html Thu Oct 11 20:42:55 2012 -0500 +++ b/trac/templates/layout.html Fri Oct 12 00:24:55 2012 -0500 @@ -41,7 +41,7 @@ ${select('*|text()|comment()')} }}} ",defect,closed,normal,0.12.5,rendering,,normal,fixed,genshi stylesheets,ryan.j.ollos@…,,,,