Commits

Anonymous committed a0db2c5

fixed import of IVocabularyFactory

Comments (0)

Files changed (1)

plonesocial/auth/rpx/providers.py

-from zope.app.schema.vocabulary import IVocabularyFactory
 from zope.interface import implements
 from zope.schema.vocabulary import SimpleTerm
 from zope.schema.vocabulary import SimpleVocabulary
 
+try:
+    from zope.app.schema.vocabulary import IVocabularyFactory
+except ImportError:
+    from zope.schema.interfaces import IVocabularyFactory
+    
+
 from plonesocial.auth.rpx.config import RPX_PROVIDERS