source: WAeUP_SRP/base/PatchCatalogToolSearchResults.py @ 2354

Last change on this file since 2354 was 2305, checked in by joachim, 17 years ago

remove searchrestrictions by patching CatalogTool?

  • Property svn:keywords set to Id
File size: 511 bytes
RevLine 
[2305]1from Products.ZCatalog.ZCatalog import ZCatalog
2def searchResults(self, REQUEST=None, **kw):
3    """
4    Calls ZCatalog.searchResults with extra arguments that
5    limit the results to what the user is allowed to see.
6    don't do that for WAeUP
7    """
8    # user = _getAuthenticatedUser(self)
9    # kw[ 'allowedRolesAndUsers' ] = self._listAllowedRolesAndUsers( user )
10
11    return ZCatalog.searchResults(self, REQUEST, **kw)
12
13from Products.CMFCore import CatalogTool
14CatalogTool.searchResults = searchResults
Note: See TracBrowser for help on using the repository browser.