[Zope3-checkins] CVS: Zope3/src/zope/app/security/registries - principalregistry.py:1.4
Jeremy Hylton
jeremy@zope.com
Tue, 31 Dec 2002 13:39:08 -0500
Update of /cvs-repository/Zope3/src/zope/app/security/registries
In directory cvs.zope.org:/tmp/cvs-serv20599/zope/app/security/registries
Modified Files:
principalregistry.py
Log Message:
Revise some imports. Whitespace normalization.
=== Zope3/src/zope/app/security/registries/principalregistry.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/security/registries/principalregistry.py:1.3 Fri Dec 27 20:37:13 2002
+++ Zope3/src/zope/app/security/registries/principalregistry.py Tue Dec 31 13:39:07 2002
@@ -20,10 +20,8 @@
from zope.exceptions import NotFoundError
from zope.app.interfaces.security import ILoginPassword
from zope.component import getAdapter, queryAdapter
-from zope.app.interfaces.security import IAuthenticationService
-from zope.app.interfaces.security import IPrincipal
from zope.app.interfaces.security \
- import IUnauthenticatedPrincipal
+ import IAuthenticationService, IPrincipal, IUnauthenticatedPrincipal
class DuplicateLogin(Exception): pass
class DuplicateId(Exception): pass
@@ -89,7 +87,7 @@
# Management methods
def __init__(self):
- self.__principalsById={}
+ self.__principalsById = {}
self.__principalsByLogin = {}
def definePrincipal(self, principal, title, description='',