Show More
@@ -28,7 +28,7 b' from pyramid.renderers import render' | |||||
28 | from pyramid.response import Response |
|
28 | from pyramid.response import Response | |
29 |
|
29 | |||
30 | from rhodecode.apps._base import BaseAppView, DataGridAppView |
|
30 | from rhodecode.apps._base import BaseAppView, DataGridAppView | |
31 | from rhodecode.apps.ssh_support import SshKeyFileChangeEvent |
|
31 | from rhodecode.apps.ssh_support.events import SshKeyFileChangeEvent | |
32 | from rhodecode import events |
|
32 | from rhodecode import events | |
33 |
|
33 | |||
34 | from rhodecode.lib import helpers as h |
|
34 | from rhodecode.lib import helpers as h |
@@ -27,7 +27,7 b' from pyramid.response import Response' | |||||
27 |
|
27 | |||
28 | from rhodecode import events |
|
28 | from rhodecode import events | |
29 | from rhodecode.apps._base import BaseAppView, DataGridAppView, UserAppView |
|
29 | from rhodecode.apps._base import BaseAppView, DataGridAppView, UserAppView | |
30 | from rhodecode.apps.ssh_support import SshKeyFileChangeEvent |
|
30 | from rhodecode.apps.ssh_support.events import SshKeyFileChangeEvent | |
31 | from rhodecode.authentication.base import get_authn_registry, RhodeCodeExternalAuthPlugin |
|
31 | from rhodecode.authentication.base import get_authn_registry, RhodeCodeExternalAuthPlugin | |
32 | from rhodecode.authentication.plugins import auth_rhodecode |
|
32 | from rhodecode.authentication.plugins import auth_rhodecode | |
33 | from rhodecode.events import trigger |
|
33 | from rhodecode.events import trigger |
@@ -21,7 +21,7 b' import logging' | |||||
21 | from pyramid.httpexceptions import HTTPFound |
|
21 | from pyramid.httpexceptions import HTTPFound | |
22 |
|
22 | |||
23 | from rhodecode.apps._base import BaseAppView, DataGridAppView |
|
23 | from rhodecode.apps._base import BaseAppView, DataGridAppView | |
24 | from rhodecode.apps.ssh_support import SshKeyFileChangeEvent |
|
24 | from rhodecode.apps.ssh_support.events import SshKeyFileChangeEvent | |
25 | from rhodecode.events import trigger |
|
25 | from rhodecode.events import trigger | |
26 | from rhodecode.lib import helpers as h |
|
26 | from rhodecode.lib import helpers as h | |
27 | from rhodecode.lib import audit_logger |
|
27 | from rhodecode.lib import audit_logger |
@@ -19,8 +19,6 b'' | |||||
19 | import logging |
|
19 | import logging | |
20 |
|
20 | |||
21 | from . import config_keys |
|
21 | from . import config_keys | |
22 | from .events import SshKeyFileChangeEvent |
|
|||
23 | from .subscribers import generate_ssh_authorized_keys_file_subscriber |
|
|||
24 |
|
22 | |||
25 | from rhodecode.config.settings_maker import SettingsMaker |
|
23 | from rhodecode.config.settings_maker import SettingsMaker | |
26 |
|
24 | |||
@@ -55,5 +53,7 b' def includeme(config):' | |||||
55 |
|
53 | |||
56 | # if we have enable generation of file, subscribe to event |
|
54 | # if we have enable generation of file, subscribe to event | |
57 | if settings[config_keys.generate_authorized_keyfile]: |
|
55 | if settings[config_keys.generate_authorized_keyfile]: | |
|
56 | # lazy import here for faster code reading... via sshwrapper-v2 mode | |||
|
57 | from .subscribers import generate_ssh_authorized_keys_file_subscriber | |||
58 | config.add_subscriber( |
|
58 | config.add_subscriber( | |
59 | generate_ssh_authorized_keys_file_subscriber, SshKeyFileChangeEvent) |
|
59 | generate_ssh_authorized_keys_file_subscriber, SshKeyFileChangeEvent) |
General Comments 0
You need to be logged in to leave comments.
Login now