Package trac :: Module env

Module env

source code

Classes
  IEnvironmentSetupParticipant
Extension point interface for components that need to participate in the creation and upgrading of Trac environments, for example to create additional database tables.
  Environment
Trac environment manager.
Functions
 
open_environment(env_path=None, use_cache=False)
Open an existing environment object, and verify that the database is up to date.
source code
Function Details

open_environment(env_path=None, use_cache=False)

source code 

Open an existing environment object, and verify that the database is up to date.

@param env_path: absolute path to the environment directory; if ommitted,
the value of the TRAC_ENV environment variable is used
@param use_cache: whether the environment should be cached for subsequent
invocations of this function

@return: the Environment object