Hello,<br><br>I am a bit confused about self.request and self.REQUEST.<br>Can anybody point me to an explanation of the different tasks that both have?<br>Googling for request vs REQUEST is not helpful...<br><br>Here is the reason why I am wondering:<br>

<br>Context is a small product to be used in plone.<br><br>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.<br>

My test consists of a number of steps, for multiple times I do a getMultiAdapter, always with fresh TestRequests. Still it seems, that the catalog always use some other, rotten REQUEST.<br><br>When stepping through, I see this happening:<br>

1. my BrowserView calls something like self.context.portal_catalog(kw)<br>    There is no request as an argument<br>2. The method I call wants that as a positional argument, but has None as the default value<br>    That None value gets passed on.<br>

3. In Products.ZCatalog.Catalog:searchResults the code checks whether the REQUEST<br>    variable is None, and if so, retrieves self.REQUEST. self.REQUEST ist the rotten <br>    REQUEST, self.request would still be available<br>

4. Total chaos is ensured<br><br>I can imagine more than one way to fix it, but I don&#39;t understand the difference and reasoning sufficiently to decide, what would be the right(tm) way to fix it.<br><br>Any points will be really appreciated!<br>

<br>Best regards,<br><br>      Patrick<br>