Ross Boylan writes:
 > The example there is basically
 > class Spam:
 >   def __init__(self):
 >     ...
 > 
 > class ECSpam(Base, Spam):  #Base is an ExtensionClass
 >   def __init__(self):
 >     ECSpam.inheritedAttribute('__init__')(self)
I started to use the following idiom:

  class ECSpam(...,Spam): ...
    _Spam__init= Spam.__init__

    def __init__(self):
      self._Spam__init()

i.e., rename the overloaded method in you derived class and call
it in the normal way with its new name.


Dieter

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to