(self, dict)
Initialize values for properties, defined by fields in
        associated form.
Initialize values for properties, defined by fields in
        associated form.
Initialize values for properties defined by fields in associated form .
def initialize_values(self, dict):
        """Initialize values for properties, defined by fields in
        associated form.
        """
        values = {}
        for field in self.form.get_fields(include_disabled=1):
            id = field.id
            value = dict.get(id, field.get_value('default'))
            values[id] = value
        self.values = values
def initialize_values ( self , dict ) : values = { } for field in self . form . get_fields ( include_disabled = 1 ) : id = field . id value = dict . get ( id , field . get_value ( 'default' ) ) values [ id ] = value self . values = values