Esempio n. 1
0
def searchResults(self, REQUEST=None, **kw):
    if 'UID' not in kw\
            and 'path' not in kw\
            and (REQUEST is None or 'path' not in REQUEST):
        # Root catalog searches to the navigation root, except if path or UID
        # are explicitly given.
        root = getNavigationRoot()
        if root is not None:
            kw = kw.copy()
            kw['path'] = '/'.join(root.getPhysicalPath())
    return CatalogTool._oldSearchResults(self, REQUEST, **kw)