Opened 17 years ago
Last modified 14 years ago
#6088 closed defect
<coderanger_> jg: The problem is we cache the results of the current query for speed, and that list now contains deleted tickets for you. — at Initial Version
Reported by: | anonymous | Owned by: | Matthew Good |
---|---|---|---|
Priority: | high | Milestone: | 0.11 |
Component: | report system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Oops… Trac detected an internal error:
TypeError: can't compare datetime.datetime to int
If you think this should work you can reproduce the problem, you should consider reporting this to the Trac team.
Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac, please try the mailing list instead of filing a ticket.
Trac | 0.11dev-r5992 | Python | 2.5.1 (r251:54863, May 2 2007, 16:27:44) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] | setuptools | 0.6c7 | SQLite | 3.3.13 | pysqlite | 2.3.2 | Genshi | 0.4.4 | ==== Python Traceback ==== Traceback (most recent call last): File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/web/main.py", line 381, in dispatch_request dispatcher.dispatch(req) File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/web/main.py", line 191, in dispatch resp = chosen_handler.process_request(req) File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 638, in process_request return self.display_html(context, query) File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 720, in display_html data = query.template_data(context, tickets, orig_list, orig_time) File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 506, in template_data if ticket['time'] > orig_time: TypeError: can't compare datetime.datetime to int a new ticket at the Trac project site, where you can describe the problem and explain how to reproduce it.
|
Python Traceback Most recent call last:
- File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/web/main.py", line 381, in dispatch_request
Code fragment:
- if not env and env_error:
- raise HTTPInternalError(env_error)
- try:
- try:
- dispatcher = RequestDispatcher(env)
- dispatcher.dispatch(req)
- except RequestDone:
- pass
- return req._response or []
- finally:
- if not run_once:
- File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/web/main.py", line 191, in dispatch
Code fragment:
- 'Do you have cookies enabled?')
- # Process the request and render the template
- try:
- try:
- resp = chosen_handler.process_request(req)
- if resp:
- if len(resp) == 2: # Clearsilver
- chrome.populate_hdf(req)
- template, content_type = \
- self._post_process_request(req, *resp)
- File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 638, in process_request
Code fragment:
- format = req.args.get('format')
- if format:
- Mimeview(self.env).send_converted(req, 'trac.ticket.Query', query,
- format, 'query')
- return self.display_html(context, query)
- # Internal methods
- def _get_constraints(self, req):
- constraints = {}
- File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 720, in display_html
Code fragment:
- except TracError, e:
- data = {'id': rest_id, 'time': 0, 'changetime': 0,
- 'summary': tag.em(e)}
- tickets.insert(orig_list.index(rest_id), data)
- data = query.template_data(context, tickets, orig_list, orig_time)
- # For clients without JavaScript, we add a new constraint here if
- # requested
- constraints = dataconstraints
- if 'add' in req.args:
- File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 506, in template_data
Code fragment:
- groupsequence = []
- for ticket in tickets:
- if orig_list:
- # Mark tickets added or changed since the query was first
- # executed
- if tickettime > orig_time:
- ticketadded = True
- elif ticketchangetime > orig_time:
- ticketchanged = True
- if self.group:
- group_key = ticket[self.group]
File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/web/main.py", line 381, in dispatch_request
dispatcher.dispatch(req)
File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/web/main.py", line 191, in dispatch
resp = chosen_handler.process_request(req)
File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 638, in process_request
return self.display_html(context, query)
File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 720, in display_html
data = query.template_data(context, tickets, orig_list, orig_time)
File "/home/coderanger/local-trac-0.11/lib/python2.5/Trac-0.11dev_r5992-py2.5.egg/trac/ticket/query.py", line 506, in template_data
if tickettime > orig_time:
System Information:
User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty) Trac: 0.11dev-r5992 Python: 2.5.1 (r251:54863, May 2 2007, 16:27:44) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] setuptools: 0.6c7 SQLite: 3.3.13 pysqlite: 2.3.2 Genshi: 0.4.4 jQuery: 1.1.3.1
TracGuide — The Trac User and Administration Guide Trac Powered
Powered by Trac 0.11dev-r5992