[CMF-checkins] CVS: CMF/CMFCore - PortalFolder.py:1.34

Florent Guillaume fg@nuxeo.com
Fri, 28 Jun 2002 18:33:12 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv29323/CMFCore

Modified Files:
	PortalFolder.py 
Log Message:
Fixed listFolderContents to take into account its optional 'spec'
argument.


=== CMF/CMFCore/PortalFolder.py 1.33 => 1.34 ===
     security.declareProtected( ListFolderContents
                              , 'listFolderContents' )
-    def listFolderContents( self, spec=None, contentFilter=None ): # XXX
+    def listFolderContents( self, spec=None, contentFilter=None ):
         """
             Hook around 'contentValues' to let 'folder_contents'
             be protected.  Duplicating skip_unauthorized behavior of dtml-in.
         """
-        items = self.contentValues(filter=contentFilter)
+        items = self.contentValues(spec=spec, filter=contentFilter)
         l = []
         for obj in items:
             id = obj.getId()