Edgewall Software
Modify

Opened 18 years ago

Closed 17 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 ThurnerRupert, 18 years ago

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.

comment:2 by Christian Boos, 17 years ago

Milestone: 0.11.1
Resolution: duplicate
Status: newclosed

Should be fixed by r5754. Duplicate of #4547.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good 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.