Did I find the right examples for you? yes no

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

src/e/r/erp5-HEAD/product/Formulator/Form.py   erp5(Download)
from StringIO import StringIO
 
from Errors import ValidationError, FormValidationError, FieldDisabledError
from FieldRegistry import FieldRegistry
from Widget import render_tag
        if include_disabled or field.get_value('enabled'):
            return field
        raise FieldDisabledError("Field %s is disabled" % id, field)
 
    def _realize_fields(self):
        if include_disabled or field.get_value('enabled'):
            return field
        raise FieldDisabledError("Field %s disabled" % id, field)
 
    security.declareProtected('Change Formulator Forms', 'manage_addField')