[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - ISecurityContext.py:1.1.2.3 IZope3RoleManageable.py:1.1.2.2 Registry.py:1.1.2.4
Jim Fulton
jim@zope.com
Tue, 5 Mar 2002 16:43:21 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv2132/Zope/App/Security
Modified Files:
Tag: Zope-3x-branch
ISecurityContext.py IZope3RoleManageable.py Registry.py
Log Message:
Hold on to your butts!
Major refactoring of Interface package to clean up the interfaces and
module structure.
Note especially, to verify interface implementstions,
use verifyObject or verifyClass from the Interface.Verify module:
from Interface.Verify import verifyClass
verifyClass(ISomeInterface, SomeClass)
=== Zope3/lib/python/Zope/App/Security/ISecurityContext.py 1.1.2.2 => 1.1.2.3 ===
# FOR A PARTICULAR PURPOSE.
-from Interface import Interface, Attribute
+from Interface import Interface
+from Interface.Attribute import Attribute
class ISecurityContext( Interface ):
"""
=== Zope3/lib/python/Zope/App/Security/IZope3RoleManageable.py 1.1.2.1 => 1.1.2.2 ===
# FOR A PARTICULAR PURPOSE.
-from Interface import Interface, Attribute
+from Interface import Interface
+from Interface.Attribute import Attribute
SPECIAL_ATTRIBUTE_NAME = '__zope3_role_permission_bindings__'
=== Zope3/lib/python/Zope/App/Security/Registry.py 1.1.2.3 => 1.1.2.4 ===
"""Generic registry of ids to objects."""
-from Interface.verify import verify
+from Interface.Verify import verifyClass
from Zope.App.Security.IRegisteredObject import IRegisteredObject
from Zope.Exceptions import ZopeError
@@ -27,7 +27,7 @@
class_ is the class of the thing that we're going to instantiate.
"""
- assert verify(IRegisteredObject, class_)
+ assert verifyClass(IRegisteredObject, class_)
self._class = class_
self._clear()