[Zope3-checkins] CVS: Zope3/src/zope/app/security/registries - permissionregistry.py:1.5 principalregistry.py:1.9 registeredobject.py:1.3 roleregistry.py:1.5
Steve Alexander
steve@cat-box.net
Sat, 7 Jun 2003 01:46:36 -0400
Update of /cvs-repository/Zope3/src/zope/app/security/registries
In directory cvs.zope.org:/tmp/cvs-serv29577/src/zope/app/security/registries
Modified Files:
permissionregistry.py principalregistry.py registeredobject.py
roleregistry.py
Log Message:
more new-style implements declarations
=== Zope3/src/zope/app/security/registries/permissionregistry.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/security/registries/permissionregistry.py:1.4 Tue Mar 11 11:11:17 2003
+++ Zope3/src/zope/app/security/registries/permissionregistry.py Sat Jun 7 01:46:05 2003
@@ -24,15 +24,15 @@
from zope.security.checker import CheckerPublic
from zope.app.security.exceptions import UndefinedPermissionError
from zope.app.interfaces.services.service import ISimpleService
-
+from zope.interface import implements
class Permission(RegisteredObject):
- __implements__ = IPermission
+ implements(IPermission)
class PermissionRegistry(Registry):
- __implements__ = IPermissionService, ISimpleService
+ implements(IPermissionService, ISimpleService)
def __init__(self, prefix=PREFIX):
Registry.__init__(self, Permission)
=== Zope3/src/zope/app/security/registries/principalregistry.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/security/registries/principalregistry.py:1.8 Mon Jun 2 12:55:48 2003
+++ Zope3/src/zope/app/security/registries/principalregistry.py Sat Jun 7 01:46:05 2003
@@ -23,13 +23,14 @@
from zope.app.interfaces.security import IAuthenticationService, IPrincipal
from zope.app.interfaces.security import IUnauthenticatedPrincipal
from zope.app.interfaces.services.service import ISimpleService
+from zope.interface import implements
class DuplicateLogin(Exception): pass
class DuplicateId(Exception): pass
class PrincipalRegistry:
- __implements__ = IAuthenticationService, ISimpleService
+ implements(IAuthenticationService, ISimpleService)
# Methods implementing IAuthenticationService
@@ -136,7 +137,7 @@
class Principal(PrincipalBase):
- __implements__ = IPrincipal
+ implements(IPrincipal)
def __init__(self, id, title, description, login, pw):
super(Principal, self).__init__(id, title, description)
@@ -152,4 +153,4 @@
class UnauthenticatedPrincipal(PrincipalBase):
- __implements__ = IUnauthenticatedPrincipal
+ implements(IUnauthenticatedPrincipal)
=== Zope3/src/zope/app/security/registries/registeredobject.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/registries/registeredobject.py:1.2 Wed Dec 25 09:13:17 2002
+++ Zope3/src/zope/app/security/registries/registeredobject.py Sat Jun 7 01:46:05 2003
@@ -14,9 +14,10 @@
"""An implementation of things that can be registered in a Registry."""
from zope.app.interfaces.security import IRegisteredObject
+from zope.interface import implements
class RegisteredObject(object):
- __implements__ = IRegisteredObject
+ implements(IRegisteredObject)
def __init__(self, id, title, description):
self._id = id
=== Zope3/src/zope/app/security/registries/roleregistry.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/security/registries/roleregistry.py:1.4 Tue Mar 11 11:11:17 2003
+++ Zope3/src/zope/app/security/registries/roleregistry.py Sat Jun 7 01:46:05 2003
@@ -20,13 +20,14 @@
from zope.app.interfaces.security import IRole
from zope.app.interfaces.security import IRoleService
from zope.app.interfaces.services.service import ISimpleService
+from zope.interface import implements
class Role(RegisteredObject):
- __implements__ = IRole
+ implements(IRole)
class RoleRegistry(Registry):
- __implements__ = IRoleService, ISimpleService
+ implements(IRoleService, ISimpleService)
def __init__(self, prefix=PREFIX):
Registry.__init__(self, Role)