Package trac :: Module env

Module env

source code

Trac Environment model and related APIs.
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.
Parameters:
  • env_path - absolute path to the environment directory; if ommitted, the value of the TRAC_ENV environment variable is used
  • use_cache - whether the environment should be cached for subsequent invocations of this function
Returns:
the Environment object