Skip to content

Commit

Permalink
cleanup: drop LinguaPlone references
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 7, 2023
1 parent 4b8c7bd commit a484423
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions plone/app/intid/setuphandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@
logger = logging.getLogger(__name__)


try:
# XXX here we must consider plone.app.multilingual as well!
import Products.LinguaPlone

Products.LinguaPlone
HAS_LINGUAPLONE = True
except ImportError:
HAS_LINGUAPLONE = False


def register_all_content_for_intids(portal):
"""Registers all existing content with the intid utility.
This will not be fast."""
Expand All @@ -35,8 +25,6 @@ def register_all_content_for_intids(portal):
registered = 0
existing = 0
query = {"object_provides": IContentish.__identifier__}
if HAS_LINGUAPLONE:
query["Language"] = "all"
for brain in cat(query):
if brain.getPath() in registered_paths:
existing += 1
Expand Down

0 comments on commit a484423

Please sign in to comment.