[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

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

2009-09-25 Thread Malthe Borch
2009/9/26 Iain Duncan iaindun...@telus.net: 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

[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=word)

[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

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

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,

[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

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

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