src/pyams_content/features/search/portlet/__init__.py
changeset 1406 a568b9d2f7dd
parent 1389 1485db1e2b5e
child 1443 2af30495d1d7
equal deleted inserted replaced
1405:a123fc2a6f69 1406:a568b9d2f7dd
    40     force_canonical_url = FieldProperty(ISearchResultsPortletSettings['force_canonical_url'])
    40     force_canonical_url = FieldProperty(ISearchResultsPortletSettings['force_canonical_url'])
    41 
    41 
    42     @staticmethod
    42     @staticmethod
    43     def has_user_query(request):
    43     def has_user_query(request):
    44         params = request.params
    44         params = request.params
    45         return params.get('user_search', '').strip() or \
    45         return params.get('user_search', '').strip()
    46             params.get('tag', '').strip() or \
       
    47             params.get('collection', '').strip()
       
    48 
    46 
    49     @staticmethod
    47     @staticmethod
    50     def _get_items(request=None, start=0, length=10, limit=None, ignore_cache=False):
    48     def _get_items(request=None, start=0, length=10, limit=None, ignore_cache=False):
    51         context = get_parent(request.context, ISearchFolder)
    49         context = get_parent(request.context, ISearchFolder)
    52         if context is None:
    50         if context is None: