Changes between Version 11 and Version 12 of TracDev/ApiChanges/0.11
- Timestamp:
- Jan 25, 2007, 4:06:53 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ApiChanges/0.11
v11 v12 26 26 === `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 27 27 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`. 29 31 30 32 The `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). 31 33 The context object provides the information about the Trac resource which "owns" the text being processed. 32 34 35 `render_macro(req, name, content)` will removed in [milestone:0.12]. 33 36 34 37 === `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