Show More
@@ -28,7 +28,7 b' from pyramid.renderers import render' | |||
|
28 | 28 | from pyramid.response import Response |
|
29 | 29 | |
|
30 | 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 | 32 | from rhodecode import events |
|
33 | 33 | |
|
34 | 34 | from rhodecode.lib import helpers as h |
@@ -27,7 +27,7 b' from pyramid.response import Response' | |||
|
27 | 27 | |
|
28 | 28 | from rhodecode import events |
|
29 | 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 | 31 | from rhodecode.authentication.base import get_authn_registry, RhodeCodeExternalAuthPlugin |
|
32 | 32 | from rhodecode.authentication.plugins import auth_rhodecode |
|
33 | 33 | from rhodecode.events import trigger |
@@ -21,7 +21,7 b' import logging' | |||
|
21 | 21 | from pyramid.httpexceptions import HTTPFound |
|
22 | 22 | |
|
23 | 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 | 25 | from rhodecode.events import trigger |
|
26 | 26 | from rhodecode.lib import helpers as h |
|
27 | 27 | from rhodecode.lib import audit_logger |
@@ -19,8 +19,6 b'' | |||
|
19 | 19 | import logging |
|
20 | 20 | |
|
21 | 21 | from . import config_keys |
|
22 | from .events import SshKeyFileChangeEvent | |
|
23 | from .subscribers import generate_ssh_authorized_keys_file_subscriber | |
|
24 | 22 | |
|
25 | 23 | from rhodecode.config.settings_maker import SettingsMaker |
|
26 | 24 | |
@@ -55,5 +53,7 b' def includeme(config):' | |||
|
55 | 53 | |
|
56 | 54 | # if we have enable generation of file, subscribe to event |
|
57 | 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 | 58 | config.add_subscriber( |
|
59 | 59 | generate_ssh_authorized_keys_file_subscriber, SshKeyFileChangeEvent) |
General Comments 0
You need to be logged in to leave comments.
Login now