[ZPT] REQUEST argument
Richard Jones
richard@bizarsoftware.com.au
Fri, 8 Jun 2001 12:55:06 +1000
On Friday 08 June 2001 12:32, Evan Simpson wrote:
> Yeeech! You want mapply! That's the magical apply function that the
> publishing machinery uses, and while it makes a fine impedance matcher for
> direct requests, I shudder to think of using it for intrasystem calls.
> Can't you change your Product's method, or add a new one, so that you don't
> have to pass REQUEST to it? You can always acquire it from self, as in:
>
> def foo(self):
> req = self.REQUEST
> #whatever
Woah! There's something I've never seen... learn something new every day...
How long's that been like that? I've been doing Zope for a while now, and I
never knew I could just acquire REQUEST...
Richard
--
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)