Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-26 Thread Chris McDonough
Chris McDonough wrote: Iain Duncan wrote: On Sat, 2009-09-26 at 01:42 -0400, Chris McDonough wrote: Iain Duncan wrote: If I could get the 'one-registry-to-rule-them-all' loaded in middelware on ingress, is there at least a reasonable way of forcing the bgf app to use that registry as it's

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-26 Thread Chris McDonough
Iain Duncan wrote: Hmm, I agree, but I feel like there is a smell either way. ;-) It seems to me I can either: A) - create a duplicate of the the same registry in my abstract model middleware by using zope.configuration.xmlconfig( same_file_as_bfg ) and then know that any utility/adapter

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Chris McDonough
Iain Duncan wrote: Ok, so I figured out that if I get the zope.component.globalSiteManager in my model middleware on ingress, that in bfg I can indeed query it for registered adapaters and get at that. But in the bfg app, the global site manager is empty and the siteManager has the stuff from

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Iain Duncan
On Sat, 2009-09-26 at 01:04 -0400, Chris McDonough wrote: Iain Duncan wrote: Ok, so I figured out that if I get the zope.component.globalSiteManager in my model middleware on ingress, that in bfg I can indeed query it for registered adapaters and get at that. But in the bfg app, the global

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Chris McDonough
Iain Duncan wrote: On Sat, 2009-09-26 at 01:04 -0400, Chris McDonough wrote: Iain Duncan wrote: Ok, so I figured out that if I get the zope.component.globalSiteManager in my model middleware on ingress, that in bfg I can indeed query it for registered adapaters and get at that. But in the bfg

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Iain Duncan
If I could get the 'one-registry-to-rule-them-all' loaded in middelware on ingress, is there at least a reasonable way of forcing the bgf app to use that registry as it's site manager? Nope. BFG hooks this hookable thing when it loads a ZCML file to put it in its own registry, and

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Chris McDonough
Iain Duncan wrote: If I could get the 'one-registry-to-rule-them-all' loaded in middelware on ingress, is there at least a reasonable way of forcing the bgf app to use that registry as it's site manager? Nope. BFG hooks this hookable thing when it loads a ZCML file to put it in its own

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Iain Duncan
On Sat, 2009-09-26 at 01:42 -0400, Chris McDonough wrote: Iain Duncan wrote: If I could get the 'one-registry-to-rule-them-all' loaded in middelware on ingress, is there at least a reasonable way of forcing the bgf app to use that registry as it's site manager? Nope. BFG hooks this