##// END OF EJS Templates
event: Add UserRegistered event class.
event: Add UserRegistered event class.

File last commit:

r42:d009f1dc default
r42:d009f1dc default
Show More
events.py
14 lines | 366 B | text/x-python | PythonLexer
from zope.interface import implementer
from rhodecode.interfaces import IUserRegistered
@implementer(IUserRegistered)
class UserRegistered(object):
"""
An instance of this class is emitted as an :term:`event` whenever a user
account is registered.
"""
def __init__(self, user, session):
self.user = user
self.session = session