0004-authentic2_idp_cas-rely-on-get_plugins-for-beeing-di.patch
src/authentic2_idp_cas/apps.py | ||
---|---|---|
20 | 20 |
from .constants import SESSION_CAS_LOGOUTS |
21 | 21 | |
22 | 22 | |
23 |
class AppConfig(django.apps.AppConfig): |
|
24 |
name = 'authentic2_idp_cas' |
|
23 |
class Plugin(object): |
|
25 | 24 | |
26 | 25 |
def logout_list(self, request): |
27 | 26 |
fragments = [] |
... | ... | |
36 | 35 |
content = render_to_string('authentic2_idp_cas/logout_fragment.html', ctx) |
37 | 36 |
fragments.append(content) |
38 | 37 |
return fragments |
38 | ||
39 | ||
40 |
class AppConfig(django.apps.AppConfig): |
|
41 |
name = 'authentic2_idp_cas' |
|
42 | ||
43 |
def get_a2_plugin(self): |
|
44 |
return Plugin() |
|
39 |
- |