Modify

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#5685 closed defect (fixed)

UndefinedError: "data" not defined

Reported by: jhmz333@… Owned by: richard
Priority: normal Component: TracSchedulerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

How to Reproduce

While doing a GET operation on /admin/ticket/ts_admin, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'cat_id': u'ticket', 'panel_id': u'ts_admin', 'path_info': None}

User Agent was: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.0.11) Gecko/2009061212 Iceweasel/3.0.12 (Debian-3.0.12-1)
System Information
Trac 0.11.1
Python 2.4.4 (#2, Oct 22 2008, 20:20:22)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
setuptools 0.6c3
SQLite 3.3.8
pysqlite 2.3.2
Genshi 0.5.1
Subversion 1.4.2 (r22196)
jQuery: 1.2.6
Python Traceback

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 219, in dispatch
    data, content_type)
  File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 715, in render_template
    return stream.render(method, doctype=doctype)
  File "/var/lib/python-support/python2.4/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/var/lib/python-support/python2.4/genshi/output.py", line 60, in encode
    return _encode(u''.join(list(iterator)))
  File "/var/lib/python-support/python2.4/genshi/output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/output.py", line 698, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/var/lib/python-support/python2.4/genshi/output.py", line 532, in __call__
    for ev in stream:
  File "/var/lib/python-support/python2.4/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 767, in _strip_accesskeys
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 756, in _generate
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/markup.py", line 298, in _match
    ctxt, start=idx + 1, **vars):
  File "/var/lib/python-support/python2.4/genshi/template/markup.py", line 298, in _match
    ctxt, start=idx + 1, **vars):
  File "/var/lib/python-support/python2.4/genshi/template/markup.py", line 298, in _match
    ctxt, start=idx + 1, **vars):
  File "/var/lib/python-support/python2.4/genshi/template/markup.py", line 245, in _match
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/markup.py", line 234, in _strip
    event = stream.next()
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/markup.py", line 234, in _strip
    event = stream.next()
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/markup.py", line 234, in _strip
    event = stream.next()
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 558, in _flatten
    for event in self._flatten(substream, ctxt, **vars):
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "/var/lib/python-support/python2.4/genshi/template/directives.py", line 370, in __call__
    iterable = _eval_expr(self.expr, ctxt, **vars)
  File "/var/lib/python-support/python2.4/genshi/template/base.py", line 286, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/var/lib/python-support/python2.4/genshi/template/eval.py", line 180, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/home/rubikadmin/.python-eggs/TracScheduler-0.1-py2.4.egg-tmp/tracscheduler/templates/ts_admin.html", line 20, in <Expression u'iter(data.subdata)'>
    <option py:for="item in data.subdata">${item}</option>
  File "/var/lib/python-support/python2.4/genshi/template/eval.py", line 313, in lookup_attr
    val = getattr(obj, key)
  File "/var/lib/python-support/python2.4/genshi/template/eval.py", line 279, in _die
    raise UndefinedError(self._name, self._owner)
UndefinedError: "data" not defined


Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by richard

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [6398]. The admin panel do nothing actually, so remove it.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from richard. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.