Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3442 closed defect (fixed)

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

Reported by: erik@… Owned by: eblot
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@… 6 years ago.
The modified enhancer.py file

Download all attachments as: .zip

Change History (8)

Changed 6 years ago by erik@…

The modified enhancer.py file

comment:1 Changed 6 years ago by mikon

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 follow-up: Changed 6 years ago by eblot

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

comment:3 Changed 6 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 ; follow-up: Changed 6 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 6 years ago by eblot

Replying to anonymous:

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

From SVN ;-) See ticket:3985:5

comment:6 Changed 6 years ago by eblot

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:7 Changed 6 years ago by eblot

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.