Hello, I got a similar error with Zope 2.1.5 on Win32 Saturday. Here's how: - I created a ZClass, TestClassA (it subclassed ObjectManager). - In TestClassA, I created another ZClass, TestClassB (it also subclassed ObjectManager). So I got ControlPanel / Products / AProduct / TestClassA / TestClassB. Then : - I created a TestClassA instance somewhere. - In this instance, I tried to create a TestClassB instance. I got: Error Type: AttributeError Error Value: _getOb Somehow this was related to RESPONSE. This error didn't occur when for testing I added ", RESPONSE" to the line <dtml-with "TestClassB.createInObjectManager(REQUEST['id'], REQUEST)"> in the "TestClassB_add" constructor method. Cheers. Alexandre At 09:21 20/03/2000 -0800, you wrote:
Date: Mon, 20 Mar 2000 10:25:16 -0500 From: Jim Fulton <jim@digicool.com> Subject: Re: [Zope] zope-2.1.5 and zclass (again)
Vladimir Petrovic wrote:
I'm getting the same error on Zope 2.1.5. My zclass A which inherits object manager. Inside it I have zclass B. When I try to create B object inside A folder Zope gives me an Attribute Error: _getOb inside B.createInObjectManager ()
That's very odd. I tried reproducing this and couldn't.
It seems then Zope does not see class A's parent object manager.
What do you mean by parent? Presumably, A subclasses ObjectManager. Right?
But, I have exported A objects containing B object from 2.1.4 to 2.1.5 and that works.
That's because export/import doesn't use createInObjectManager.
I suggest one of the following:
- Try a very simple example that you can deacribe completely so you can explain it to me in complete detail and I can try to reporiduce it.
- If your database isn't too big (or if you can reproduce this with a small database) send me the database. I'll look at it and see if I can see what's going on.
Jim