Opened 15 years ago
Last modified 12 years ago
#4402 closed defect
Feature doesn't show up — at Version 7
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 )
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.
Change History (8)
Changed 15 years ago by
Attachment: | Sample wiki page added |
---|
comment:1 Changed 15 years ago by
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 15 years ago by
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 15 years ago by
Cc: | nicolas.dumoulin@… added |
---|
comment:4 Changed 15 years ago by
So this is working for me now; I made 4 changes that may have had an effect:
- Upgrade from v0.11.1 (plus some patches) to v0.11.3
- Move from using
python setup.py bdist_rpm
topython setup.py bdist_egg
; it turns out bdist_rpm wasn't packaging thetracsectionedit/htdocs/js/tracsectionedit.js
file. - mkdir /var/www/.python-eggs; chmod www-data.www-data /var/www/.python-eggs
- 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 mytrac.ini
.
comment:5 Changed 14 years ago by
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
When using Trac 0.12, for me it was enough to remove the '>' symbol, so my diff is just:
-
htdocs/js/tracsectionedit.js
10 10 } 11 11 12 12 $(document).ready(function() { 13 $(" >:header", $("#content div.wikipage")).addEditlink("Edit this section");13 $(":header", $("#content div.wikipage")).addEditlink("Edit this section"); 14 14 }); 15 15 })(jQuery);
comment:7 Changed 13 years ago by
Description: | modified (diff) |
---|
Sample wiki page that I'm using to test the plugin.