Did I find the right examples for you? yes no

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

src/p/r/Products.ATExtensions-1.1/Products/ATExtensions/field/record.py   Products.ATExtensions(Download)
        def _subfieldValidationLayer(self, subfield):
            """
            for the individual subfields
            """
            chainname = 'Validator_%s_%s' % (self.getName(), subfield)
                        validators = ValidationChain(chainname, validators=current_validators)
                    except (UnknowValidatorError, FalseValidatorError), msg:
                        log("WARNING: Disabling validation for %s/%s: %s" % (self.getName(), subfield, msg))
                        validators = ()
                else:
            result returned by validator
            """
            name = self.getName()
            if errors and errors.has_key(name):
                return True

src/p/r/Products.PloneFormGen-1.7.14/Products/PloneFormGen/content/likertField.py   Products.PloneFormGen(Download)
    def validate_required(self, instance, value, errors):
        for index in range(self.questionSet):
            if not value[index]:
                label = self.widget.Label(instance)
                name = self.getName()
        for index in range(len(self.questionSet)):
            if (index > len(value)) or not value[index]:
                fname = self.getName()
                if fname not in errors:
                    errors[fname] = error

src/p/r/Products.PloneFormGen-HEAD/Products/PloneFormGen/content/likertField.py   Products.PloneFormGen(Download)
    def validate_required(self, instance, value, errors):
        for index in range(self.questionSet):
            if not value[index]:
                label = self.widget.Label(instance)
                name = self.getName()
        for index in range(len(self.questionSet)):
            if (index > len(value)) or not value[index]:
                fname = self.getName()
                if fname not in errors:
                    errors[fname] = error

src/p/r/Products.Maps-3.3/Products/Maps/field.py   Products.Maps(Download)
        if value is not None:
            # should really blow if value is not valid
            __traceback_info__ = (self.getName(), instance, value, kwargs)
            value = (float(value[0]), float(value[1]))
        self.getStorage(instance).set(self.getName(), instance, value, **kwargs)

src/p/l/plonerelations.ATField-1.0/plonerelations/ATField/ploneRelationsATField.py   plonerelations.ATField(Download)
            if len(res) > 1:
                log("%s references for non multivalued field %s of %s" % (len(res),
                                                                          self.getName(),
                                                                          instance))
            if not aslist:
            if len(res) > 1:
                log("%s references for non multivalued field %s of %s" % (len(res),
                                                                          self.getName(),
                                                                          instance))
            if not aslist:

src/w/i/wildcard.pfg.stripe-1.0a4/wildcard/pfg/stripe/field.py   wildcard.pfg.stripe(Download)
        # if we get this far, we need to cache the data to the request
        # for easy retrieval later... Sigh, yah, weird here...
        REQUEST.environ['%s-stripe' % self.getName()] = value
        return None