Re: [Zope-dev] REQUEST vs. request

2009-06-22 Thread Reinout van Rees
On 2009-06-16, Patrick Gerken do3cc...@googlemail.com 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

Re: [Zope-dev] REQUEST vs. request

2009-06-22 Thread Hanno Schlichting
On Tue, Jun 16, 2009 at 10:35 PM, Patrick Gerkendo3cc...@googlemail.com 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

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 ha...@hannosch.eu wrote: On Tue, Jun 16, 2009 at 10:35 PM, Patrick Gerkendo3cc...@googlemail.com wrote: A testcase in my code fails, and after a lot of digging, I am finding that

Re: [Zope-dev] REQUEST vs. request

2009-06-17 Thread Hanno Schlichting
On Wed, Jun 17, 2009 at 2:38 PM, Alex Clarkacl...@aclark.net wrote: On 2009-06-17, Martin Aspeli optilude+li...@gmail.com 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,

Re: [Zope-dev] REQUEST vs. request

2009-06-17 Thread Hanno Schlichting
On Wed, Jun 17, 2009 at 2:38 PM, Alex Clarkacl...@aclark.net wrote: On 2009-06-17, Martin Aspeli optilude+li...@gmail.com 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,

[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

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