restrict search results to current loops site
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1320 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
ff8069124b
commit
01680a666a
1 changed files with 4 additions and 1 deletions
|
@ -99,5 +99,8 @@ class SearchResults(BaseView):
|
||||||
if useTitle and text:
|
if useTitle and text:
|
||||||
criteria['loops_title'] = text
|
criteria['loops_title'] = text
|
||||||
r2 = set(cat.searchResults(**criteria))
|
r2 = set(cat.searchResults(**criteria))
|
||||||
return self.viewIterator(r1.union(r2))
|
result = r1.union(r2)
|
||||||
|
result = [r for r in result if r.getLoopsRoot() == self.loopsRoot]
|
||||||
|
result.sort(key=lambda x: x.title.lower())
|
||||||
|
return self.viewIterator(result)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue