##// END OF EJS Templates
auth-plugins: some code cleanup + added docs for main plugin.
marcink -
r3253:8e57492d default
parent child Browse files
Show More
@@ -40,7 +40,7 b' from rhodecode.model.db import User'
40 40 log = logging.getLogger(__name__)
41 41
42 42
43 def plugin_factory(plugin_id, *args, **kwds):
43 def plugin_factory(plugin_id, *args, **kwargs):
44 44 """
45 45 Factory function that is called during plugin discovery.
46 46 It returns the plugin instance.
@@ -34,7 +34,7 b' from rhodecode.model.db import User'
34 34 log = logging.getLogger(__name__)
35 35
36 36
37 def plugin_factory(plugin_id, *args, **kwds):
37 def plugin_factory(plugin_id, *args, **kwargs):
38 38 """
39 39 Factory function that is called during plugin discovery.
40 40 It returns the plugin instance.
@@ -42,7 +42,7 b' from rhodecode.model.db import User'
42 42 log = logging.getLogger(__name__)
43 43
44 44
45 def plugin_factory(plugin_id, *args, **kwds):
45 def plugin_factory(plugin_id, *args, **kwargs):
46 46 """
47 47 Factory function that is called during plugin discovery.
48 48 It returns the plugin instance.
@@ -53,7 +53,7 b' class LdapError(Exception):'
53 53 pass
54 54
55 55
56 def plugin_factory(plugin_id, *args, **kwds):
56 def plugin_factory(plugin_id, *args, **kwargs):
57 57 """
58 58 Factory function that is called during plugin discovery.
59 59 It returns the plugin instance.
@@ -40,7 +40,7 b' from rhodecode.lib.colander_utils import'
40 40 log = logging.getLogger(__name__)
41 41
42 42
43 def plugin_factory(plugin_id, *args, **kwds):
43 def plugin_factory(plugin_id, *args, **kwargs):
44 44 """
45 45 Factory function that is called during plugin discovery.
46 46 It returns the plugin instance.
@@ -34,7 +34,7 b' from rhodecode.model.db import User'
34 34 log = logging.getLogger(__name__)
35 35
36 36
37 def plugin_factory(plugin_id, *args, **kwds):
37 def plugin_factory(plugin_id, *args, **kwargs):
38 38 plugin = RhodeCodeAuthPlugin(plugin_id)
39 39 return plugin
40 40
@@ -67,6 +67,10 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP'
67 67 def get_display_name(self):
68 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 74 @hybrid_property
71 75 def name(self):
72 76 return "rhodecode"
@@ -34,7 +34,7 b' from rhodecode.model.db import User, Use'
34 34 log = logging.getLogger(__name__)
35 35
36 36
37 def plugin_factory(plugin_id, *args, **kwds):
37 def plugin_factory(plugin_id, *args, **kwargs):
38 38 plugin = RhodeCodeAuthPlugin(plugin_id)
39 39 return plugin
40 40
General Comments 0
You need to be logged in to leave comments. Login now