Changes between Version 6 and Version 7 of TracPlugins
- Timestamp:
- 19/05/2016 16:30:59 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracPlugins
v6 v7 9 9 From the user's point of view, a plugin is either a standalone .py file or an .egg package. Trac looks for plugins in Python's `site-packages` directory, the [TracIni#GlobalConfiguration global shared] `plugins` directory and the [TracEnvironment project environment] `plugins` directory. Components defined in globally-installed plugins must be explicitly enabled in the [[TracIni#components-section| [components] ]] section of the `trac.ini` file. Components defined in the `plugins` directory of the project environment are enabled, unless explicitly disabled in the `[components]` section of the `trac.ini` file. 10 10 11 == Requirements for Trac eggs 11 == Requirements for Trac eggs #Requirements 12 12 13 13 To use egg-based plugins in Trac, you need to have [http://peak.telecommunity.com/DevCenter/setuptools setuptools] (version >= 0.6) installed. … … 25 25 == Installing a Trac plugin 26 26 27 The instructions below are applicable to a plugin packaged as an egg. Plugins implemented as a single `py` file should be downloaded and copied to the [TracEnvironment project environment] `plugins` directory or the [TracIni#GlobalConfiguration global shared] plugins directory. 28 27 29 === For a single project 28 29 Plugins are typically packaged as [http://peak.telecommunity.com/DevCenter/PythonEggs Python eggs]. That means they are .zip archives with the file extension `.egg`.30 30 31 31 If you have downloaded a source distribution of a plugin, and want to build the `.egg` file: … … 89 89 90 90 After installing the plugin, you must restart your web server. 91 92 ==== Upgrading the environment 93 94 Some plugins may require an environment upgrade. This will typically be necessary for plugins that implement `IEnvironmentSetupParticipant`. Common reasons for requiring an environment upgrade are to add tables to the database or add configuration parameters to trac.ini. A notification will be displayed when accessing Trac for the first time after installing a plugin and restarting the web server. To upgrade the environment, run the command: 95 96 {{{#!sh 97 $ trac-admin /path/to/env upgrade 98 }}} 99 100 A database backup will be made before upgrading the environment, unless the `--no-backup` option is specified. For more information, refer to the documentation output by `trac-admin /path/to/env help upgrade`. 91 101 92 102 ==== Uninstalling