Changed vocabulary provider
authorThierry Florac <thierry.florac@onf.fr>
Tue, 30 Jun 2015 15:03:07 +0200
changeset 46 58599ce9e36e
parent 45 4d5db00d12b9
child 47 6bfe7ef2f45e
Changed vocabulary provider
src/pyams_security/plugin/social.py
--- a/src/pyams_security/plugin/social.py	Tue Jun 30 15:02:36 2015 +0200
+++ b/src/pyams_security/plugin/social.py	Tue Jun 30 15:03:07 2015 +0200
@@ -20,7 +20,7 @@
 from pyams_security.interfaces import ISocialUser, IPrincipalInfo, ISocialUsersFolderPlugin, ISecurityManager, \
     IAuthenticatedPrincipalEvent, ISocialLoginConfiguration, ISocialLoginProviderInfo, ISocialLoginProviderConnection
 from zope.annotation.interfaces import IAnnotations
-from zope.schema.interfaces import IVocabularyRegistry, IVocabularyFactory
+from zope.schema.interfaces import IVocabularyFactory
 from zope.traversing.interfaces import ITraversable
 
 # import packages
@@ -143,7 +143,7 @@
                 yield user
 
 
-@provider(IVocabularyRegistry)
+@provider(IVocabularyFactory)
 class SocialUsersFolderVocabulary(SimpleVocabulary):
     """'PyAMS users folders' vocabulary"""