Edgewall Software

Changes between Version 2 and Version 3 of TracDev/PluginDevelopment


Ignore:
Timestamp:
May 21, 2005, 3:33:54 PM (19 years ago)
Author:
Christopher Lenz
Comment:

Document plugin member variables

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment

    v2 v3  
    5555
    5656Look at the API documentation for the extension point interfaces to see what you're expected to return.
     57
     58== Component member variables ==
     59
     60Every component that gets instantiated through the Trac environment gets three extra member variables for convenience:
     61
     62 * {{{env}}}: The environment, an instance of the {{{trac.env.Environment}}} class (see [source:/trunk/trac/env.py trac.env]).
     63 * {{{config}}}: The configuration, an instance of the {{{trac.config.Configuration}}} class (see [source:/trunk/trac/config.py trac.config]).
     64 * {{{log}}}: The configured logger, see the Python [http://docs.python.org/lib/module-logging.html logging API] for more information.
    5765
    5866== Deploying a custom plugin ==