Edgewall Software

Changes between Version 64 and Version 65 of TracDev/PluginDevelopment


Ignore:
Timestamp:
Jul 27, 2014, 9:14:37 PM (10 years ago)
Author:
Peter Suter
Comment:

Mention single file plugins

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment

    v64 v65  
    5151
    5252Storing 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
     56Plugins 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.
    5357
    5458== Packaging plugins ==