[Zope] Newbie product question

Max M maxm@mxm.dk
Wed, 21 Aug 2002 10:10:10 +0200


Marie Robichon wrote:

> Hi,
>
> Thanks for your help, however when I move the manage_add method to the 
> class level I get the following error when I try to instantiate my object:

Hmm ... this doesn't really help as I believe that you have changed the code since you posted it yesterday, so the Linenumbers are meaningless.

But it seems that you are calling manage_afterAdd recursively. 

You are calling: "Folder.manage_afterAdd(self, item, container)" this should cause an error as there is no "Folder" object anywhere and I cannot see where you should get it from.

If it really should read "container.manage_afterAdd(self, item, container)" then you are indeed calling your own object recursively as the container calls all it's subobjects with "manage_afterAdd" after being called with it.


regards Max M

    "klaatu verata niktu"