[Checkins]
SVN: PluggableAuthService/branches/seattle-sprint/interfaces/authservice.py
Add an ISiteUser interface
Wichert Akkerman
wichert at wiggy.net
Sun Oct 29 15:10:15 EST 2006
Log message for revision 70974:
Add an ISiteUser interface
Changed:
U PluggableAuthService/branches/seattle-sprint/interfaces/authservice.py
-=-
Modified: PluggableAuthService/branches/seattle-sprint/interfaces/authservice.py
===================================================================
--- PluggableAuthService/branches/seattle-sprint/interfaces/authservice.py 2006-10-29 13:24:36 UTC (rev 70973)
+++ PluggableAuthService/branches/seattle-sprint/interfaces/authservice.py 2006-10-29 20:10:14 UTC (rev 70974)
@@ -109,6 +109,25 @@
"""
+class ISiteUser( IPropertiedUser ):
+ """ A user as commonly used in sites.
+ """
+
+ def getProperty( id ):
+ """ Return a property with a given id.
+
+ This searches the property sheets for the user and returns the
+ property from the first sheets which has the property.
+ """
+
+ def setProperties( **kw ):
+ """ Set properties on a user.
+
+ This updates one or more properties on a user. Each property is
+ set on the first property sheet which has the property.
+ """
+
+
class IUserFolder( Interface ):
""" Specify the interface called out in AccessControl.User.BasicUserFolder
More information about the Checkins
mailing list