Felix Schwarz wrote:
> Hi,
>
> I'm confused by the WikiMacro API:
>
> - The wiki docs [1] demonstrate the usage of expand_macro.
> - The IMacroProvider source code [2] clearly states that 'render_macro'
>    is deprecated and 'expand_macro' is the new style.
> - However in WikiMacroBase [3] 'expand_macro' has a comment on top:
>    # -- TODO: remove in 0.12
>    ???
>
> I hope this comment is only related to the actual call to render_macro 
> as a fallback to be compatible with old plugins?
>   

Yes, the "remove" comment is about the compatibility code which is on 
the lines just below the comment:

    # -- TODO: remove in 0.12
     if hasattr(self, 'render_macro'):
         ....

Sorry for the confusion.

-- Christian

--~--~---------~--~----~------------~-------~--~----~
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