events: fixed missing construcors on user based events.
This commit is contained in:
parent
5c2c266ee9
commit
5117356811
2 changed files with 6 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ from rhodecode.lib.vcs.exceptions import CommitDoesNotExistError
|
|||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def _commits_as_dict(commit_ids, repos):
|
||||
"""
|
||||
Helper function to serialize commit_ids
|
||||
|
|
@ -102,6 +103,7 @@ def _issues_as_dict(commits):
|
|||
issues[issue['id']] = issue
|
||||
return issues
|
||||
|
||||
|
||||
class RepoEvent(RhodecodeEvent):
|
||||
"""
|
||||
Base class for events acting on a repository.
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ class UserRegistered(RhodecodeEvent):
|
|||
display_name = lazy_ugettext('user registered')
|
||||
|
||||
def __init__(self, user, session):
|
||||
super(UserRegistered, self).__init__()
|
||||
self.user = user
|
||||
self.session = session
|
||||
|
||||
|
|
@ -48,6 +49,7 @@ class UserPreCreate(RhodecodeEvent):
|
|||
display_name = lazy_ugettext('user pre create')
|
||||
|
||||
def __init__(self, user_data):
|
||||
super(UserPreCreate, self).__init__()
|
||||
self.user_data = user_data
|
||||
|
||||
|
||||
|
|
@ -61,6 +63,7 @@ class UserPostCreate(RhodecodeEvent):
|
|||
display_name = lazy_ugettext('user post create')
|
||||
|
||||
def __init__(self, user_data):
|
||||
super(UserPostCreate, self).__init__()
|
||||
self.user_data = user_data
|
||||
|
||||
|
||||
|
|
@ -74,5 +77,6 @@ class UserPreUpdate(RhodecodeEvent):
|
|||
display_name = lazy_ugettext('user pre update')
|
||||
|
||||
def __init__(self, user, user_data):
|
||||
super(UserPreUpdate, self).__init__()
|
||||
self.user = user
|
||||
self.user_data = user_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue