Modify ↓
Opened 18 years ago
Closed 18 years ago
#5375 closed defect (duplicate)
type error with order by, python-2.3?
Reported by: | ThurnerRupert | Owned by: | Matthew Good |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | report system | Version: | 0.10.3 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
can it be that trac does not work with python-2.3 and $USER variable? we recently tried to use http://blastwave.org python and get
Traceback (most recent call last): File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/opt/csw/lib/python2.3/site-packages/trac/ticket/report.py", line 88, in process_request resp = self._render_view(req, db, id) File "/opt/csw/lib/python2.3/site-packages/trac/ticket/report.py", line 346, in _render_view value['date'] = format_date(cell) File "/opt/csw/lib/python2.3/site-packages/trac/util/datefmt.py", line 68, in format_date return format_datetime(t, format, gmt) File "/opt/csw/lib/python2.3/site-packages/trac/util/datefmt.py", line 58, in format_datetime t = time.localtime(float(t)) ValueError: invalid literal for float(): Rupert
the report query causing this is
SELECT summary, t.time AS created, reporter AS 'created by', changetime AS modified, description AS _description FROM ticket t ORDER by owner,created
with old instance, python-2.5, it used to work.
Attachments (0)
Change History (2)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Milestone: | 0.11.1 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
the above first sentence is incorrect. $user was the first guess, but when reducing the query it we noticed it had nothing to do with it.