[Checkins] SVN: PluggableAuthService/branches/z3-events/ The user
events need to know which acl_users is responsible for the
event so we can handle events coming in from another site correctly.
Wichert Akkerman
wichert at wiggy.net
Sun Dec 3 09:02:03 EST 2006
Log message for revision 71385:
The user events need to know which acl_users is responsible for the event so we can handle events coming in from another site correctly.
Changed:
U PluggableAuthService/branches/z3-events/PluggableAuthService.py
U PluggableAuthService/branches/z3-events/events.py
U PluggableAuthService/branches/z3-events/interfaces/events.py
-=-
Modified: PluggableAuthService/branches/z3-events/PluggableAuthService.py
===================================================================
--- PluggableAuthService/branches/z3-events/PluggableAuthService.py 2006-12-03 13:33:40 UTC (rev 71384)
+++ PluggableAuthService/branches/z3-events/PluggableAuthService.py 2006-12-03 14:02:02 UTC (rev 71385)
@@ -955,7 +955,7 @@
)
pass
- event.notify(UserCreated(user.getId(), login))
+ event.notify(UserCreated(self, user.getId(), login))
security.declarePublic('all_meta_types')
@@ -1097,7 +1097,7 @@
updater.updateCredentials(request, response, login, new_password)
# XXX this uses the login name instead of the principal ID!
- event.notify(UserCredentialsUpdated(login, new_password))
+ event.notify(UserCredentialsUpdated(self, login, new_password))
security.declarePublic('logout')
Modified: PluggableAuthService/branches/z3-events/events.py
===================================================================
--- PluggableAuthService/branches/z3-events/events.py 2006-12-03 13:33:40 UTC (rev 71384)
+++ PluggableAuthService/branches/z3-events/events.py 2006-12-03 14:02:02 UTC (rev 71385)
@@ -3,14 +3,16 @@
class PASEvent(object):
implements(IPASEvent)
- def __init__(self, id):
+ def __init__(self, acl_users, id):
+ self.acl_users=acl_users
self.id=id
class UserCreated(PASEvent):
implements(IUserCreated)
- def __init__(self, id, login):
+ def __init__(self, acl_users, id, login):
+ self.acl_users=acl_users
self.id=id
self.login=login
@@ -22,7 +24,8 @@
class UserCredentialsUpdated(PASEvent):
implements(IUserCredentialsUpdated)
- def __init__(self, id, password):
+ def __init__(self, acl_users, id, password):
+ self.acl_users=acl_users
self.id=id
self.password=password
@@ -30,6 +33,7 @@
class UserPropertiesUpdated(PASEvent):
implements(IUserPropertiesUpdated)
- def __init__(self, id, properties):
+ def __init__(self, acl_users, id, properties):
+ self.acl_users=acl_users
self.id=id
self.properties=properties
Modified: PluggableAuthService/branches/z3-events/interfaces/events.py
===================================================================
--- PluggableAuthService/branches/z3-events/interfaces/events.py 2006-12-03 13:33:40 UTC (rev 71384)
+++ PluggableAuthService/branches/z3-events/interfaces/events.py 2006-12-03 14:02:02 UTC (rev 71385)
@@ -5,6 +5,8 @@
"""
id = Attribute('Principal id')
+ acl_users = Attribute(
+ 'The user folder folder on which the operation was mode.')
class IPASUserEvent(IPASEvent):
More information about the Checkins
mailing list