Opened 3 years ago

#10132 new defect

Implementation with TracHoursPlugin

Reported by: V.Cejka@… Owned by: coling
Priority: normal Component: WorkLogPlugin
Severity: normal Keywords: TracHoursPlugin
Cc: Trac Release: 0.12


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 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)
        trachours.add_ticket_hours(active['ticket'], self.authname, delta * 60)
    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!

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

as new The owner will remain coling.

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

Note: See TracTickets for help on using tickets.