Changes between Version 5 and Version 6 of ComponentDependencyPlugin
- Timestamp:
- Aug 25, 2015, 11:01:13 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ComponentDependencyPlugin
v5 v6 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Allows a component to state dependencies on other plugins =3 2 4 = = Description ==3 = Allows a component to state dependencies on other plugins 5 4 6 ComponentDependencyPlugin allows a [trac:TracDev/ComponentArchitecture Component] to state a dependency on another `Component`, via the `IRequireComponents` interface from `componentdependencies.interface`: 5 == Description 7 6 8 {{{ 9 #!python 7 This plugin allows a [trac:TracDev/ComponentArchitecture Component] to state a dependency on another `Component`, via the `IRequireComponents` interface from `componentdependencies.interface`: 8 9 {{{#!python 10 10 class IRequireComponents(Interface): 11 11 def requires(): … … 13 13 }}} 14 14 15 The `Component` classes that are returned by the `requires` method will be enabled upon environment upgrade. This allows very simple dependencies. Of course, for installation, the required components are still required to be part of python (in `install_requires` in `setup.py`) and this plugin will not work if there is trouble loading a plugin that is required.15 The `Component` classes that are returned by the `requires` method will be enabled upon environment upgrade. This allows very simple dependencies. Of course, for installation, the required components are still required to be part of Python (in `install_requires` in `setup.py`) and this plugin will not work if there is trouble loading a plugin that is required. 16 16 17 == Bugs/Feature Requests ==17 == Bugs/Feature Requests 18 18 19 19 Existing bugs and feature requests for ComponentDependencyPlugin are … … 21 21 22 22 If you have any issues, create a 23 [ http://trac-hacks.org/newticket?component=ComponentDependencyPlugin&owner=k0snew ticket].23 [/newticket?component=ComponentDependencyPlugin new ticket]. 24 24 25 == Download == 25 [[TicketQuery(component=ComponentDependencyPlugin&group=type,format=progress)]] 26 27 == Download 26 28 27 29 Download the zipped source from [download:componentdependencyplugin here]. 28 30 29 == Source ==31 == Source 30 32 31 33 You can check out ComponentDependencyPlugin from [http://trac-hacks.org/svn/componentdependencyplugin/0.11 here] using Subversion, or [source:componentdependencyplugin browse the source] with Trac. 32 34 33 == Example ==35 == Example 34 36 35 The files in [source:componentdependencyplugin/0.11/componentdependencies/test.py test.py] illustrate how to use the plugin. Enable the `ComponentDependencyPlugin` (`componentdependencies.componentdependency.componentdependencyplugin = enabled`) and enable the `TestDependencyPlugin` (`componentdependencies.test.testdependencyplugin = enabled`). Trac will then require an upgrade.The `FooBarTest` component will be enabled in the upgrade.37 The files in [source:componentdependencyplugin/0.11/componentdependencies/test.py test.py] illustrate how to use the plugin. Enable the `ComponentDependencyPlugin` (`componentdependencies.componentdependency.componentdependencyplugin = enabled`) and enable the `TestDependencyPlugin` (`componentdependencies.test.testdependencyplugin = enabled`). Trac will then require an upgrade. The `FooBarTest` component will be enabled in the upgrade. 36 38 37 39 You can also enable the AutoUpgradePlugin prior to this to allow for automatic upgrades. 38 40 39 == Recent Changes ==41 == Recent Changes 40 42 41 43 [[ChangeLog(componentdependencyplugin, 3)]] 42 44 43 == Author/Contributors ==45 == Author/Contributors 44 46 45 47 ''Originally developed at [http://openplans.org The Open Planning Project]''