[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/security Updated to use new event types.

Jim Fulton jim at zope.com
Sat Apr 22 15:05:32 EDT 2006


Log message for revision 67277:
  Updated to use new event types.
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/security/permission.py
  U   Zope3/branches/jim-adapter/src/zope/app/securitypolicy/role.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/security/permission.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/security/permission.py	2006-04-22 18:53:25 UTC (rev 67276)
+++ Zope3/branches/jim-adapter/src/zope/app/security/permission.py	2006-04-22 19:05:32 UTC (rev 67277)
@@ -87,8 +87,8 @@
     >>> perm1 = LocalPermission('Permission 1', 'A first permission')
     >>> perm1.id = 'perm1'
 
-    >>> from zope.app.component import registration 
-    >>> event = registration.RegistrationDeactivatedEvent(
+    >>> import zope.component.interfaces 
+    >>> event = zope.component.interfaces.Unregistered(
     ...     Registration(perm1, 'perm1'))
 
     Now we pass the event into this function, and the id of the permission

Modified: Zope3/branches/jim-adapter/src/zope/app/securitypolicy/role.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/securitypolicy/role.py	2006-04-22 18:53:25 UTC (rev 67276)
+++ Zope3/branches/jim-adapter/src/zope/app/securitypolicy/role.py	2006-04-22 19:05:32 UTC (rev 67277)
@@ -56,8 +56,8 @@
     >>> role1 = LocalRole('Role 1', 'A first role')
     >>> role1.id
     u'<role not activated>'
-    >>> from zope.app.component import registration 
-    >>> event = registration.RegistrationActivatedEvent(
+    >>> import zope.component.interfaces
+    >>> event = zope.component.interfaces.Registered(
     ...     Registration(role1, 'role1'))
 
     Now we pass the event into this function, and the id of the role should be
@@ -84,8 +84,8 @@
     >>> role1 = LocalRole('Role 1', 'A first role')
     >>> role1.id = 'role1'
 
-    >>> from zope.app.component import registration 
-    >>> event = registration.RegistrationDeactivatedEvent(
+    >>> import zope.component.interfaces
+    >>> event = zope.component.interfaces.Unregistered(
     ...     Registration(role1, 'role1'))
 
     Now we pass the event into this function, and the id of the role should be



More information about the Zope3-Checkins mailing list