Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)
Factory for creating i18n messages.

src/f/t/ftw.globalstatusmessage-1.2/ftw/globalstatusmessage/interfaces.py   ftw.globalstatusmessage(Download)
from zope.interface import Interface
from zope import schema
from ftw.globalstatusmessage import _
from plone.theme.interfaces import IDefaultPloneLayer
 
 
class IStatusMessageConfigForm(Interface):
    """This interface defines the configlet."""
    enabled_bool = schema.Bool(
    title = _(u"statusmessage_label_Active", default=u"Active"),
    required = False)
    type_choice = schema.Choice(
    title = _(u"statusmessage_label_type", default=u"Type"),
    values = [_(u"information"),
    _(u"warning"),

src/f/t/ftw.globalstatusmessage-1.2/ftw/globalstatusmessage/browser/config.py   ftw.globalstatusmessage(Download)
from z3c.form import form, field
from plone.z3cform.layout import wrap_form
from ftw.globalstatusmessage.interfaces import IStatusMessageConfigForm
from ftw.globalstatusmessage import _
from plone.app.form.widgets.wysiwygwidget import WYSIWYGWidget
    fields['message_textfield'].custom_widget = WYSIWYGWidget
 
    label = _(u"Global Statusmessage")