|
NOTE: Since 02/09//2009, revision 6472, the patch has been integrated into WorkLogPlugin, so just go get the latest source.
Pre 6472 patch method:
I Use Trac to keep track of my development projects and recently I added two plugins:
WorkLogPlugin and TracHoursPlugin
They both worked great, and allowed me to record and track time spent on tickets. The only issue I had was that WorkLogPlugin did not automatically record the times into TracHoursPlugin.
I thus created a patch that will do that. It was really real simple. TracHoursPlugin monitors the ticket comments, to trap and pick up any timings added via svn commit messages. All I did was have WorkLogPlugin inject the appropriate message into the ticket.
To install:
Download the latest source for WorkLogPlugin from their site. (at the time of creating this patch, it was on revision 6150) Unpack it to your local drive.
unzip worklogplugin-r6150.zip
Get the patch diff : worklog_trachours.diff
Patch the source from the diff.
cd ./worklogplugin/0.11/worklog/ sudo cp ./manager.py ./manager.py_bak sudo patch <../../../worklog_trachours.diff
Now you can build and install the patched version into trac using the normal trac plugin install mehod.
Once installed you need to activate the new feature by adjusting the trac.ini file.
[worklog] trachoursplugin = true
If the plugin is working, you will see a new comment added to the ticket when you stop theworklog:
Hours recorded automatically by the worklog plugin. (spent xxm)
|