[Zope-dev] Bindings and Votings
Chris Withers
chrisw@nipltd.com
Thu, 26 Oct 2000 14:27:59 +0100
Michel Pelletier wrote:
>
> Sorta. There is a bindings tab on PythonMethods where you assign names
> to various variables that show up in your namespace. 'self' is the
> container. 'context' is the context. So:
>
> self.objectValues()
>
> will allways call the container whereas:
>
> context.objectValues()
>
> will call the method on the currently bound object.
...but can you bind self to the context or, more perversely, context to
the container?
> Unfortunately, complex also means "too hard for me to think too hard
> about". Any volunteers?
How about the person who suggested it? ;-)
cheers,
Chris