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

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)
Factory for creating i18n messages.

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/workflows/example.py   ftw.publisher.sender(Download)
from ftw.publisher.sender import _
from ftw.publisher.sender.workflows import config
from ftw.publisher.sender.workflows import constraints
from ftw.publisher.sender.workflows import interfaces
from ftw.publisher.sender.workflows.constraints import error_on

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/interfaces.py   ftw.publisher.sender(Download)
from ftw.publisher.sender import _
from zope import interface
from zope.component.interfaces import IObjectEvent
from zope.interface import Interface
from zope.schema import Bool
class IRealm(Interface):
 
    active = Bool(
        title=_(u'label_realm_active',
                default=u'Active'))
 
    url = URI(
        title=_(u'label_realm_url',
 
    username = TextLine(
        title=_(u'label_realm_username',
                u'Username'))
 
    password = Password(
        title=_(u'label_realm_password',

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/tests/test_workflow_constraints.py   ftw.publisher.sender(Download)
from Products.statusmessages.interfaces import IStatusMessage
from ftw.publisher.sender import _
from ftw.publisher.sender.workflows import constraints
from ftw.publisher.sender.workflows import interfaces
from ftw.testing import MockTestCase