Edgewall Software

Changes between Version 11 and Version 12 of TracDev/ApiChanges/0.11


Ignore:
Timestamp:
Jan 25, 2007, 4:06:53 PM (17 years ago)
Author:
Christian Boos
Comment:

added note about r4621

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ApiChanges/0.11

    v11 v12  
    2626=== `IWikiMacroProvider` ^[source:trunk/trac/wiki/api.py@head#L73 (0.11)] [source:tags/trac-0.10/trac/wiki/api.py@head#L70 (0.10)]^ === #IWikiMacroProvider
    2727
    28 `render_macro(req, name, content)` is now `render_macro(formatter, name, content)`.
     28 - `render_macro(req, name, content)` has been deprecated (see r4621)
     29
     30 - `expand_macro(formatter, name, content)` has been added and supersedes `render_macro`.
    2931
    3032The `req` was not enough for most of the macros, which needed to resort to various hacks to get more information about the formatting at work. The more adequate `formatter` object is now provided instead. The `req` object can still be obtained from the formatter, with `formatter.req`. Better yet, the formatter now always know about the WikiContext in which it operates (use `formatter.context` to retrieve it).
    3133The context object provides the information about the Trac resource which "owns" the text being processed.
    3234
     35`render_macro(req, name, content)` will removed in [milestone:0.12].
    3336
    3437=== `IHTMLPreviewRenderer` ^[source:trunk/trac/wiki/api.py@head#L213 (0.11)] [source:tags/trac-0.10/trac/wiki/api.py@head#L209 (0.10)]^ === #IHTMLPreviewRenderer