src/pyams_security/plugin/social.py
changeset 114 d00688ea8124
parent 72 6dd8bc7bb7b5
child 126 18711a1f3140
--- a/src/pyams_security/plugin/social.py	Wed Mar 28 15:36:10 2018 +0200
+++ b/src/pyams_security/plugin/social.py	Wed Mar 28 16:03:21 2018 +0200
@@ -80,7 +80,7 @@
 
 
 @adapter_config(context=ISocialUser, provides=IPrincipalInfo)
-def SocialUserPrincipalInfoAdapter(user):
+def social_user_principal_info_adapter(user):
     """Social user principal info adapter"""
     return PrincipalInfo(id="{0}:{1}".format(user.__parent__.prefix, user.user_id),
                          title=user.name)
@@ -377,7 +377,7 @@
 
 
 @adapter_config(context=ISecurityManager, provides=ISocialLoginConfiguration)
-def SocialLoginConfigurationAdapter(context):
+def social_login_configuration_adapter(context):
     """Social login configuration adapter"""
     annotations = IAnnotations(context)
     configuration = annotations.get(SOCIAL_LOGIN_CONFIGURATION_KEY)