Commit 34dedeb1 authored by 's avatar

Made objectIds and objectValues non-Web accessible

parent 5b565c13
...@@ -84,9 +84,9 @@ ...@@ -84,9 +84,9 @@
############################################################################## ##############################################################################
__doc__="""Object Manager __doc__="""Object Manager
$Id: ObjectManager.py,v 1.117 2000/12/13 19:57:44 evan Exp $""" $Id: ObjectManager.py,v 1.118 2000/12/19 16:01:42 brian Exp $"""
__version__='$Revision: 1.117 $'[11:-2] __version__='$Revision: 1.118 $'[11:-2]
import App.Management, Acquisition, Globals, CopySupport, Products import App.Management, Acquisition, Globals, CopySupport, Products
import os, App.FactoryDispatcher, ts_regex, Products import os, App.FactoryDispatcher, ts_regex, Products
...@@ -351,9 +351,9 @@ class ObjectManager( ...@@ -351,9 +351,9 @@ class ObjectManager(
except: pass except: pass
def objectIds(self, spec=None): def objectIds(self, spec=None):
"""Returns a list of subobject ids of the current object. # Returns a list of subobject ids of the current object.
If 'spec' is specified, returns objects whose meta_type # If 'spec' is specified, returns objects whose meta_type
matches 'spec'.""" # matches 'spec'.
if spec is not None: if spec is not None:
if type(spec)==type('s'): if type(spec)==type('s'):
spec=[spec] spec=[spec]
...@@ -365,9 +365,9 @@ class ObjectManager( ...@@ -365,9 +365,9 @@ class ObjectManager(
return map(lambda i: i['id'], self._objects) return map(lambda i: i['id'], self._objects)
def objectValues(self, spec=None): def objectValues(self, spec=None):
"""Returns a list of actual subobjects of the current object. # Returns a list of actual subobjects of the current object.
If 'spec' is specified, returns only objects whose meta_type # If 'spec' is specified, returns only objects whose meta_type
match 'spec'.""" # match 'spec'.
return map(self._getOb, self.objectIds(spec)) return map(self._getOb, self.objectIds(spec))
def objectItems(self, spec=None): 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