[CMF-checkins] CVS: Products/CMFCore - CatalogTool.py:1.54

Grégoire Weber zope.org at incept.ch
Fri Aug 6 16:53:58 EDT 2004


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv32351

Modified Files:
	CatalogTool.py 
Log Message:
- added 'unrestrictedSearchResults' with a big CAUTION in the method doc string


=== Products/CMFCore/CatalogTool.py 1.53 => 1.54 ===
--- Products/CMFCore/CatalogTool.py:1.53	Thu Apr 29 12:13:16 2004
+++ Products/CMFCore/CatalogTool.py	Fri Aug  6 16:53:57 2004
@@ -203,6 +203,21 @@
 
     __call__ = searchResults
 
+    security.declarePrivate('unrestrictedSearchResults')
+    def unrestrictedSearchResults(self, REQUEST=None, **kw):
+        """Calls ZCatalog.searchResults directly without restrictions.
+        
+        This method returns every also not yet effective and already expired 
+        objects regardless of the roles the caller has.
+        
+        CAUTION: Care must be taken not to open security holes by 
+        exposing the results of this method to non authorized callers!
+        
+        If you're in doubth if you should use this method or
+        'searchResults' use the latter.
+        """
+        return ZCatalog.searchResults(self, REQUEST, **kw)
+
     def __url(self, ob):
         return '/'.join( ob.getPhysicalPath() )
 



More information about the CMF-checkins mailing list