Lennart Regebro wrote:
Sorry but I don't see that. How on earth are you suposed to add an object to an objectmanager, if you don't use _setObject() ??From: "maxm" <[EMAIL PROTECTED]>Usually a private method is used purely as a mean of implementation. And should never be called from other objects. This is not the case here, as the method is clearly a part of the api.Well, no, it isn't really, since it starts with _. However, python do not in itself enforce privacy, so therefore you *can* call it. But by starting it with _ it is private by convention. Zope also implements some of this privacy, so you can't call it from Python scripts and so on.
Every time you make an object that subclasses ObjectManager, wich is often, you need to use that function. That can hardly be called private.
hilsen/regards Max M Rasmussen, Denmark
Fremtiden, videnskab, skeptiscisme og transhumanisme
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce