Show More
@@ -16,8 +16,11 b'' | |||||
16 | # RhodeCode Enterprise Edition, including its added features, Support services, |
|
16 | # RhodeCode Enterprise Edition, including its added features, Support services, | |
17 | # and proprietary license terms, please see https://rhodecode.com/licenses/ |
|
17 | # and proprietary license terms, please see https://rhodecode.com/licenses/ | |
18 |
|
18 | |||
|
19 | import logging | |||
19 | from pyramid.threadlocal import get_current_registry |
|
20 | from pyramid.threadlocal import get_current_registry | |
20 |
|
21 | |||
|
22 | log = logging.getLogger() | |||
|
23 | ||||
21 |
|
24 | |||
22 | def trigger(event, registry=None): |
|
25 | def trigger(event, registry=None): | |
23 | """ |
|
26 | """ | |
@@ -29,6 +32,7 b' def trigger(event, registry=None):' | |||||
29 | # passing the registry as an argument to get rid of it. |
|
32 | # passing the registry as an argument to get rid of it. | |
30 | registry = registry or get_current_registry() |
|
33 | registry = registry or get_current_registry() | |
31 | registry.notify(event) |
|
34 | registry.notify(event) | |
|
35 | log.debug('event %s triggered', event) | |||
32 |
|
36 | |||
33 | # Until we can work around the problem that VCS operations do not have a |
|
37 | # Until we can work around the problem that VCS operations do not have a | |
34 | # pyramid context to work with, we send the events to integrations directly |
|
38 | # pyramid context to work with, we send the events to integrations directly |
@@ -146,7 +146,6 b' class SlackIntegrationType(IntegrationTy' | |||||
146 | widget='checkbox_list', |
|
146 | widget='checkbox_list', | |
147 | choices=sorted([e.name for e in cls.valid_events]), |
|
147 | choices=sorted([e.name for e in cls.valid_events]), | |
148 | description="Events activated for this integration", |
|
148 | description="Events activated for this integration", | |
149 | # default=[e.name for e in cls.valid_events], |
|
|||
150 | name='events' |
|
149 | name='events' | |
151 | )) |
|
150 | )) | |
152 | return schema |
|
151 | return schema |
General Comments 0
You need to be logged in to leave comments.
Login now