Show More
@@ -40,7 +40,7 b' from rhodecode.model.db import User' | |||||
40 | log = logging.getLogger(__name__) |
|
40 | log = logging.getLogger(__name__) | |
41 |
|
41 | |||
42 |
|
42 | |||
43 |
def plugin_factory(plugin_id, *args, **kw |
|
43 | def plugin_factory(plugin_id, *args, **kwargs): | |
44 | """ |
|
44 | """ | |
45 | Factory function that is called during plugin discovery. |
|
45 | Factory function that is called during plugin discovery. | |
46 | It returns the plugin instance. |
|
46 | It returns the plugin instance. |
@@ -34,7 +34,7 b' from rhodecode.model.db import User' | |||||
34 | log = logging.getLogger(__name__) |
|
34 | log = logging.getLogger(__name__) | |
35 |
|
35 | |||
36 |
|
36 | |||
37 |
def plugin_factory(plugin_id, *args, **kw |
|
37 | def plugin_factory(plugin_id, *args, **kwargs): | |
38 | """ |
|
38 | """ | |
39 | Factory function that is called during plugin discovery. |
|
39 | Factory function that is called during plugin discovery. | |
40 | It returns the plugin instance. |
|
40 | It returns the plugin instance. |
@@ -42,7 +42,7 b' from rhodecode.model.db import User' | |||||
42 | log = logging.getLogger(__name__) |
|
42 | log = logging.getLogger(__name__) | |
43 |
|
43 | |||
44 |
|
44 | |||
45 |
def plugin_factory(plugin_id, *args, **kw |
|
45 | def plugin_factory(plugin_id, *args, **kwargs): | |
46 | """ |
|
46 | """ | |
47 | Factory function that is called during plugin discovery. |
|
47 | Factory function that is called during plugin discovery. | |
48 | It returns the plugin instance. |
|
48 | It returns the plugin instance. |
@@ -53,7 +53,7 b' class LdapError(Exception):' | |||||
53 | pass |
|
53 | pass | |
54 |
|
54 | |||
55 |
|
55 | |||
56 |
def plugin_factory(plugin_id, *args, **kw |
|
56 | def plugin_factory(plugin_id, *args, **kwargs): | |
57 | """ |
|
57 | """ | |
58 | Factory function that is called during plugin discovery. |
|
58 | Factory function that is called during plugin discovery. | |
59 | It returns the plugin instance. |
|
59 | It returns the plugin instance. |
@@ -40,7 +40,7 b' from rhodecode.lib.colander_utils import' | |||||
40 | log = logging.getLogger(__name__) |
|
40 | log = logging.getLogger(__name__) | |
41 |
|
41 | |||
42 |
|
42 | |||
43 |
def plugin_factory(plugin_id, *args, **kw |
|
43 | def plugin_factory(plugin_id, *args, **kwargs): | |
44 | """ |
|
44 | """ | |
45 | Factory function that is called during plugin discovery. |
|
45 | Factory function that is called during plugin discovery. | |
46 | It returns the plugin instance. |
|
46 | It returns the plugin instance. |
@@ -34,7 +34,7 b' from rhodecode.model.db import User' | |||||
34 | log = logging.getLogger(__name__) |
|
34 | log = logging.getLogger(__name__) | |
35 |
|
35 | |||
36 |
|
36 | |||
37 |
def plugin_factory(plugin_id, *args, **kw |
|
37 | def plugin_factory(plugin_id, *args, **kwargs): | |
38 | plugin = RhodeCodeAuthPlugin(plugin_id) |
|
38 | plugin = RhodeCodeAuthPlugin(plugin_id) | |
39 | return plugin |
|
39 | return plugin | |
40 |
|
40 | |||
@@ -67,6 +67,10 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP' | |||||
67 | def get_display_name(self): |
|
67 | def get_display_name(self): | |
68 | return _('RhodeCode Internal') |
|
68 | return _('RhodeCode Internal') | |
69 |
|
69 | |||
|
70 | @classmethod | |||
|
71 | def docs(cls): | |||
|
72 | return "https://docs.rhodecode.com/RhodeCode-Enterprise/auth/auth.html" | |||
|
73 | ||||
70 | @hybrid_property |
|
74 | @hybrid_property | |
71 | def name(self): |
|
75 | def name(self): | |
72 | return "rhodecode" |
|
76 | return "rhodecode" |
@@ -34,7 +34,7 b' from rhodecode.model.db import User, Use' | |||||
34 | log = logging.getLogger(__name__) |
|
34 | log = logging.getLogger(__name__) | |
35 |
|
35 | |||
36 |
|
36 | |||
37 |
def plugin_factory(plugin_id, *args, **kw |
|
37 | def plugin_factory(plugin_id, *args, **kwargs): | |
38 | plugin = RhodeCodeAuthPlugin(plugin_id) |
|
38 | plugin = RhodeCodeAuthPlugin(plugin_id) | |
39 | return plugin |
|
39 | return plugin | |
40 |
|
40 |
General Comments 0
You need to be logged in to leave comments.
Login now