Back to index

plone3  3.1.7
events.py
Go to the documentation of this file.
00001 from zope.interface import Attribute, Interface
00002 
00003 class IPASEvent(Interface):
00004     """An event related to a PAS principal.
00005     """
00006 
00007     principal = Attribute("The subject of the event.")
00008 
00009 
00010 class IPrincipalCreatedEvent(IPASEvent):
00011     """A new principal has been created.
00012     """
00013 
00014 
00015 class IUserLoggedInEvent(IPASEvent):
00016     """ A user logged in.
00017     """
00018 
00019 
00020 class IUserLoggedOutEvent(IPASEvent):
00021     """ A user logged out.
00022     """
00023 
00024 
00025 class IPrincipalDeletedEvent(IPASEvent):
00026     """A user has been removed.
00027     """
00028 
00029 
00030 class ICredentialsUpdatedEvent(IPASEvent):
00031     """A principal has changed her password.
00032 
00033     Sending this event will cause a PAS user folder to trigger its active
00034     credential update plugins.
00035     """
00036     password = Attribute('The new password')
00037 
00038 
00039 class IPropertiesUpdatedEvent(IPASEvent):
00040     """A principals properties have been updated.
00041     """
00042     properties = Attribute('List of modified property ids')
00043 
00044