ObjectManagerItem: does it exist?
during chat on #zope I told somebody to have his class inherit from ObjectManagerItem. Then I went looking in the zope source and... it does not exist, as far as I can tell. $ cd /zope/Zope_software_home/ $ find . -name "*py" -exec grep -H "ObjectManagerItem" {} \; ./lib/python/Products/OFSP/help/DTMLDocument.py: 'OFSP.ObjectManagerItem.ObjectManagerItem', ./lib/python/Products/OFSP/help/DTMLMethod.py: __extends__=('OFSP.ObjectManagerItem.ObjectManagerItem',) ./lib/python/Products/OFSP/help/File.py: 'OFSP.ObjectManagerItem.ObjectManagerItem', ./lib/python/Products/OFSP/help/Folder.py: 'OFSP.ObjectManagerItem.ObjectManagerItem', ./lib/python/Products/OFSP/help/ObjectManagerItem.py:class ObjectManagerItem: That last one looks like a hit, but it's purely documentation, as the folder name suggests; there are only docstrings, no actual method code. I suspect the API reference intends to refer to OFS.SimpleItem.Item or OFS.SimpleItem.SimpleItem. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!"
I'd put a comment in the Zope Book API reference about this, but I can't. Commenting seems to be disabled, both for the 2.6 version and for the 2.5.1 version. --PW On Fri, Nov 01, 2002 at 04:50:59PM -0800, Paul Winkler wrote:
during chat on #zope I told somebody to have his class inherit from ObjectManagerItem. Then I went looking in the zope source and... it does not exist, as far as I can tell.
$ cd /zope/Zope_software_home/ $ find . -name "*py" -exec grep -H "ObjectManagerItem" {} \; ./lib/python/Products/OFSP/help/DTMLDocument.py: 'OFSP.ObjectManagerItem.ObjectManagerItem', ./lib/python/Products/OFSP/help/DTMLMethod.py: __extends__=('OFSP.ObjectManagerItem.ObjectManagerItem',) ./lib/python/Products/OFSP/help/File.py: 'OFSP.ObjectManagerItem.ObjectManagerItem', ./lib/python/Products/OFSP/help/Folder.py: 'OFSP.ObjectManagerItem.ObjectManagerItem', ./lib/python/Products/OFSP/help/ObjectManagerItem.py:class ObjectManagerItem:
That last one looks like a hit, but it's purely documentation, as the folder name suggests; there are only docstrings, no actual method code.
I suspect the API reference intends to refer to OFS.SimpleItem.Item or OFS.SimpleItem.SimpleItem.
--
Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!"
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!"
Paul Winkler writes:
during chat on #zope I told somebody to have his class inherit from ObjectManagerItem. Then I went looking in the zope source and... it does not exist, as far as I can tell. What you see here, probably has the following explanation:
* Zope uses historical, sometimes misleading and inconsistent terminology * The person tasked to describe the Zope interfaces tried to improve terminology and make it more consistent. He invented new terms. Unfortunately, he did not tell the relations between his new terms and the old historical ones. * "ObjectManagerItem" is just a documentation term, it does not correspond directly to anything it Zope. It should be an interface, but as Zope 2 is not yet strongly based on interfaces, there is currently (at least I think) nor such thing. The usual implementation class for "ObjectManagerItem" is "OFS.SimpleItem.SimpleItem". Of course, other classes can implement the interface as well. Dieter
On Sun, Nov 03, 2002 at 12:21:10AM +0100, Dieter Maurer wrote:
What you see here, probably has the following explanation: (snip) * "ObjectManagerItem" is just a documentation term, it does not correspond directly to anything it Zope.
It should be an interface, but as Zope 2 is not yet strongly based on interfaces, there is currently (at least I think) nor such thing.
The usual implementation class for "ObjectManagerItem" is "OFS.SimpleItem.SimpleItem". Of course, other classes can implement the interface as well.
That makes sense. I'd like to put a note about this in the API reference, if I could. :-( -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!"
participants (2)
-
Dieter Maurer -
Paul Winkler