Projet

Général

Profil

0004-authentic2_idp_cas-rely-on-get_plugins-for-beeing-di.patch

Emmanuel Cazenave, 09 septembre 2020 15:20

Télécharger (1,15 ko)

Voir les différences:

Subject: [PATCH 4/6] authentic2_idp_cas: rely on get_plugins for beeing
 discovered (#46474)

 src/authentic2_idp_cas/apps.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
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
-