Opened 5 years ago

# Implementation with TracHoursPlugin

Reported by: Owned by: V.Cejka@… normal WorkLogPlugin normal TracHoursPlugin 0.12

### Description

Althrough TracHoursPlugin should be supported, tracked time was not stored to its database table. I'm not used to work in Python, so my patch is not done the best, however I fixed it for myself by slight modification of manager.py. In stop_work procedure there is section used to store time in TimingAndEstimationPlugin, I added code for TracHoursPlugin there also:

    if plugtne:
tckt['hours'] = hours
if plughrs:
trachours = TracHoursPlugin(self.env)
self.save_ticket(tckt, message)
message = ''


Of course, also

from trachours.hours import TracHoursPlugin


should be added, however this implies dependency on Plugin not installed by all users. Because I do not know Python, I do not know proper way of dealing with it.

Either way, thanks for the Plugin!

### comment:1 Changed 7 months ago by Ryan J Ollos

Owner: Colin Guthrie deleted

### Modify Ticket

Change Properties