Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#7780 closed defect (invalid)

TypeError: expecting datetime, int, long, float, or None; got <class 'genshi.template.eval.Undefined'>

Reported by: carlos.migliavacca@… 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 /log, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'action': u'follow_copy',
 'limit': u'100',
 'mode': u'path_history',
 'path': '/',
 'rev': u'23',
 'stop_rev': u''}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

System Information

Trac 0.11.1
Python 2.5.2 (r252:60911, Jul 31 2008, 17:49:46)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
setuptools 0.6c8
SQLite 3.4.2
pysqlite 2.4.0
Genshi 0.6dev-r960
mod_python 3.3.1
Subversion 1.4.6 (r28521)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 219, in dispatch
    data, content_type)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/chrome.py", line 715, in render_template
    return stream.render(method, doctype=doctype)
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 56, in encode
    return _encode(u''.join(list(iterator)))
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 307, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 749, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 588, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 694, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 528, in __call__
    for ev in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/chrome.py", line 767, in _strip_accesskeys
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/chrome.py", line 756, in _generate
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/filters/transform.py", line 686, in _unmark
    for mark, event in stream:
  File "build/bdist.linux-x86_64/egg/timingandestimationplugin/tande_filters.py", line 60, in __call__
    for mark, event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/filters/transform.py", line 713, in __call__
    for mark, event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/filters/transform.py", line 682, in _mark
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/filters/transform.py", line 686, in _unmark
    for mark, event in stream:
  File "build/bdist.linux-x86_64/egg/timingandestimationplugin/tande_filters.py", line 60, in __call__
    for mark, event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/filters/transform.py", line 713, in __call__
    for mark, event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/filters/transform.py", line 682, in _mark
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 603, in _include
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 382, in _match
    ctxt, start=idx + 1, **vars):
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 382, in _match
    ctxt, start=idx + 1, **vars):
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 330, in _match
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 577, in _exec
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 567, in _eval
    for event in substream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 530, in _eval
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 585, in _flatten
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 603, in _include
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 319, in _strip
    event = stream.next()
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 577, in _exec
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 567, in _eval
    for event in substream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 530, in _eval
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 585, in _flatten
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 603, in _include
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 319, in _strip
    event = stream.next()
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 577, in _exec
    for event in stream:
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 554, in _eval
    result = _eval_expr(data, ctxt, **vars)
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 281, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "build/bdist.linux-x86_64/egg/genshi/template/eval.py", line 173, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/versioncontrol/templates/revisionlog.html", line 134, in <Expression u'dateinfo(change.date)'>
    <td class="date" py:content="dateinfo(change.date)" />
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/timeline/web_ui.py", line 230, in dateinfo
    pretty_timedelta(date),
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/util/datefmt.py", line 71, in pretty_timedelta
    time1 = to_datetime(time1)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/util/datefmt.py", line 51, in to_datetime
    type(t))
TypeError: expecting datetime, int, long, float, or None; got <class 'genshi.template.eval.Undefined'>

Attachments (0)

Change History (2)

comment:1 by Emmanuel Blot, 16 years ago

Resolution: invalid
Status: newclosed

It looks like the culprit is "timingandestimationplugin".

  • If you can reproduce the error once this plugin is disabled, feel free to re-open this ticket.
  • If you can't, please report the issue to the plugin maintainer

comment:2 by anonymous, 14 years ago

You might have to give the user the persmission ESTIMATES_VIEW

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.