[Zope-dev] ZClasses as *methods*
Andreas Kostyrka
andreas@mtg.co.at
Wed, 25 Aug 1999 20:06:30 +0200 (CEST)
On Wed, 25 Aug 1999, Phillip J. Eby wrote:
> Try making your __call__ signature:
>
> def __call__(me,self,...):
>
> And use 'me' to refer to the instance, self to refer to the object called
> with.
Alternativly, he probably could use this hack (this is what ZOPE basically
does, and it worked with Bobo, if I recall correctly):
class Base:
pass
def method(self,...):
pass
Base.__call__=method
Andreas
--
Andreas Kostyrka | andreas@mtg.co.at
phone: +43/1/7070750 | phone: +43/676/4091256
MTG Handelsges.m.b.H. | fax: +43/1/7065299
Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA