equal
deleted
inserted
replaced
17 |
17 |
18 # import interfaces |
18 # import interfaces |
19 from zope.password.interfaces import IPasswordManager |
19 from zope.password.interfaces import IPasswordManager |
20 |
20 |
21 # import packages |
21 # import packages |
|
22 from pyams_utils.vocabulary import vocabulary_config |
22 from zope.componentvocabulary.vocabulary import UtilityVocabulary |
23 from zope.componentvocabulary.vocabulary import UtilityVocabulary |
23 from zope.schema.vocabulary import getVocabularyRegistry |
|
24 |
24 |
25 |
25 |
|
26 @vocabulary_config(name='PyAMS password managers') |
26 class PasswordManagerVocabulary(UtilityVocabulary): |
27 class PasswordManagerVocabulary(UtilityVocabulary): |
27 """Password managers vocabulary""" |
28 """Password managers vocabulary""" |
28 |
29 |
29 interface = IPasswordManager |
30 interface = IPasswordManager |
30 nameOnly = True |
31 nameOnly = True |
31 |
|
32 getVocabularyRegistry().register('PyAMS password managers', PasswordManagerVocabulary) |
|