Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#9211 closed defect (cantfix)

UndefinedError: None has no member named "get"

Reported by: jgribonvald Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /admin/theme/custom, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'cat_id': u'theme', 'panel_id': u'custom', 'path_info': None}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB6 (.NET CLR 3.5.30729)

System Information

Trac 0.11.1
Python 2.6.2 (release26-maint, Apr 19 2009, 02:11:59)
[GCC 4.3.3]
setuptools 0.6c9
MySQL server: "5.0.75-0ubuntu10.2", client: "5.0.75", thread-safe: 1
MySQLdb 1.2.2
Genshi 0.5.1
mod_python 3.3.1
Pygments 1.3.1
Subversion 1.5.4 (r33841)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 219, in dispatch
    data, content_type)
  File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line 715, in render_template
    return stream.render(method, doctype=doctype)
  File "build/bdist.linux-i686/egg/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "build/bdist.linux-i686/egg/genshi/output.py", line 60, in encode
    return _encode(u''.join(list(iterator)))
  File "build/bdist.linux-i686/egg/genshi/output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/output.py", line 698, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "build/bdist.linux-i686/egg/genshi/output.py", line 532, in __call__
    for ev in stream:
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line 767, in _strip_accesskeys
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line 756, in _generate
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 279, in _match
    content = list(content)
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 234, in _strip
    event = stream.next()
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 558, in _flatten
    for event in self._flatten(substream, ctxt, **vars):
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/directives.py", line 370, in __call__
    iterable = _eval_expr(self.expr, ctxt, **vars)
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 286, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "build/bdist.linux-i686/egg/genshi/template/eval.py", line 180, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/srv/apache2/egg-cache/TracThemeEngine-2.0.1-py2.6.egg-tmp/themeengine/templates/admin_theme_custom.html", line 19, in <Expression u"iter(current_theme.get('colors',()))">
    <py:for each="color in current_theme.get('colors',())">
  File "build/bdist.linux-i686/egg/genshi/template/eval.py", line 279, in _die
    raise UndefinedError(self._name, self._owner)
UndefinedError: None has no member named "get"

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 15 years ago

Resolution: cantfix
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.