| Trees | Indices | Help |
|
|---|
object --+ | core.Component --+ | object --+ | | | core.ComponentManager --+ | env.Environment --+ | InMemoryEnvironment
Inherited from core.Component :
__metaclass__
[])Inherited from env.Environment :
__init__ ,
backup ,
component_activated ,
enable_component ,
get_htdocs_dir ,
get_known_users ,
get_log_dir ,
get_repository ,
get_system_info ,
get_systeminfo ,
get_templates_dir ,
get_version ,
needs_upgrade ,
shutdown ,
upgrade ,
with_transaction
Inherited from core.ComponentManager:
__contains__,
__getitem__,
disable_component,
is_enabled
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
Inherited from core.Component :
__new__ ,
implements
Inherited from env.Environment :
base_url ,
base_url_for_redirect ,
log_file ,
log_format ,
log_level ,
log_type ,
project_admin ,
project_admin_trac_url ,
project_description ,
project_footer ,
project_icon ,
project_name ,
project_url ,
required ,
secure_cookies ,
shared_plugins_dir
Inherited from env.Environment :
abs_href ,
href ,
setup_participants ,
system_info_providers
Inherited from object:
__class__
Return a database connection for read purposes.
See trac.db.api.get_read_db for detailed documentation.
Return a database connection from the connection pool (deprecated)
Use with_transaction for obtaining a writable database connection and get_read_db for anything else.
[])
Create the basic directory structure of the environment, initialize the database and populate the configuration file with default values.
If options contains ('inherit', 'file'), default values will not be loaded; they are expected to be provided by that file or other options.
Implemented to only allow activation of components that are not disabled in the configuration.
This is called by the ComponentManager base class when a component is
about to be activated. If this method returns False, the component
does not get activated. If it returns None, the component only gets
activated if it is located in the plugins directory of the
enironment.
| Trees | Indices | Help |
|
|---|