Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#6990 closed defect (duplicate)

comparing datetime to int in ticket/query.py

Reported by: intgr@… Owned by: Jeroen Ruigrok van der Werven
Priority: normal Milestone:
Component: report system Version: 0.11b1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Sorry about the bad paste.

TypeError: can't compare datetime.datetime to int
 
Python Traceback
Most recent call last:
 
 File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 398, in _dispatch_request
 File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 195, in dispatch
 File "/usr/lib/python2.4/site-packages/trac/ticket/query.py", line 655, in process_request
 File "/usr/lib/python2.4/site-packages/trac/ticket/query.py", line 737, in display_html
 File "/usr/lib/python2.4/site-packages/trac/ticket/query.py", line 521, in template_data
Code fragment:
 
516. groupsequence = []
517. for ticket in tickets:
518. if orig_list:
519. # Mark tickets added or changed since the query was first
520. # executed
521. if ticket['time'] > orig_time:
522. ticket['added'] = True
523. elif ticket['changetime'] > orig_time:
524. ticket['changed'] = True
525. if self.group:
526. group_key = ticket[self.group]
 
Local variables:
Name	Value
orig_time 	datetime.datetime(2008, 3, 11, 9, 37, 33, tzinfo=<FixedOffset "UTC" ...
ticket 	{'changetime': 0, 'summary': <Element "em">, 'id': 68, 'time': 0}

Attachments (0)

Change History (5)

comment:1 by Jeroen Ruigrok van der Werven, 17 years ago

Owner: changed from Matthew Good to Jeroen Ruigrok van der Werven
Status: newassigned

Does this still happen with 0.11b2?

comment:2 by Christian Boos, 17 years ago

Milestone: 0.11
Resolution: duplicate
Status: assignedclosed

Duplicate of #6088, which has a patch.

in reply to:  1 ; comment:3 by Ryan Ollos <ryano@…>, 15 years ago

Replying to jruigrok:

Does this still happen with 0.11b2?

I'm seeing this error with 0.11.4 when using Search.

in reply to:  3 ; comment:4 by Christian Boos, 15 years ago

Replying to Ryan Ollos <ryano@…>:

I'm seeing this error with 0.11.4 when using Search.

Well, certainly not the same traceback then, as here we have an error in trac/ticket/query.py. Could you provide us with the traceback involving trac/search (and then reopen)?

in reply to:  4 comment:5 by Ryan Ollos <ryano@…>, 15 years ago

Replying to cboos:

Well, certainly not the same traceback then, as here we have an error in trac/ticket/query.py. Could you provide us with the traceback involving trac/search (and then reopen)?

I didn't seem to get a notification for this, otherwise I would have replied earlier. Turns out my issue was due to the Doxygen plugin, and there was a patch available. See TH issue #3079. But yes, my error message was a bit different and I should have been more careful before reporting in this thread.

Modify Ticket

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