Did I find the right examples for you? yes no

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

src/z/3/z3c.currency-1.1.0/src/z3c/currency/interfaces.py   z3c.currency(Download)
import zope.schema
from zope.schema import interfaces, vocabulary
from z3c.currency.i18n import MessageFactory as _
# Precisions
class WrongCurrencyType(zope.schema.ValidationError):
    _("""The value is not a Decimal.""")
class IncorrectValuePrecision(zope.schema.ValidationError):
    _("""The amount of decimal places is incorrect.""")
class ICurrency(interfaces.IMinMax, interfaces.IField):
    precision = zope.schema.Choice(
        description=_('The precision in which the amount is kept.'),