[Zope] Tricky (I think!) external method question...
Tom Jenkins
tjenkins@devis.com
30 Oct 2001 14:34:07 -0500
On Tue, 2001-10-30 at 14:14, Steven Sartorius wrote:
> Hi,
>
> file that contains a subclassed Class. The External Method looks like this:
>
> import MySubClass
> def aFunction(self,a,b,c):
> d = MySubClass.MySubClass(a,b,c)
> return d
>
> MySubClass in turn looks like this:
>
> import MyClass
> class MySubClass(MyClass.MyClass):
> def __init__(self,a,b,c):
> """Do some initialization that differs from MyClass"""
> return d
>
>
> The External Method above dies when it tries to create 'd'. The traceback I
> get from Zope says:
>
> Error Type: TypeError
> Error Value: __init__() should return None
>
there's an error in MySubClass's __init__ method; you cannot return
anything other than a None from __init__
--
Tom Jenkins
Development InfoStructure
http://www.devis.com