Re: [Repoze-dev] accessing middleware or request from bgf models during traversal?

2009-09-03 Thread Chris McDonough
On 9/3/09 6:19 PM, Iain Duncan wrote: > On Thu, 2009-09-03 at 18:15 -0400, Chris McDonough wrote: >> Using request parameters in model code is technically unsupported.In the >> bfg >> "mindset", models need no access to the request environment. But please >> check >> out the "repoze.bfg.thre

Re: [Repoze-dev] accessing middleware or request from bgf models during traversal?

2009-09-03 Thread Iain Duncan
On Thu, 2009-09-03 at 18:15 -0400, Chris McDonough wrote: > On 9/3/09 3:40 PM, Iain Duncan wrote: > > Hey folks, I have some stuff in middleware that I need my models in a > > bfg traversal graph to be able to get at. > > Using request parameters in model code is technically unsupported.In the

Re: [Repoze-dev] accessing middleware or request from bgf models during traversal?

2009-09-03 Thread Chris McDonough
On 9/3/09 3:40 PM, Iain Duncan wrote: > Hey folks, I have some stuff in middleware that I need my models in a > bfg traversal graph to be able to get at. Using request parameters in model code is technically unsupported.In the bfg "mindset", models need no access to the request environment.

Re: [Repoze-dev] accessing middleware or request from bgf models during traversal?

2009-09-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Iain Duncan wrote: > Hey folks, I have some stuff in middleware that I need my models in a > bfg traversal graph to be able to get at. But I'm not sure what the > correct way for those to get at the environ is. I could tack the environ > onto all objec

Re: [Repoze-dev] middleware problem

2009-09-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André Roth wrote: > I need some help understanding the repoze middleware mechanisms. > > Context: I want to write a LDAP Auth and MetaData plugin for repoze.who, > to be used with Turbogears 2. > This works so far, but the integration in tg2 does not

Re: [Repoze-dev] groups, perms and LDAP with repoze.who.plugins.sa

2009-09-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André Roth wrote: > I a standard Turbogears 2 project Users can be member of Groups which > grant certain Permissions. > However, I try to configure the tg2 app using a who.ini file, allowing > LDAP users to login as well as the standard users. > I am

[Repoze-dev] accessing middleware or request from bgf models during traversal?

2009-09-03 Thread Iain Duncan
Hey folks, I have some stuff in middleware that I need my models in a bfg traversal graph to be able to get at. But I'm not sure what the correct way for those to get at the environ is. I could tack the environ onto all objects starting at default_get_root but that seems kind of clunky. I was alter

[Repoze-dev] middleware problem

2009-09-03 Thread André Roth
Hello, I need some help understanding the repoze middleware mechanisms. Context: I want to write a LDAP Auth and MetaData plugin for repoze.who, to be used with Turbogears 2. This works so far, but the integration in tg2 does not work as expected, since the standard sqlalchemy authentication get