Notification error using 0.11-dev and xmlrpc trunk
|Reported by:||mayer@…||Owned by:||osimons|
using Trac 0.11-dev (r6280) and the xmlrpc plugin (trunk) notifications cannot be send after changes to a ticket are comittet (using mylyn in my case). The traceback in the logfile is provided below and its coming down to a wrong format of the "now" time which is passed on to the TracNotifier.
Notifications when changing a ticket through the webinterface work perfectly.
2007-12-05 03:06:29,257 Trac[__init__] ERROR: Failure sending notification on change of ticket #26: unsupported operand type(s) for -: 'float' and 'datetime.datetime' Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/TracXMLRPC-1.0.0-py2.4.egg/tracrpc/ticket.py", line 109, in update tn.notify(t, newticket=False, modtime=now) File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6280-py2.4.egg/trac/ticket/notification.py", line 81, in notify for change in TicketModule(self.env).grouped_changelog_entries( File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6280-py2.4.egg/trac/ticket/web_ui.py", line 1253, in grouped_changelog_entries changelog = ticket.get_changelog(when=when, db=db) File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6280-py2.4.egg/trac/ticket/model.py", line 286, in get_changelog when_ts = when and to_timestamp(when) or 0 File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6280-py2.4.egg/trac/util/datefmt.py", line 55, in to_timestamp diff = dt - _epoc TypeError: unsupported operand type(s) for -: 'float' and 'datetime.datetime'
Change History (13)
comment:11 Changed 5 years ago by anonymous
- Resolution fixed deleted
- Status changed from closed to reopened
comment:12 Changed 4 years ago by thijs
- Cc thijs added
- Owner changed from athomas to osimons
- Status changed from reopened to new