Commit a162eccc authored by 's avatar

Reluctantly added docstrings back to objectIds and objectValues to avoid

breaking xml-rpc apps that may depend on them. Waaa.
parent f914da17
......@@ -84,9 +84,9 @@
##############################################################################
__doc__="""Object Manager
$Id: ObjectManager.py,v 1.92 2000/05/17 18:50:29 brian Exp $"""
$Id: ObjectManager.py,v 1.93 2000/05/17 20:56:27 brian Exp $"""
__version__='$Revision: 1.92 $'[11:-2]
__version__='$Revision: 1.93 $'[11:-2]
import App.Management, Acquisition, Globals, CopySupport, Products
import os, App.FactoryDispatcher, ts_regex, Products
......@@ -297,9 +297,9 @@ class ObjectManager(
self._delOb(id)
def objectIds(self, spec=None):
# Returns a list of subobject ids of the current object.
# If 'spec' is specified, returns objects whose meta_type
# matches 'spec'.
"""Returns a list of subobject ids of the current object.
If 'spec' is specified, returns objects whose meta_type
matches 'spec'."""
if spec is not None:
if type(spec)==type('s'):
spec=[spec]
......@@ -311,9 +311,9 @@ class ObjectManager(
return map(lambda i: i['id'], self._objects)
def objectValues(self, spec=None):
# Returns a list of actual subobjects of the current object.
# If 'spec' is specified, returns only objects whose meta_type
# match 'spec'
"""Returns a list of actual subobjects of the current object.
If 'spec' is specified, returns only objects whose meta_type
match 'spec'."""
return map(self._getOb, self.objectIds(spec))
def objectItems(self, spec=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment