#2830: sort by component oopses
----------------------------------------------------+-----------------------
 Reporter:  Andres Salomon <[EMAIL PROTECTED]>  |       Owner:  jonas
     Type:  defect                                  |      Status:  new  
 Priority:  normal                                  |   Milestone:  0.10 
Component:  general                                 |     Version:  devel
 Severity:  normal                                  |    Keywords:       
----------------------------------------------------+-----------------------
 Hi,

 When sorting by component, I managed to trigger the following traceback:
 {{{

 Python traceback

 Traceback (most recent call last):
   File "/usr/local/lib/python2.3/site-
 packages/trac/web/modpython_frontend.py", line 206, in handler
     dispatch_request(mpr.path_info, mpr, env)
   File "/usr/local/lib/python2.3/site-packages/trac/web/main.py", line
 142, in dispatch_request
     dispatcher.dispatch(req)
   File "/usr/local/lib/python2.3/site-packages/trac/web/main.py", line
 110, in dispatch
     resp = chosen_handler.process_request(req)
   File "/usr/local/lib/python2.3/site-packages/trac/ticket/report.py",
 line 116, in process_request
     resp = self._render_view(req, db, id)
   File "/usr/local/lib/python2.3/site-packages/trac/ticket/report.py",
 line 317, in _render_view
     rows.sort(sorter.sort)
 AttributeError: 'tuple' object has no attribute 'sort'

 }}}

 The fix is pretty trivial; it is expected that execute_report() is
 returning lists, not tuples.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2830>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to