Modify

Opened 16 years ago

Closed 13 years ago

#4402 closed defect (worksforme)

Feature doesn't show up

Reported by: Iker Owned by: Catalin BALAN
Priority: normal Component: SectionEditPlugin
Severity: normal Keywords: installation
Cc: dclark@…, nicolas.dumoulin@… Trac Release: 0.11

Description (last modified by Ryan J Ollos)

I'm running Trac version 0.11.2.1 and I'm trying to install this plugin. I've installed it doing:

sudo easy_install http://trac-hacks.org/svn/sectioneditplugin/0.11/
Downloading http://trac-hacks.org/svn/sectioneditplugin/0.11/
Doing subversion checkout from http://trac-hacks.org/svn/sectioneditplugin/0.11/ to /tmp/easy_install-jugsNz/0.11
Processing 0.11
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-jugsNz/0.11/egg-dist-tmp-5xK6lM
zip_safe flag not set; analyzing archive contents...
TracSectionEditPlugin 0.1 is already the active version in easy-install.pth

Installed /usr/lib/python2.5/site-packages/TracSectionEditPlugin-0.1-py2.5.egg
Processing dependencies for TracSectionEditPlugin==0.1
Finished processing dependencies for TracSectionEditPlugin==0.1

Then restarted apache and logged in as a user with TRAC_ADMIN and WIKI_MODIFY permissions.

I cannot see the Edit button when I mouse over a title.

Attachments (1)

Sample wiki page (130 bytes) - added by Iker 16 years ago.
Sample wiki page that I'm using to test the plugin.

Download all attachments as: .zip

Change History (9)

Changed 16 years ago by Iker

Attachment: Sample wiki page added

Sample wiki page that I'm using to test the plugin.

comment:1 Changed 16 years ago by dclark

Cc: dclark@… added; anonymous removed

Same here. Installed from svn r5301 using:

# (remove all the .svn directories as they seem to flummox setup.py)
python setup.py bdist_rpm
cd dist
alien --to-deb TracSectionEditPlugin-0.1-1.noarch.rpm
dpkg -i tracsectioneditplugin_0.1-2_all.deb

In trac.ini, added this in [components] section:

tracsectionedit.* = enabled

And then restarted trac. On restart no evidence the plugin is doing anything.

comment:2 Changed 16 years ago by anonymous

I added

[section-edit] serve_ui_files = true

in trac.ini

So now I get the [edit] when I mouse-over a top-level heading; however, it still does not work with lower level headings. Interestingly if I edit the section, it does correctly open just the one section. Is there some special configuration setting to enable lower level sections?

comment:3 Changed 16 years ago by anonymous

Cc: nicolas.dumoulin@… added

comment:4 Changed 16 years ago by dclark

So this is working for me now; I made 4 changes that may have had an effect:

  1. Upgrade from v0.11.1 (plus some patches) to v0.11.3
  2. Move from using python setup.py bdist_rpm to python setup.py bdist_egg; it turns out bdist_rpm wasn't packaging the tracsectionedit/htdocs/js/tracsectionedit.js file.
  3. mkdir /var/www/.python-eggs; chmod www-data.www-data /var/www/.python-eggs
  4. Used the tracadmin UI to enable the plugin, which put tracsectionedit.web_ui.* = enabled under [[components]]. With this, I did not need to have a [section-edit] section in my trac.ini.

comment:5 Changed 14 years ago by anonymous

The edit link didn't show up on my Trac 0.12 To fix this, easy_install with -Z and then edit the javascript file inside the egg directory, change

$(">:header", $("#content div.wikipage")).addEditlink("Edit this section");

to

$("#content").find("h1,h2,h3,h4,h5,h6").addEditlink("Edit this section");

comment:6 Changed 14 years ago by anonymous

When using Trac 0.12, for me it was enough to remove the '>' symbol, so my diff is just:

  • htdocs/js/tracsectionedit.js

     
    1010    }
    1111   
    1212    $(document).ready(function() {
    13          $(">:header", $("#content div.wikipage")).addEditlink("Edit this section");
     13         $(":header", $("#content div.wikipage")).addEditlink("Edit this section");
    1414    });
    1515})(jQuery);

comment:7 Changed 14 years ago by Ryan J Ollos

Description: modified (diff)

comment:8 in reply to:  5 Changed 13 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Replying to anonymous:

The edit link didn't show up on my Trac 0.12 To fix this, easy_install with -Z and then edit the javascript file inside the egg directory, ...

It is working fine for me with 0.12 and the suggested change breaks it for me.

This ticket is very old and the 0.11 and 0.12 versions seems to be working fine, so I'm going to close this.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Catalin BALAN.
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.