Edgewall Software

Changes between Version 2 and Version 3 of TracDev/PluginDevelopment/ExtensionPoints/trac.versioncontrol.web_ui.browser.IPropertyRenderer


Ignore:
Timestamp:
Jan 22, 2012, 11:10:45 AM (12 years ago)
Author:
Peter Suter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment/ExtensionPoints/trac.versioncontrol.web_ui.browser.IPropertyRenderer

    v2 v3  
    1616Implementing the interface follows the standard guidelines found in [wiki:TracDev/ComponentArchitecture] and of course [wiki:TracDev/PluginDevelopment].
    1717
    18 A class implementing !IPropertyRenderer directly can advertise variable levels of support for rendering any property in `match_property`, by matching on property `name` or `mode`.
     18A class implementing !IPropertyRenderer can advertise variable levels of support for rendering any property in `match_property`, by matching on property `name` or `mode`.
    1919
    2020`name`: Different version control backends make different properties available, exposing metadata specific to that system. This is controlled by the [[trac.versioncontrol.api.IRepositoryConnector]] and its `Node` and `Changeset` subclasses.
     
    3131 - `Markup` or other Genshi content: the property will be displayed normally, using that content as a block-level markup
    3232
    33 For rendering properties on a new kind of page call the appropriate implementation via `trac.versioncontrol.web_ui.BrowserModule(env).render_property()` or `render_properties()`.
     33For rendering properties on a new kind of page call the appropriate implementation via `trac.versioncontrol.web_ui.browser.BrowserModule(env).render_property()` or `render_properties()`.
    3434Usually the properties to be rendered are obtained from the `get_properties()` methods of `trac.versioncontrol.api.Changeset` or `Node` subclasses.
    3535