Modify ↓
#7669 closed defect (invalid)
UndefinedError: "timedelta" not defined
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /ticketgantt
, Trac issued an internal error.
(please provide additional details here)
User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2
System Information
Trac | 0.11.1.ja1
|
Python | 2.3.3 (#1, May 7 2004, 10:31:40) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)]
|
setuptools | 0.7a1
|
SQLite | 3.3.13
|
pysqlite | 2.3.3
|
Genshi | 0.5
|
mod_python | 3.3.1
|
Subversion | 1.4.2 (r22196)
|
jQuery: | 1.2.6
|
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/Trac-0.11.1.ja1-py2.3.egg/trac/web/main.py", line 424, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.3/site-packages/Trac-0.11.1.ja1-py2.3.egg/trac/web/main.py", line 220, in dispatch data, content_type) File "/usr/lib/python2.3/site-packages/Trac-0.11.1.ja1-py2.3.egg/trac/web/chrome.py", line 715, in render_template return stream.render(method, doctype=doctype) File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/core.py", line 179, in render return encode(generator, method=method, encoding=encoding, out=out) File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/output.py", line 60, in encode return _encode(u''.join(list(iterator))) File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/output.py", line 311, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/output.py", line 753, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/output.py", line 592, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/output.py", line 710, in __call__ text = escape(pop_text(), quotes=False) File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/output.py", line 532, in __call__ for ev in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.3/site-packages/Trac-0.11.1.ja1-py2.3.egg/trac/web/chrome.py", line 767, in _strip_accesskeys for kind, data, pos in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.3/site-packages/Trac-0.11.1.ja1-py2.3.egg/trac/web/chrome.py", line 756, in _generate for kind, data, pos in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/filters/transform.py", line 686, in _unmark for mark, event in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/filters/transform.py", line 1080, in __call__ for mark, event in stream: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/filters/transform.py", line 117, in __iter__ event = self.stream.next() File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/filters/transform.py", line 717, in __call__ result = test(event, {}, {}) File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/path.py", line 191, in _test for steps, size, cursors, cutoff, counter in paths: File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/template/markup.py", line 235, in _strip event = stream.next() File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/template/base.py", line 545, in _exec _exec_suite(event[1], ctxt, **vars) File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/template/base.py", line 302, in _exec_suite suite.execute(_ctxt2dict(ctxt)) File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/template/eval.py", line 201, in execute exec self.code in _globals, data File "/fractal/home/Trac/cache/.egg-cache/TracGanttCalendarPlugin-0.1_r107-py2.3.egg-tmp/ganttcalendar/templates/gantt.html", line 1, in <Suite u'cur = cur + timedelta(days=1) ...'> <html xmlns="http://www.w3.org/1999/xhtml" File "/usr/lib/python2.3/site-packages/Genshi-0.5-py2.3-linux-i686.egg/genshi/template/eval.py", line 279, in _die raise UndefinedError(self._name, self._owner) UndefinedError: "timedelta" not defined
Attachments (0)
Note:
See TracTickets
for help on using tickets.
This is an issue with the GanttCalendarPlugin and not with Trac core, please report it to the plugin author.