Re: [Zope-dev] REQUEST vs. request

2009-06-22 Thread Patrick Gerken
Hi, thank you for all that answers, this was really helpful! On Mon, Jun 22, 2009 at 12:18, Hanno Schlichting wrote: > On Tue, Jun 16, 2009 at 10:35 PM, Patrick Gerken > wrote: > > A testcase in my code fails, and after a lot of digging, I am finding > that > > the reason are wrong results from

Re: [Zope-dev] REQUEST vs. request

2009-06-22 Thread Hanno Schlichting
On Tue, Jun 16, 2009 at 10:35 PM, Patrick Gerken wrote: > A testcase in my code fails, and after a lot of digging, I am finding that > the reason are wrong results from the catalog. The catalog returns bad > results because he caches the results in the request. > My test consists of a number of ste

Re: [Zope-dev] REQUEST vs. request

2009-06-22 Thread Reinout van Rees
On 2009-06-16, Patrick Gerken wrote: > > A testcase in my code fails, and after a lot of digging, I am finding that > the reason are wrong results from the catalog. The catalog returns bad > results because he caches the results in the request. > My test consists of a number of steps, for multiple

Re: [Zope-dev] REQUEST vs. request

2009-06-17 Thread Hanno Schlichting
On Wed, Jun 17, 2009 at 2:38 PM, Alex Clark wrote: > On 2009-06-17, Martin Aspeli wrote: >> In Zope 2, your views *also* support acquisition, because until Zope >> 2.12 at least, they have to in order to have security. So you can do >> self.REQUEST on the view, which acquires it from a parent. But

Re: [Zope-dev] REQUEST vs. request

2009-06-17 Thread Hanno Schlichting
On Wed, Jun 17, 2009 at 2:38 PM, Alex Clark wrote: > On 2009-06-17, Martin Aspeli wrote: >> In Zope 2, your views *also* support acquisition, because until Zope >> 2.12 at least, they have to in order to have security. So you can do >> self.REQUEST on the view, which acquires it from a parent. But

Re: [Zope-dev] REQUEST vs. request

2009-06-17 Thread Alex Clark
On 2009-06-17, Martin Aspeli wrote: > REQUEST is a Zope2-ism. When you do self.REQUEST somewhere, you are > actually using acquisition to get this object from the outermost item in > any (most?) acquisition chain: a magic RequestContainer class whose > purpose it is to let you acquire a REQUEST

Re: [Zope-dev] REQUEST vs. request

2009-06-16 Thread Martin Aspeli
Patrick Gerken wrote: > Hello, > > I am a bit confused about self.request and self.REQUEST. > Can anybody point me to an explanation of the different tasks that both > have? > Googling for request vs REQUEST is not helpful... D'oh! :-) REQUEST is a Zope2-ism. When you do self.REQUEST somewhere,

[Zope-dev] REQUEST vs. request

2009-06-16 Thread Patrick Gerken
Hello, I am a bit confused about self.request and self.REQUEST. Can anybody point me to an explanation of the different tasks that both have? Googling for request vs REQUEST is not helpful... Here is the reason why I am wondering: Context is a small product to be used in plone. A testcase in my