Show More
@@ -0,0 +1,14 b'' | |||||
|
1 | ||||
|
2 | from zope.interface import implementer | |||
|
3 | from rhodecode.interfaces import IUserRegistered | |||
|
4 | ||||
|
5 | ||||
|
6 | @implementer(IUserRegistered) | |||
|
7 | class UserRegistered(object): | |||
|
8 | """ | |||
|
9 | An instance of this class is emitted as an :term:`event` whenever a user | |||
|
10 | account is registered. | |||
|
11 | """ | |||
|
12 | def __init__(self, user, session): | |||
|
13 | self.user = user | |||
|
14 | self.session = session |
@@ -0,0 +1,11 b'' | |||||
|
1 | ||||
|
2 | from zope.interface import Attribute, Interface | |||
|
3 | ||||
|
4 | ||||
|
5 | class IUserRegistered(Interface): | |||
|
6 | """ | |||
|
7 | An event type that is emitted whenever a new user registers a user | |||
|
8 | account. | |||
|
9 | """ | |||
|
10 | user = Attribute('The user object.') | |||
|
11 | session = Attribute('The session while processing the register form post.') |
General Comments 0
You need to be logged in to leave comments.
Login now