Changes between Version 64 and Version 65 of TracDev/PluginDevelopment
- Timestamp:
- Jul 27, 2014, 9:14:37 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PluginDevelopment
v64 v65 51 51 52 52 Storing any other objects as instance variables of your component is probably a bad idea: remember that a component is only instantiated once for a given environment; unless your plugin is used in a CGI deployment of Trac, that means that the same component instance will get invoked for multiple HTTP requests; if the server is multi-threaded, this will even happen concurrently. 53 54 == Single file plugins == 55 56 Plugins that consist of a single `.py` file can be dropped directly into either the project's or the shared `plugins` directory. More complex plugins require some packaging. 53 57 54 58 == Packaging plugins ==