Created
February 5, 2013 02:25
-
-
Save binarymatt/4711598 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AccountEvent(object): | |
def __init__(self, request, user): | |
self.user = user | |
self.request = request | |
class SignupEvent(AccountEvent): | |
pass | |
class LoginEvent(AccountEvent): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@subscriber(LoginEvent) | |
def login_complete(event): | |
logger.debug(event.user.email) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment