Skip to content

Commit

Permalink
Remove dependency on zope.site.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Apr 24, 2017
1 parent 913d75c commit 9d7de45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ New features:

Bug fixes:

- Remove dependency on ``zope.site``.
[thet]

- Code cleanup.
[thet]

Expand Down
4 changes: 2 additions & 2 deletions plone/app/users/vocabularies.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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


# Define constants from the Join schema that should be added to the
Expand Down Expand Up @@ -70,7 +70,7 @@ class GroupIdVocabulary(object):
>>> from zope.component import queryUtility
>>> from zope.schema.interfaces import IVocabularyFactory
>>> from zope.site.hooks import getSite
>>> from zope.component.hooks import getSite
>>> from Products.CMFCore.utils import getToolByName
>>> groups_tool = getToolByName(getSite(), 'portal_groups')
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
'zope.event',
'zope.interface',
'zope.schema',
'zope.site',
],
entry_points="""
[z3c.autoinclude.plugin]
Expand Down

0 comments on commit 9d7de45

Please sign in to comment.