Skip to content

Commit

Permalink
Replace deprecated zope.site.hooks import with zope.component.hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Feb 23, 2016
1 parent 1d90faf commit 3b031f6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ New:

Fixes:

- Replace deprecated ``zope.site.hooks`` import with ``zope.component.hooks``.
[thet]

- Fix tinymce pattern-options merging to be compatible with change in
p.a.widgets and p.a.z3cform.
[alecm]
Expand Down
4 changes: 1 addition & 3 deletions Products/Archetypes/fieldproperty.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"""

from DateTime import DateTime
from datetime import datetime
from zope.component.hooks import getSite
from zope.datetime import parseDatetimetz

from zope.site.hooks import getSite


class ATFieldProperty(object):
"""Field properties based on Archetypes schema
Expand Down
2 changes: 1 addition & 1 deletion Products/Archetypes/tests/traversal.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ We need to do some site magic, or our we end up with the SimpleView class
being persisted in the local component registry. We really shouldn't do
ZCML registrations in function tests.

>>> from zope.site.hooks import getSite, setSite
>>> from zope.component.hooks import getSite, setSite
>>> site = getSite()

>>> setSite(None)
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
'zope.lifecycleevent',
'zope.publisher',
'zope.schema',
'zope.site',
'zope.tal',
'zope.viewlet',
'Products.CMFCore',
Expand Down

0 comments on commit 3b031f6

Please sign in to comment.