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

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

src/c/o/collective.kssinline-0.9.4/collective/kssinline/browser/kssview.py   collective.kssinline(Download)
from plone.app.kss.plonekssview import PloneKSSView
 
from archetypes.kss.validation import validate, SKIP_KSSVALIDATION_FIELDTYPES
from Products.CMFPlone import PloneMessageFactory as _
from cgi import parse_qs
        schema = instance.Schema()
        errors = validate(schema, instance, self.request, errors={}, data=1, metadata=0,
                    predicates=(lambda field: field.type not in SKIP_KSSVALIDATION_FIELDTYPES, )
                    )
 

src/r/a/raptus.multilanguagefields-1.1b8/raptus/multilanguagefields/kss/validation.py   raptus.multilanguagefields(Download)
from Acquisition import aq_inner
 
from zope.interface import implements
from zope.deprecation import deprecated
from archetypes.kss.validation import SKIP_KSSVALIDATION_FIELDTYPES, \
 
        field = instance.getField(fieldname)
        if field.type in SKIP_KSSVALIDATION_FIELDTYPES or \
           not IMultilanguageField.providedBy(field):
            return self.render()