We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from zope.interface import implements, directlyProvides from plone.portlets.interfaces import IPortletDataProvider from zope.schema.interfaces import IContextSourceBinder SomeVocabulary = NamedVocabulary("some.vocabulary") def someVocabularyBinder(context): vocab = SomeVocabulary(context).items() return SimpleVocabulary.fromItems(vocab.items()) directlyProvides(someVocabularyBinder, IContextSourceBinder) class IPortlet(IPortletDataProvider): value = schema.Choice(title=u'Some choice', description=u'A choice', source=someVocabularyBinder)
The text was updated successfully, but these errors were encountered:
@dholth What do you exactly want to achieve? Display a vocabulary as list in a portlet?
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: