-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27.08.2014 22:22, Peter Suter wrote: > 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].
Right, I saw that. While this is a good thing for the future, it is a) not too hard to include the full support and b) not backwards-compatible. AFAIK current IncludeMacro still aims at 0.11 compatibility. I've proposed a solution for the corresponding, rather old ticket [3], saving a conditional import of the aforementioned method for . Steffen Hoffmann [3] http://trac-hacks.org/ticket/3591 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlP+hCMACgkQ31DJeiZFuHd9KgCeOkY+fY2uFqAjy+6HqdjeFQTR LgYAoLi8o9QQfO7/f+SejMy3HTurC4Fl =jsJg -----END PGP SIGNATURE----- -- 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.
