Modify

Opened 23 months ago

Last modified 4 weeks ago

#13732 accepted enhancement

Enable TimingAndEstimationPlugin on Trac 1.4 - actually not a question

Reported by: a.gm@… Owned by: Ryan J Ollos
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords: patch
Cc: Trac Release: 1.4

Description

I have tried to install almost all of the plugins for time tracking... but I am only interested on TimingAnEstimationPlugin, so i would like to make it run. Luckily I could.

Latest updates on trac-hacks seem this plugin not to be maintaned so far.

I could make it run too simple, as I am not fluent on Python.

Errors if you follow current installation steps:

  • Trac[loader] ERROR: Skipping "timingandestimationplugin = timingandestimationplugin": ImportError: No module named genshi.core
  • OperationalError: table wiki has no column named ipnr

Steps to have it running (for as an ignorant as me):

First error can be fixed installing genshi

  • >pip install genshi

Second error can be fixed modifying lines 196 and 197 of ./timingandestimationplugin/api.py

  • 196 remove 'ipnr,'
  • 197 remove '127.0.0.1,'
  1. install genshi pip install genshi
  2. download Zipped source for plugin for Trac 1.0 (it is the same link as on plugin's wiki)
  3. unzip on a folder an move to that folder
  4. Modify ./timingandestimationplugin/api.py
  5. build the source python setup.py build
  6. install the source python setup.py install
  7. upgrade track trac-admin YOUR_TRAC_PROJECT upgrade
  8. upgrade wiki trac-admin YOUR_TRAC_PROJECT wiki upgrade

Please, note that this is a quick&dirty turnaround, not THE solution.

Attachments (1)

timingandestimationplugin_branch10_patch_for_trac_142.patch (13.6 KB) - added by anonymous 16 months ago.
Patch for timingandestimationplugin (branch for trac 1.0) to fix runtime problems, plus remove filter_stream() and move filter operation to JavaScript, plus port billing template to Jinja. Seems to work; YMMV.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 23 months ago by a.gm@…

Oops, all reports related to TimingAndEstimationPlugin fail. This may be fixed modifying ./timingandestimationplugin/reports.py all rows containing description AS _description_ need to prepend t. so update rows:

  • 171
  • 259
  • 345
  • 432
  • 519
  • 605

to be seen as:

t.description AS _description_,                    -- ## Uses a full row

And again, please, note that this is a quick&dirty turnaround, not THE solution.

Last edited 10 months ago by Ryan J Ollos (previous) (diff)

Changed 16 months ago by anonymous

Patch for timingandestimationplugin (branch for trac 1.0) to fix runtime problems, plus remove filter_stream() and move filter operation to JavaScript, plus port billing template to Jinja. Seems to work; YMMV.

comment:2 Changed 16 months ago by Ryan J Ollos

Keywords: patch added

comment:3 Changed 10 months ago by anonymous

api.py needs quotes around the mysql 8.0.3 reserved word system in requests: `system`

comment:4 in reply to:  3 Changed 10 months ago by Ryan J Ollos

Replying to anonymous:

api.py needs quotes around the mysql 8.0.3 reserved word system in requests: `system`

If that's the case, for cross-db compatibility we can use db.quote('system'). Example: browser:tags/trac-1.4.2/trac/db/api.py@:432#L421.

comment:5 Changed 7 months ago by Cinc-th

@Russ Tyndall

If you are ok with it, I'll apply the attached patch and modify the plugin to work with recent Trac releases.

comment:6 Changed 5 weeks ago by anonymous

Hi Cinc-th, I for one would really appreciate if you apply the patch and help this plugin to work with recent Trac releases... esp py3 if possible.

Thanks for all your hard work on Trac and various plugins. It is appreciated!

Also, I suspect your @Russ Tyndall has to be @bobbysmith007 ?

Cheers!

comment:7 in reply to:  5 Changed 4 weeks ago by Ryan J Ollos

Replying to Cinc-th:

@Russ Tyndall

If you are ok with it, I'll apply the attached patch and modify the plugin to work with recent Trac releases.

If there is no reply from the plugin owner saying the plugin is still being maintained, we should go ahead and apply the patch. I'll wait a few more days to be sure.

comment:8 Changed 4 weeks ago by Ryan J Ollos

Owner: changed from Russ Tyndall to Ryan J Ollos
Status: newaccepted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as accepted The owner will remain Ryan J Ollos.

Add Comment


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

 
Note: See TracTickets for help on using tickets.