Ticket #10628 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

api.py missing import of datetime causes trac-admin upgrade to fail

Reported by: Bobby Assigned to: coling
Priority: normal Component: WorkLogPlugin
Severity: normal Keywords:
Cc: rjollos Trac Release: 1.0

Description

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 api.py. Adding to api.py

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

Change History

11/16/12 01:53:46 changed by rjollos

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #10628 (api.py missing import of datetime causes trac-admin upgrade to fail)




Change Properties
Action