[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/pas/principalplugins.py Changed the factory to create group-aware principals to begin with.

Jim Fulton jim at zope.com
Mon Nov 1 14:03:53 EST 2004


Log message for revision 28309:
  Changed the factory to create group-aware principals to begin with.
  

Changed:
  U   Zope3/trunk/src/zope/app/pas/principalplugins.py

-=-
Modified: Zope3/trunk/src/zope/app/pas/principalplugins.py
===================================================================
--- Zope3/trunk/src/zope/app/pas/principalplugins.py	2004-11-01 19:02:08 UTC (rev 28308)
+++ Zope3/trunk/src/zope/app/pas/principalplugins.py	2004-11-01 19:03:52 UTC (rev 28309)
@@ -20,7 +20,7 @@
 from zope.event import notify
 from zope.interface import implements
 
-from zope.app.security.interfaces import IPrincipal
+from zope.security.interfaces import IGroupAwarePrincipal
 
 from zope.app.pas import interfaces
 
@@ -39,12 +39,13 @@
     >>> p.id
     'foo'
     """
-    implements(IPrincipal)
+    implements(IGroupAwarePrincipal)
 
     title = description = u''
     
     def __init__(self, id):
         self.id = id
+        self.groups = []
 
     def __repr__(self):
         return 'Principal(%r)' %self.id



More information about the Zope3-Checkins mailing list