Ticket #5932 (new defect)
TypeError: expecting datetime, int, long, float, or None; got <class 'genshi.template.eval.Undefined'>
| Reported by: | eblot | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11-retriage |
| Component: | version control/log view | Version: | devel |
| Severity: | normal | Keywords: | genshi |
| Cc: |
Description
How to Reproduce
While doing a GET operation on /log/vendor, Trac issued an internal error.
From the "browser" view, I selected the "Revision Log" link.
The issue only shows up from the /vendor tree, the revision log works fine on other SVN trees (/trunk, /branches, etc.)
The CLI SVN client does not show anything weird about this branch: 12 revisions, some with many (1000+) short files.
Request parameters:
{'path': u'/vendor', 'rev': u'12'}
System Information
| Trac | 0.11dev-r5971 |
| Python | 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] |
| setuptools | 0.6c6 |
| SQLite | 3.3.4 |
| pysqlite | 2.3.2 |
| Genshi | 0.4.4 |
| Pygments | 0.8.1 |
| Subversion | 1.4.4 (r25188) |
Python Traceback
This is the first time I report an issue with the semi-automated bug report feature, but it seems there is an additional issue here:
This is the traceback sent through the GET request on trac.edgewall.org when the ticket is created:
Traceback (most recent call last):
File "c:/Programs/Python/local/trac\trac\web\main.py", line 381, in dispatch_request
dispatcher.dispatch(req)
File "c:/Programs/Python/local/trac\trac\web\main.py", line 213, in dispatch
data, content_type)
File "c:/Programs/Python/local/trac\trac\web\chrome.py", line 601, in render_template
return stream.render(method, doctype=doctype)
File "build/bdist.macosx-10.3-fat/egg/genshi/core.py", line 154, in render
return encode(generator, method=method, encoding=encoding)
File "build/bdis
(yes, it is truncated)
This is the traceback I actually got in the web browser:
File "c:/Programs/Python/local/trac\trac\versioncontrol\templates\revisionlog.html", line 148, in <Expression u'dateinfo(change.date)'> <td class="date" py:content="dateinfo(change.date)" /> File "C:\Programs\Python\local\trac\trac\timeline\web_ui.py", line 218, in dateinfo pretty_timedelta(date), File "C:\Programs\Python\local\trac\trac\util\datefmt.py", line 70, in pretty_timedelta time1 = to_datetime(time1) File "C:\Programs\Python\local\trac\trac\util\datefmt.py", line 50, in to_datetime type(t))


