Edgewall Software

Ticket #6589 (closed enhancement: wontfix)

Opened 11 months ago

Last modified 5 weeks ago

[PATCH] to disable highlighting of all missing links

Reported by: shansen@… Owned by: cboos
Priority: normal Milestone:
Component: wiki system Version: 0.11b1
Severity: major Keywords: patch
Cc: shansen@…

Description

This has nothing to do with the ignore_missing_links option :)

In my situation, it's undesirable for missing links to be highlighted, as they are not always missing. A IRequestFilter plugin we are using in our internal/corporate trac will do things like convert spaces to underscores, look for plural/not plural versions of pages, and redirect as appropriate. In these cases we'd prefer the original link to just look like any other link.

The attached simple patch adds a 'highlight_missing_pages' option to wiki/api.py:WikiSystem that defaults to True. When set to False, all pages look like normal links, even if a page doesn't actually exist. We'd much prefer a situation where "doesn't exist" was determined when one gets to the page.

Attachments

highlight_missing_pages.patch (1.1 KB) - added by shansen@… 11 months ago.

Change History

Changed 11 months ago by shansen@…

Changed 11 months ago by shansen@…

  • keywords patch added
  • version set to 0.11b1
  • severity changed from normal to major

(... as I now read the NewTicketGuidelines and attempt to comply)

Changed 11 months ago by anonymous

  • cc shansen@… added

Changed 5 months ago by Piotr Kuczynski <piotr.kuczynski@…>

  • summary changed from Patch to disable highlighting of all missing links to [PATCH] to disable highlighting of all missing links

Changed 5 weeks ago by rblank

  • status changed from new to closed
  • resolution set to wontfix

As this only seems to be useful to a specific plugin, I suggest this be implemented as part of the plugin, possibly through monkey-patching WikiSystem._format_link().

Add/Change #6589 ([PATCH] to disable highlighting of all missing links)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.