def WysiwygEditorWidget(field, request): """ Create selector with available editors """ widget = DropdownWidget(field, field.vocabulary, request) widget._messageNoValue = _(u"vocabulary-available-editor-novalue", u"Use site default") return widget
def LanguageWidget(field, request): """ Create selector with languages vocab """ widget = DropdownWidget(field, field.vocabulary, request) widget._messageNoValue = _(u"vocabulary-missing-single-value-for-edit", u"Language neutral (site default)") return widget
def TimezoneWidget(field, request): """ Timezone selection widget, vocabulary from plone.app.event""" widget = DropdownWidget(field, field.vocabulary, request) widget._messageNoValue = _(u'vocabulary-avilable-editor-novalue', u'Use site default') return widget