[ZOPE] Newbie: Usage of this(), self, context

Stefan H. Holek stefan@epy.co.at
Fri, 08 Feb 2002 19:42:48 +0100


At 08.02.2002 15:11 +0100, c.koll@web.de wrote:
>When I read the Zopebook it seemed to be quite understandable, but looking=
=20
>at some scripts now, I think I somehow mixed it up. What=B4s the difference=
=20
>between "this()", "self" and "context"? When do I use each one?

When writing    | the Zopista uses
----------------------------------
Python Product  | self
External Method | self
DTML            | this()
Python Script   | context
Page Template   | here

to refer to basically the same thing.

At this point I feel like a sarcastic comment on orthogonality and such but=
=20
words fail me ;-)

HTH,
Stefan