On 27.08.2014 21:51, Steffen Hoffmann wrote:
Unluckily that one is modular, but not exposed for re-use by plugins, so we would need to copy it.

Actually it is a bit exposed now, since it is reused in TitleIndexMacro [1]. (At least the requested, and IMO most useful part.)

I think it would be something like this:

if page_name and formatter.resource and formatter.resource.realm == 'wiki': page_name = formatter.wiki.resolve_relative_name(page_name, formatter.resource.id)

Added just before retrieving the WikiPage [2].

[1] http://trac.edgewall.org/ticket/11455
[2] http://trac-hacks.org/browser/includemacro/trunk/includemacro/macros.py#L84

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to