Show More
@@ -226,6 +226,15 b' class RhodeCodeAuthPluginBase(object):' | |||||
226 | """ |
|
226 | """ | |
227 | raise NotImplementedError("Not implemented in base class") |
|
227 | raise NotImplementedError("Not implemented in base class") | |
228 |
|
228 | |||
|
229 | def get_url_slug(self): | |||
|
230 | """ | |||
|
231 | Returns a slug which should be used when constructing URLs which refer | |||
|
232 | to this plugin. By default it returns the plugin name. If the name is | |||
|
233 | not suitable for using it in an URL the plugin should override this | |||
|
234 | method. | |||
|
235 | """ | |||
|
236 | return self.name | |||
|
237 | ||||
229 | @property |
|
238 | @property | |
230 | def is_headers_auth(self): |
|
239 | def is_headers_auth(self): | |
231 | """ |
|
240 | """ |
@@ -45,7 +45,7 b' class AuthnPluginResourceBase(AuthnResou' | |||||
45 |
|
45 | |||
46 | def __init__(self, plugin): |
|
46 | def __init__(self, plugin): | |
47 | self.plugin = plugin |
|
47 | self.plugin = plugin | |
48 |
self.__name__ = plugin. |
|
48 | self.__name__ = plugin.get_url_slug() | |
49 | self.display_name = plugin.get_display_name() |
|
49 | self.display_name = plugin.get_display_name() | |
50 |
|
50 | |||
51 |
|
51 |
General Comments 0
You need to be logged in to leave comments.
Login now