Opened 6 years ago

Closed 6 years ago

#10628 closed defect (fixed) missing import of datetime causes trac-admin upgrade to fail

Reported by: Bobby Owned by: Colin Guthrie
Priority: normal Component: WorkLogPlugin
Severity: normal Keywords:
Cc: Ryan J Ollos Trac Release: 1.0


Running the upgrade with trac-admin after adding the plugin kept failing, and in trac.log it said the api portion of the plugin had undefined datetime. I noticed all .py of the plugin were importing datetime except Adding to

from datetime import datetime

made the upgrade work and now I can use the plugin. I'm not sure why no one else has reported this error, and I doubt there's anything unusual in how my system is configured.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

(In [12358]) Fixes #10628 : Added missing import of datetime in Thanks to Bobby for the patch.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Colin Guthrie.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.