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