Skip to content

Commit

Permalink
Merge branch 'main' of github.com:collective/collective.solr
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Dec 14, 2024
2 parents cdfec7d + e713cf5 commit 6f7c75e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
3 changes: 1 addition & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Changelog
9.3.1 (unreleased)
------------------

- Nothing changed yet.

- Fix creating a fresh site in Plone 6.1 when registry does not exist yet. Fixes #378 [pbauer]

9.3.0 (2024-02-15)
------------------
Expand Down
3 changes: 2 additions & 1 deletion plone-6.0.x.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[buildout]
extends =
https://dist.plone.org/release/6.0.0/versions.cfg
https://dist.plone.org/release/6.0.9/versions.cfg
base.cfg
versions = versions

Expand All @@ -12,3 +12,4 @@ zodb-temporary-storage = off
black = 21.7b0
importlib-metadata = 4.12.0
Pygments = 2.14.0
readme-renderer = 43.0
10 changes: 5 additions & 5 deletions requirements-6.0.x.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# https://dist.plone.org/release/6.0.0/requirements.txt
pip==22.3.1
setuptools==65.5.1
wheel==0.38.4
# https://dist.plone.org/release/6.0.9/requirements.txt
pip==23.3.1
setuptools==69.0.2
wheel==0.42.0
zc.buildout==3.0.1

# Windows specific down here (has to be installed here, fails in buildout)
# Dependency of zope.sendmail:
pywin32 ; platform_system == 'Windows'

# SSL Certs on windows, because Python is missing them otherwise:
certifi ; platform_system == 'Windows'
certifi ; platform_system == 'Windows'
7 changes: 5 additions & 2 deletions src/collective/solr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from six.moves import range
from unidecode import unidecode
from zope.component import getUtility
from zope.component import queryUtility

if hasattr(str, "maketrans"):
maketrans = str.maketrans
Expand All @@ -22,7 +23,9 @@ def getConfig():
def isActive():
"""indicate if the solr connection should/can be used"""
try:
registry = getUtility(IRegistry)
registry = queryUtility(IRegistry)
if registry is None:
return False
active = registry["collective.solr.active"]
except KeyError:
return False
Expand Down Expand Up @@ -132,7 +135,7 @@ def isSimpleSearch(term):
new_parts.append(parts[i])
else:
new_parts.append("quoted")
term = u"".join(new_parts)
term = "".join(new_parts)
if bool(operators.match(term)):
return False
if bool(simpleCharacters.match(term)):
Expand Down

0 comments on commit 6f7c75e

Please sign in to comment.