Hi,
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dieter Maurer Sent: Thursday, November 08, 2001 9:43 PM To: Hans N. Beck Cc: Zope@Zope. Org Subject: RE: [Zope] object references in python (script)
Hans N. Beck writes:
Ahhh ! Ok, but DokuItemType has Base class Object manager, so it should have such method ??? If not, how must I implement this method ? No, an Object Manager does not have methods of a Property Manager...
You derive from PropertyManager, too....
from this doing a blind trial: doc=getattr(my_context, id) doc.propertysheets.DokyTypePropertiesID.manage_changeProperties(my_conte xt.R EQUEST) is the solution. uff ! But why works the Zope Book example doc.manage_changeProperties(my_context.REQUEST) ?? Here there get my basic problem understanding zope visible: understanding which objects contains which other an how to get references to or accesing instances. For me as beginner it's not easy. This is especially true for the somewhat mystic (at beginning) Context and REQUEST objects. Many Zope examples only say: "do this", but not "do this is why". Greetings Hans