[Grok-dev] multiple grok wsgi applications possible?

Chris McDonough chrism at plope.com
Wed Dec 17 16:08:02 EST 2008

Chris McDonough wrote:
> Brandon Craig Rhodes wrote:
>> Chris McDonough <chrism at plope.com> writes:
>>> I fear that any code that uses getGlobalSiteManager (read: lots of
>>> stuff) as opposed to more generally written code that uses
>>> getSiteManager is doomed to obtain the actual single global ZCML
>>> registry unless zope.component is modified.
>> I'd assumed you were just overwriting
>> `zope.component.globalregistry.globalSiteManager` with whatever each
>> threaded "needs to see" to work properly.
> Yes, during initial registry population (e.g. xmlconfig.include(...)) this is
> exactly what we do.

BTW, this code lives in
http://svn.repoze.org/repoze.bfg/trunk/repoze/bfg/registry.py (getRegistry).

- C

More information about the Grok-dev mailing list