(self, values)
return result
Convert the ``values`` dictionary into the format of :meth:`write`.
Convert the ``values`` dictionary into the format of :meth:`write`.
Convert the values dictionary into the format of : meth : write .
def _convert_to_write(self, values):
        """ Convert the ``values`` dictionary into the format of :meth:`write`. """
        fields = self._fields
        result = {}
        for name, value in values.items():
            if name in fields:
                field = fields[name]
                value = field.convert_to_write(value, self)
                if not isinstance(value, NewId):
                    result[name] = value
        return result
def _convert_to_write ( self , values ) : fields = self . _fields result = { } for name , value in values . items ( ) : if name in fields : field = fields [ name ] value = field . convert_to_write ( value , self ) if not isinstance ( value , NewId ) : result [ name ] = value return result