Modify

Opened 6 years ago

Closed 3 years ago

#4402 closed defect (worksforme)

Feature doesn't show up

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

Description (last modified by rjollos)

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 6 years ago.
Sample wiki page that I'm using to test the plugin.

Download all attachments as: .zip

Change History (9)

Changed 6 years ago by iker

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

comment:1 Changed 6 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 6 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 6 years ago by anonymous

  • Cc nicolas.dumoulin@… added

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

  • Description modified (diff)

comment:8 in reply to: ↑ 5 Changed 3 years ago by rjollos

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

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.

Add Comment

Modify Ticket

Action
as closed The owner will remain cbalan.
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.