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