incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject Re: [Apache Bloodhound] #322: Add support for environment factory configurable through trac.ini
Date Wed, 23 Jan 2013 15:54:08 GMT
#322: Add support for environment factory configurable through trac.ini
---------------------------+-----------------------------------
  Reporter:  jure          |      Owner:  jure
      Type:  enhancement   |     Status:  assigned
  Priority:  major         |  Milestone:
 Component:  multiproduct  |    Version:
Resolution:                |   Keywords:  bep-0003 multiproduct
---------------------------+-----------------------------------

Comment (by jure):

 This has been implemented on bep_0003_multiproduct branch. Trac code has
 been modified to provide customizable environment factory support (within
 `trac.web.main.dispatch_request`). Current implementation firstly creates
 global environment and then invokes (if configured) custom environment
 factory with global environment being passed as a parameter to the
 factory. This allows for custom factory to instantiate product environment
 (with the global environment being it's parent) for example.
 `trac/environment_factory` configuration option is used to configure
 custom python module that implements the environment factory. Custom
 environment factory must be implemented by subclassing
 `trac.hooks.EnvironmentFactoryBase` class and providing
 `open_environment` method.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/322#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message