On Mon, Jan 22, 2007 at 04:09:10AM -0800, mb wrote:
> 
> Hi,
> 
> following a problem I had with rendering diffs between wiki pages, I
> upgraded to r4612.
> 
> BUT: Now all installed Macros do not work anymore, as they are not
> found Error:
>        Error: Failed to load processor HelloWorld
>        No macro or processor named 'HelloWorld' found
> 
> They are installed in [project_env]/wiki-macros.
> 
> They worked until r4450.
> 
> I found out, that the macros have now to be redesigned and placed into
> the plugin folder.
> I tried that with the WikiInclude Macro. But I didn't get it to work,
> since there was no easy
> way to map the parameters of the execute and render_macro methods.
> 
> Has anybody a quick fix or
> a pointer to where I can get a "mapping" between the old and the
> parameters or
> is there a way to make the old macros work?

As you've noticed, macros must now be implemented as plugins.

Check out trac/wiki/macros.py. TitleIndexMacro is a good example.

Your "macro" plugin can use WikiMacroBase as a foundation.

-- 
Evolution: Taking care of those too stupid to take care of themselves.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to