[Zope] Problems with inheritance in python base products

Sascha Matzke Sascha Matzke <matzke@metabox.de>
Sun, 17 Oct 1999 04:06:53 +0200


Hello,

I want to design 2+ products which all share certain base
functionality. So I moved some code into Shared. 

Now, when I try to create instances of the products I get the
following error:

Error Type: TypeError
Error Value: unbound method must be called with class instance 1st
             argument

I use the following code:

class B(A):

      def __init__(self, some, more, parameters):
	  A.__init__(self, some, more)

In my python knowlegde the above should be correct...

Any hints...

Sascha
PS: I know ZClasses, but I want to use pure python for comfort
reasons... 
-- 
.-> Sascha Matzke - sascha@bespin.de - http://www.bespin.de -.
|   Das Kapital ist die Flamme, der Faschismus das Benzin    |
|                                         Anarchist Academy  |
`-- On this earth for  24 years,    3 days  <----------------'