Modify

Opened 10 years ago

Closed 6 years ago

#11889 closed defect (wontfix)

AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'

Reported by: Jared Owned by: matobaa
Priority: high Component: ContextChromePlugin
Severity: major Keywords:
Cc: Trac Release: 1.0

Description

Error

Trac detected an internal error:
AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'

Trace

File "/srv/trac/py26env/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 132, in __or__
  return Stream(_ensure(function(self)), serializer=self.serializer)
File "/usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg/trac/web/chrome.py", line 1147, in inner
  data)
File "build/bdist.linux-x86_64/egg/decayed/wiki.py", line 45, in filter_stream
  delta = (datetime.datetime.now(page.time and page.time.tzinfo or None) - page.time).total_seconds()

System Informatio:

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36

Trac	1.0
Trac	1.0
Babel	0.9.6
Genshi	0.6 (without speedups)
mod_wsgi	3.2 (WSGIProcessGroup trac-dev WSGIApplicationGroup trac-dev.agraquest.int|)
pysqlite	2.4.1
Python	2.6.6 (r266:84292, Apr 11 2011, 15:50:32) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)]
Python	2.6.6 (r266:84292, Apr 11 2011, 15:50:32) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)]
pytz	2010h
pytz	2010h
setuptools	0.6c11
setuptools	0.6c11
SQLite	3.6.20
Subversion	1.6.15 (r1038135)
jQuery	1.7.2

Enabled Plugins

AutocompleteUsers	0.4.2dev	/srv/trac/trac/plugins/AutocompleteUsers-0.4.2dev-py2.6.egg
BlackMagicTicketTweaks	0.12r1	/usr/lib/python2.6/site-packages/BlackMagicTicketTweaks-0.12r1-py2.6.egg
BreadCrumbsNav	0.2	/srv/trac/trac/plugins/BreadCrumbsNav-0.2-py2.6.egg
ComponentDependencyPlugin	0.1	/srv/trac/trac/plugins/ComponentDependencyPlugin-0.1-py2.6.egg
ContextChrome	0.3	/srv/trac/trac/plugins/ContextChrome-0.3-py2.6.egg
ReadonlySignedTickets	N/A	/srv/trac/trac/plugins/ReadonlySignedTickets.pyc
TicketSidebarProvider	0.0	/srv/trac/trac/plugins/TicketSidebarProvider-0.0-py2.6.egg
TicketValidator	0.2dev	/srv/trac/trac/plugins/TicketValidator-0.2dev-py2.6.egg
TracAccountManager	0.4.3	/srv/trac/trac/plugins/TracAccountManager-0.4.3-py2.6.egg
TracAnnouncer	1.0dev	/srv/trac/trac/plugins/TracAnnouncer-1.0dev-py2.6.egg
TracAttachmentNotifyPlugin	1.0.1	/srv/trac/trac/plugins/TracAttachmentNotifyPlugin-1.0.1-py2.6.egg
TracCustomFieldAdmin	0.2.8-r12166	/srv/trac/trac/plugins/TracCustomFieldAdmin-0.2.8_r12166-py2.6.egg
TracDateField	2.0.0dev-r12118	/srv/trac/trac/plugins/TracDateField-2.0.0dev_r12118-py2.6.egg
TracDragDrop	0.12.0.11	/srv/trac/trac/plugins/TracDragDrop-0.12.0.11-py2.6.egg
TracHoursPlugin	0.6.0dev	/srv/trac/trac/plugins/TracHoursPlugin-0.6.0dev-py2.6.egg
TracHtmlNotificationPlugin	0.12.0.1	/srv/trac/trac/plugins/TracHtmlNotificationPlugin-0.12.0.1-py2.6.egg
TracReportManager	0.1	/srv/trac/trac/plugins/TracReportManager-0.1-py2.6.egg
TracSubTicketsPlugin	0.2.0.dev-20130908	/srv/trac/trac/plugins/TracSubTicketsPlugin-0.2.0.dev_20130908-py2.6.egg

Attachments (0)

Change History (4)

comment:1 Changed 10 years ago by Jared

In the context of modifying the look of a ticket based on resolution type. I installed this plugin, and now when I navigate to the home I receive this error.

https://groups.google.com/forum/#!topic/trac-users/1GNDHTObQKg

comment:2 in reply to:  description Changed 10 years ago by anonymous

comment:3 Changed 10 years ago by matobaa

thanks to use this plugin and I apologize a decayedWiki feature requires python 2.7 or later.

Please disable decayedWiki component until fix.

comment:4 Changed 6 years ago by matobaa

Resolution: wontfix
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain matobaa.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.