diff --git a/setup.py b/setup.py index e126c89..ecb885a 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ def read(*rnames): 'zope.component', 'zope.configuration', 'zope.i18nmessageid', - 'zope.interface', + 'zope.interface >= 3.8', 'zope.location', 'zope.schema', 'zope.security', diff --git a/src/zope/securitypolicy/role.py b/src/zope/securitypolicy/role.py index a71f0bc..8eb5798 100644 --- a/src/zope/securitypolicy/role.py +++ b/src/zope/securitypolicy/role.py @@ -59,8 +59,8 @@ def setIdOnActivation(role, event): >>> role1 = LocalRole('Role 1', 'A first role') >>> role1.id u'' - >>> import zope.component.interfaces - >>> event = zope.component.interfaces.Registered( + >>> import zope.interface.interfaces + >>> event = zope.interface.interfaces.Registered( ... Registration(role1, 'role1')) Now we pass the event into this function, and the id of the role should be @@ -87,8 +87,8 @@ def unsetIdOnDeactivation(role, event): >>> role1 = LocalRole('Role 1', 'A first role') >>> role1.id = 'role1' - >>> import zope.component.interfaces - >>> event = zope.component.interfaces.Unregistered( + >>> import zope.interface.interfaces + >>> event = zope.interface.interfaces.Unregistered( ... Registration(role1, 'role1')) Now we pass the event into this function, and the id of the role should be