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):

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


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to