Skip to content

Commit

Permalink
Merge pull request #84 from collective/Fix-live-search
Browse files Browse the repository at this point in the history
Fix live search (version 5.x)
  • Loading branch information
ksuess authored Sep 27, 2024
2 parents 8c37a40 + fff6e71 commit af02cdd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ on:
jobs:
build:
strategy:
# We want to see all failures:
fail-fast: false
matrix:
config:
# [Python version, tox env]
- ["3.6", "plone52-py36"]
- ["3.7", "plone52-py37"]
- ["3.8", "plone52-py38"]
- ["3.7", "plone60-py37"]
- ["3.8", "plone60-py38"]
- ["3.9", "plone60-py39"]
runs-on: ubuntu-latest
- ["3.7", "plone52-py37", "ubuntu-22.04"]
- ["3.8", "plone52-py38", "ubuntu-24.04"]
- ["3.8", "plone60-py38", "ubuntu-24.04"]
- ["3.9", "plone60-py39", "ubuntu-latest"]
runs-on: ${{ matrix.config[2] }}
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.config[0] }}
- name: Cache Python Packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.cache/pip
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ selenium*
var/
venv/
__pycache__
.tox/
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog
5.0.1 (unreleased)
------------------

- Nothing changed yet.
- Fix live search by using utility instead of former and removed tool. [ksuess]


5.0.0 (2022-10-11)
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ classifiers =
License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __call__(self):
return json.dumps({"total": len(results), "items": items})

def results(self, search_string, index_name):
pkm = api.portal.get_tool("portal_keyword_manager")
pkm = getUtility(IKeywordManager)

num = 100
score = 0.6
Expand Down

0 comments on commit af02cdd

Please sign in to comment.