Modify

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#604 closed enhancement (wontfix)

Allowing to hide navigation bar button for pydoc

Reported by: nextime Owned by: Alec Thomas
Priority: lowest Component: PyDocPlugin
Severity: trivial Keywords:
Cc: Trac Release: 0.9

Description

Disabling tracpydoc.tracpydoc.pydoc will disable the navigation button for pydoc, that isn't event wanted if your pydoc need are only to documentate some modules on wiki. Anyway, this way don't work great, cause if you call pydoc macro from the wiki, when you watch the page with this macro the PyDoc class is loades, and when you change page in the trac navigation bar, the PyDoc button appears.

So, attached there is a little and ugly patch that add a "button = [yes|no]" configuration option in [pydoc] section of trac.ini to permit to totally disabling of the navigation bar "pydoc" button, even if all tracpydoc modules are loaded.

Attachments (1)

tracpydoc.py.patch (896 bytes) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by anonymous

Attachment: tracpydoc.py.patch added

comment:1 Changed 11 years ago by Alec Thomas

Resolution: wontfix
Status: newclosed

A config item for disabling a nav item is overkill IMO. If you want to restrict what modules are visible, just use the PyDocPlugin include config option.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.