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

2009-09-25 Thread Iain Duncan
> > > > 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/ad

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

2009-09-25 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 t

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: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 mana

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

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 >>

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 regist

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

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 g

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 fr

Re: [Repoze-dev] getting at the bfg registry programmatically?

2009-09-25 Thread Chris McDonough
Iain Duncan wrote: > Hi folks, I'm working on breaking out a project into bits, including > some in bfg, some in pylons, and an abstract model that lives in it's > own middleware. What I want to have happen is for all parts to share one > zca registry, but my experiments so far are turning up naug

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

2009-09-25 Thread Iain Duncan
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 my zcml file. So, I thi

Re: [Repoze-dev] A question about the segment replacement marker

2009-09-25 Thread Chris McDonough
george hu wrote: > It seems a big impact if I change the segment replacement marker, > because it is like a global variable name which is "hard referenced" > every where, so if I change ":pagename" to ":pagename1" I need to > change every pagename in views.py, for example, > > view_url=route_url(

Re: [Repoze-dev] getting at the bfg registry programmatically?

2009-09-25 Thread Iain Duncan
On Fri, 2009-09-25 at 20:51 -0700, Iain Duncan wrote: > Hi folks, I'm working on breaking out a project into bits, including > some in bfg, some in pylons, and an abstract model that lives in it's > own middleware. What I want to have happen is for all parts to share one > zca registry, but my expe

[Repoze-dev] getting at the bfg registry programmatically?

2009-09-25 Thread Iain Duncan
Hi folks, I'm working on breaking out a project into bits, including some in bfg, some in pylons, and an abstract model that lives in it's own middleware. What I want to have happen is for all parts to share one zca registry, but my experiments so far are turning up naught. Some questions: - how w

[Repoze-dev] A question about the segment replacement marker

2009-09-25 Thread george hu
It seems a big impact if I change the segment replacement marker, because it is like a global variable name which is "hard referenced" every where, so if I change ":pagename" to ":pagename1" I need to change every pagename in views.py, for example, view_url=route_url("view_page",request,pagename1

Re: [Repoze-dev] unescaping html in chameleon.genshi

2009-09-25 Thread Malthe Borch
2009/9/26 Iain Duncan : > Sorry if this is the wrong place to ask this, if it is, please let me > know where I should. Wondering if anyone can tell me what is necessary > to display html coming from template variables with chameleon.genshi? IE > what would have been ${HTML(var_with_html)} in genshi

[Repoze-dev] unescaping html in chameleon.genshi

2009-09-25 Thread Iain Duncan
Sorry if this is the wrong place to ask this, if it is, please let me know where I should. Wondering if anyone can tell me what is necessary to display html coming from template variables with chameleon.genshi? IE what would have been ${HTML(var_with_html)} in genshi. thanks! Iain ___