def _row_to_dict(row, d):
 for fld in row.keys():
  val = row[fld]
  if (val is None):
   val = ''
  if _verify_var_type(val):
   d[('$' + fld)] = _as_str(val)

def _row_to_dict ( row , d ) : for fld in row . keys ( ) : val = row [ fld ] if ( val is None ) : val = '' if _verify_var_type ( val ) : d [ ( '$' + fld ) ] = _as_str ( val )
populate dict with database row fields .