def set(self, name, value, **kw):
        """Set the field to the given value.

        The keyword arguments represent the other field values
        to integrate constraints to other values.
        """

        # fetch the field by name
        field = api.get_field(self.context, name)

        # bail out if we have no field
        if not field:
            return False

        # call the field adapter and set the value
        fieldmanager = IFieldManager(field)
        return fieldmanager.set(self.context, value, **kw)
def set ( self , name , value , ** kw ) : field = api . get_field ( self . context , name ) if not field : return False fieldmanager = IFieldManager ( field ) return fieldmanager . set ( self . context , value , ** kw )
Set the field to the given value.

        The keyword arguments represent the other field values
        to integrate constraints to other values.