예제 #1
0
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
예제 #2
0
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 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
예제 #4
0
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 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
예제 #6
0
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