Show More
@@ -30,8 +30,12 b' from rhodecode.authentication.routes imp' | |||
|
30 | 30 | from rhodecode.config.routing import ADMIN_PREFIX |
|
31 | 31 | from rhodecode.model.settings import SettingsModel |
|
32 | 32 | |
|
33 | ||
|
33 | 34 | log = logging.getLogger(__name__) |
|
34 | 35 | |
|
36 | # Legacy plugins are stored with this prefix in 'auth_plugins'. | |
|
37 | legacy_plugin_prefix = 'py:' | |
|
38 | ||
|
35 | 39 | |
|
36 | 40 | # TODO: Currently this is only used to discover the authentication plugins. |
|
37 | 41 | # Later on this may be used in a generic way to look up and include all kinds |
@@ -52,7 +56,7 b' def _discover_plugins(config, entry_poin' | |||
|
52 | 56 | return _discovered_plugins |
|
53 | 57 | |
|
54 | 58 | |
|
55 |
def _discover_legacy_plugins(config, prefix= |
|
|
59 | def _discover_legacy_plugins(config, prefix=legacy_plugin_prefix): | |
|
56 | 60 | """ |
|
57 | 61 | Function that imports the legacy plugins stored in the 'auth_plugins' |
|
58 | 62 | setting in database which are using the specified prefix. Normally 'py:' is |
General Comments 0
You need to be logged in to leave comments.
Login now