[Zope3-checkins] CVS: Zope3/src/zope/app/security/registries - principalregistry.py:1.3
R. David Murray
bitz@bitdance.com
Fri, 27 Dec 2002 20:37:13 -0500
Update of /cvs-repository/Zope3/src/zope/app/security/registries
In directory cvs.zope.org:/tmp/cvs-serv31513
Modified Files:
principalregistry.py
Log Message:
Add a getRoles method to PrincipalBase that just returns an empty list,
to bring it into conformance with the modified IPrincipal interface.
=== Zope3/src/zope/app/security/registries/principalregistry.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/registries/principalregistry.py:1.2 Wed Dec 25 09:13:17 2002
+++ Zope3/src/zope/app/security/registries/principalregistry.py Fri Dec 27 20:37:13 2002
@@ -134,6 +134,10 @@
def getDescription(self):
return self.__description
+ def getRoles(self):
+ return ()
+
+
class Principal(PrincipalBase):
__implements__ = IPrincipal