Edgewall Software

Changes between Initial Version and Version 1 of TracDev/PluginDevelopment/ExtensionPoints/trac.env.IEnvironmentSetupParticipant


Ignore:
Timestamp:
May 11, 2010, 11:34:00 PM (14 years ago)
Author:
Carsten Klein <carsten.klein@…>
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment/ExtensionPoints/trac.env.IEnvironmentSetupParticipant

    v1 v1  
     1== Extension Point : ''IEnvironmentSetupParticipant'' ==
     2
     3||'''Interface'''||''IEnvironmentSetupParticipant''||'''Since'''||TBD||
     4||'''Module'''||''trac.env''||'''Source'''||[source:trunk/trac/env.py#L51 env.py]||
     5
     6The ''IEnvironmentSetupParticipant'' is responsible for either creating a new environment or to upgrade (aka migrate) an existing environment to a newer version of the database. In addition to that, the implementation of the extension point interface might also migrate existing data in the database so that it will correspond to the newly installed changes to the existing database schema, or similar such use cases.
     7
     8The implementation will be called on either ''trac-admin <env-dir> initenv'' or, if an existing environment must be upgraded, on ''trac-admin <env-dir> upgrade''.
     9
     10== Purpose ==
     11
     12TBD
     13
     14Provide detailed information on the purpose of the interface here. E.g. ''IAuthenticator'' is used by the main request dispatcher to associate the current request's session with a user, or, in case that no such user exists, with the anonymous user. The most basic implementation would search for a cookie in the request. Other, more elaborated implementations for example would provide single sign on for example by evaluating an existing request header, and so on.
     15
     16== Usage ==
     17
     18Provide detailed usage information of the extension point and implementations thereof. E.g. when is a method of the implementation being called and so on.
     19
     20
     21== Examples ==
     22
     23Provide one or more example implementations of the interface.
     24
     25== Available Implementations ==
     26
     27Provide references to available implementations of the interface, for example by linking to sources in trac trunk or on trac-hacks. You might also include short discussions on how they have been implemented.