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

All Samples(30)  |  Call(28)  |  Derive(0)  |  Import(2)

src/p/r/Products.BrFieldsAndWidgets-1.2.2/Products/BrFieldsAndWidgets/content/at_mixin.py   Products.BrFieldsAndWidgets(Download)
from Products.BrFieldsAndWidgets.content.BrFieldsAndWidgets import CEPWidget
 
from Products.BrFieldsAndWidgets import MessageFactory as _
 
 
            size="30",
            visible={'view': 'invisible', 'edit': 'visible'},
            label=_(u'Logradouro'),
            description=_(u'Exemplo: Rua Mourato Coelho'),
        ),
            size="7",
            visible={'view': 'invisible', 'edit': 'visible'},
            label=_(u'Número'),
            description=_(u'Exemplo: 12'),
        ),

src/p/r/Products.BrFieldsAndWidgets-1.2.2/Products/BrFieldsAndWidgets/validators.py   Products.BrFieldsAndWidgets(Download)
from Products.validation.interfaces.IValidator import IValidator
 
from Products.BrFieldsAndWidgets import MessageFactory as _
from Products.BrFieldsAndWidgets.config import USE_BBB_VALIDATORS
 
 
        if len(cpf) != 11:
            return _(u"CPF precisa ter 11 dígitos.")
        elif len(cpf)==11:
            vtemp = [int(cpf[:1]) for i in list(cpf)]
            cpf2 = [int(i) for i in list(cpf)]
            if cpf2 == vtemp:
                return _(u"CPF inválido.")
 
            if cpf2 != ltmp:
                return _(u"O dígito verificador do CPF não confere.")
        return True
 
 
listValidators.append(ValidadorCPF('isCPF',
                                   title=_(u'Validator de CPF'),