Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3442 closed defect (fixed)

SimpleEnhancer does not work, changes required in enhancer.py (attached)

Reported by: erik@… Owned by: Emmanuel Blot
Priority: normal Component: RevtreePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I followed the installation instructions, but got an error message saying that the global variable enhancer could not be found. Fixing this (removed the return statement) yield an error about widget. I then replaced widget by _widget at all places.

The following changes are required in 0.11/revtree/enhancer.py

  1. remove "return enhancer" from init
  1. replace "widget" by "_widget"

Attachments (1)

enhancer.py (3.7 KB) - added by erik@… 9 years ago.
The modified enhancer.py file

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by erik@…

Attachment: enhancer.py added

The modified enhancer.py file

comment:1 Changed 9 years ago by Mikolaj Konarski

I didn't follow installation instruction, because I did

sudo easy_install http://trac-hacks.org/svn/revtreeplugin/0.11

However, I got the same error message with 0.11 on Ubuntu (other plugins work OK).

comment:2 Changed 9 years ago by Emmanuel Blot

Current versions (0.6.x) are in development for now, please use a previous release (0.5.x)

comment:3 Changed 9 years ago by petram@…

I've used the attached enhancer.py but still getting the same error "enhancer not defined". I've rebuilt the egg, remove old egg, reinstalled new one, restarted the server, enabled the plug in. Any help is appreciated.

comment:4 in reply to:  2 ; Changed 9 years ago by anonymous

Replying to eblot:

Current versions (0.6.x) are in development for now, please use a previous release (0.5.x)

Pls, where can we get version 0.5.x?

The zip has the same content of svn rep, an old 0.4 version for trac 0.10 and the broken 0.6 version for trac 0.11.

comment:5 in reply to:  4 Changed 9 years ago by Emmanuel Blot

Replying to anonymous:

Replying to eblot: Pls, where can we get version 0.5.x?

From SVN ;-) See ticket:3985:5

comment:6 Changed 9 years ago by Emmanuel Blot

Resolution: fixed
Status: newclosed

(In [4695]) Fixes #3442. Thanks to erik for the patch

comment:7 Changed 9 years ago by Emmanuel Blot

Additional note for petram: SimpleEnhancer now works with 0.6.x release of the plugin. Let me know if you still have issues

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.