--- 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)