Skip to content

Commit

Permalink
Fixed deprecation warning for zope.site.hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Sep 3, 2020
1 parent c2cbc42 commit e9d2346
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions news/3130.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed deprecation warning for zope.site.hooks.
2 changes: 1 addition & 1 deletion plone/app/vocabularies/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleTerm
from zope.schema.vocabulary import SimpleVocabulary
from zope.site.hooks import getSite
from zope.component.hooks import getSite

import itertools
import os
Expand Down
2 changes: 1 addition & 1 deletion plone/app/vocabularies/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleTerm
from zope.schema.vocabulary import SimpleVocabulary
from zope.site.hooks import getSite
from zope.component.hooks import getSite


@implementer(IVocabularyFactory)
Expand Down
2 changes: 1 addition & 1 deletion plone/app/vocabularies/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleTerm
from zope.schema.vocabulary import SimpleVocabulary
from zope.site.hooks import getSite
from zope.component.hooks import getSite

import zope.deferredimport

Expand Down
2 changes: 1 addition & 1 deletion plone/app/vocabularies/skins.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleTerm
from zope.schema.vocabulary import SimpleVocabulary
from zope.site.hooks import getSite
from zope.component.hooks import getSite


_ = MessageFactory('plone')
Expand Down
2 changes: 1 addition & 1 deletion plone/app/vocabularies/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from plone.app.layout.navigation.interfaces import INavigationRoot
from Products.ZCTextIndex.ParseTree import ParseError
from zope.interface import implementer
from zope.site.hooks import setSite
from zope.component.hooks import setSite


def create_context():
Expand Down
2 changes: 1 addition & 1 deletion plone/app/vocabularies/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleTerm
from zope.schema.vocabulary import SimpleVocabulary
from zope.site.hooks import getSite
from zope.component.hooks import getSite


def getAllowedContentTypes(context):
Expand Down
2 changes: 1 addition & 1 deletion plone/app/vocabularies/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleTerm
from zope.schema.vocabulary import SimpleVocabulary
from zope.site.hooks import getSite
from zope.component.hooks import getSite


_ = MessageFactory('plone')
Expand Down

0 comments on commit e9d2346

Please sign in to comment.