Changes between Version 29 and Version 30 of TracPlugins
- Timestamp:
- Aug 28, 2006, 4:27:01 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracPlugins
v29 v30 2 2 [[TracGuideToc]] 3 3 4 Since version 0.9, Trac supports plugins that extend the built-in functionality. The plugin functionality is based on the [ wiki:TracDev/ComponentArchitecture component architecture].4 Since version 0.9, Trac supports plugins that extend the built-in functionality. The plugin functionality is based on the [http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture component architecture]. 5 5 6 6 == Requirements == … … 31 31 Note that the Python version that the egg is built with must 32 32 match the Python version with which Trac is run. If for 33 instance you are running Trac under `mod_python2.3`, but have33 instance you are running Trac under Python 2.3, but have 34 34 upgraded your standalone Python to 2.4, the eggs won't be 35 35 recognized. … … 39 39 ==== With an .egg file ==== 40 40 41 Some plugins (such as WebAdmin) are downloadable as a `.egg` file which can be installed with the `easy_install` program:41 Some plugins (such as [http://trac.edgewall.org/wiki/WebAdmin WebAdmin]) are downloadable as a `.egg` file which can be installed with the `easy_install` program: 42 42 {{{ 43 43 easy_install TracWebAdmin-0.1.1dev_r2765-py2.3.egg 44 44 }}} 45 45 46 If `easy_install` is not on your system see the Requirements section above to install it. Windows users will need to add "C:\Python23\Scripts"to their `PATH` environment variable (see [http://peak.telecommunity.com/DevCenter/EasyInstall#windows-notes easy_install Windows notes] for more information).46 If `easy_install` is not on your system see the Requirements section above to install it. Windows users will need to add the `Scripts` directory of their Python installation (for example, `C:\Python23\Scripts`) to their `PATH` environment variable (see [http://peak.telecommunity.com/DevCenter/EasyInstall#windows-notes easy_install Windows notes] for more information). 47 47 48 48 If Trac reports permission errors after installing a zipped egg and you would rather not bother providing a egg cache directory writable by the web server, you can get around it by simply unzipping the egg. Just pass `--always-unzip` to `easy_install`: … … 52 52 You should end up with a directory having the same name as the zipped egg (complete with `.egg` extension) and containing its uncompressed contents. 53 53 54 Trac also searches for globally installed plugins under `$ share/trac/plugins` ''(since [milestone:0.10])''.54 Trac also searches for globally installed plugins under `$prefix/share/trac/plugins` ''(since 0.10)''. 55 55 56 56 ==== From source ==== … … 100 100 }}} 101 101 102 If your web server does not support the `SetEnv` directive, put this 103 {{{ 104 os.environ['PYTHON_EGG_CACHE'] = '/path/to/dir' 105 }}} 106 into `CGIRequest.__init__()` inside `cgi_frontend.py`. 102 ''Note: this requires the `mod_env` module'' 107 103 108 104 For [wiki:TracFastCgi FastCGI], you'll need to `-initial-env` option, or whatever is provided by your web server for setting environment variables. … … 131 127 === Is the plugin enabled? === 132 128 133 If you install a plugin globally (i.e. ''not'' inside the `plugins` directory of the Trac project environment) you will have to explicitly enable it in [ wiki:TracIni trac.ini]. Make sure that:129 If you install a plugin globally (i.e. ''not'' inside the `plugins` directory of the Trac project environment) you will have to explicitly enable it in [TracIni trac.ini]. Make sure that: 134 130 * you actually added the necessary line(s) to the `[components]` section 135 131 * the package/module names are correct … … 143 139 === Check the log files === 144 140 145 Enable [ wiki:TracLogging logging] in Trac, set the log level to `DEBUG` and then watch the log file for messages about loading plugins.141 Enable [TracLogging logging] in Trac, set the log level to `DEBUG` and then watch the log file for messages about loading plugins. 146 142 147 143 ---- 148 See also TracGuide, [ wiki:PluginList plugin list], [wiki:TracDev/ComponentArchitecture component architecture]144 See also TracGuide, [http://trac.edgewall.org/wiki/PluginList plugin list], [http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture component architecture]