Back to index

plone3  3.1.7
Classes | Functions
PluggableAuthService.events Namespace Reference

Classes

class  PASEvent
class  PrincipalCreated
class  PrincipalDeleted
class  CredentialsUpdated
class  PropertiesUpdated

Functions

def userCredentialsUpdatedHandler
def PASEventNotify

Function Documentation

Event subscriber to dispatch PASEvent to interested adapters.

Definition at line 52 of file events.py.

00052 
00053 def PASEventNotify(event):
00054     """Event subscriber to dispatch PASEvent to interested adapters."""
00055     adapters = subscribers((event.principal, event), None)
00056     for adapter in adapters:
00057         pass # getting them does the work
00058 

Definition at line 41 of file events.py.

00041 
00042 def userCredentialsUpdatedHandler(principal, event):
00043     pas = aq_parent(principal)
00044     pas.updateCredentials(
00045             pas,
00046             pas.REQUEST,
00047             pas.REQUEST.RESPONSE,
00048             principal.getId(),
00049             event.password)
00050 
00051 
@adapter(IPASEvent)