##// END OF EJS Templates
events: fixed missing construcors on user based events.
marcink -
r1422:5294110a default
parent child Browse files
Show More
@@ -25,6 +25,7 b' from rhodecode.lib.vcs.exceptions import'
25 25
26 26 log = logging.getLogger(__name__)
27 27
28
28 29 def _commits_as_dict(commit_ids, repos):
29 30 """
30 31 Helper function to serialize commit_ids
@@ -102,6 +103,7 b' def _issues_as_dict(commits):'
102 103 issues[issue['id']] = issue
103 104 return issues
104 105
106
105 107 class RepoEvent(RhodecodeEvent):
106 108 """
107 109 Base class for events acting on a repository.
@@ -34,6 +34,7 b' class UserRegistered(RhodecodeEvent):'
34 34 display_name = lazy_ugettext('user registered')
35 35
36 36 def __init__(self, user, session):
37 super(UserRegistered, self).__init__()
37 38 self.user = user
38 39 self.session = session
39 40
@@ -48,6 +49,7 b' class UserPreCreate(RhodecodeEvent):'
48 49 display_name = lazy_ugettext('user pre create')
49 50
50 51 def __init__(self, user_data):
52 super(UserPreCreate, self).__init__()
51 53 self.user_data = user_data
52 54
53 55
@@ -61,6 +63,7 b' class UserPostCreate(RhodecodeEvent):'
61 63 display_name = lazy_ugettext('user post create')
62 64
63 65 def __init__(self, user_data):
66 super(UserPostCreate, self).__init__()
64 67 self.user_data = user_data
65 68
66 69
@@ -74,5 +77,6 b' class UserPreUpdate(RhodecodeEvent):'
74 77 display_name = lazy_ugettext('user pre update')
75 78
76 79 def __init__(self, user, user_data):
80 super(UserPreUpdate, self).__init__()
77 81 self.user = user
78 82 self.user_data = user_data
General Comments 0
You need to be logged in to leave comments. Login now