[Zope-Checkins] CVS: Zope/lib/python/Products/OFSP/help - ObjectManager.py:1.10.16.1

Amos Latteier amos@digicool.com
Thu, 28 Feb 2002 14:28:39 -0500


Update of /cvs-repository/Zope/lib/python/Products/OFSP/help
In directory cvs.zope.org:/tmp/cvs-serv29807/lib/python/Products/OFSP/help

Modified Files:
      Tag: Zope-2_5-branch
	ObjectManager.py 
Log Message:
Added documentation of manage_delObjects and __getitem__.


=== Zope/lib/python/Products/OFSP/help/ObjectManager.py 1.10 => 1.10.16.1 ===
         """
 
+    def manage_delObjects(ids):
+        """
+        Removes one or more children from the Object Manager. The
+        'ids' argument is either a list of child ids, or a single
+        child id.
 
+        Permission -- 'Delete objects'
+        """
 
+    def __getitem__(id):
+        """
+        Returns a child object given a child id. If there is no child
+        with the given id, returns None. This method makes it easy to
+        refer to children that have id with file extensions. For
+        example::
 
+          page=folder['index.html']
+
+        Note: this function only finds children; it doesn't return
+        properties or other non-child attributes.
+
+        Note: this function doesn't use acquisition to find
+        children. It only returns direct children of the Object
+        Manager. By contrast, using dot notation or 'getattr' will
+        locate children (and other attributes) via acquisition if
+        necessary.
+
+        Permission -- 'Access contents information'
+        """