def sqlwhere(data, grouping=' AND '):
 return SQLQuery.join([((k + ' = ') + sqlparam(v)) for (k, v) in data], grouping)

def sqlwhere ( data , grouping = ' AND ' ) : return SQLQuery . join ( [ ( ( k + ' = ' ) + sqlparam ( v ) ) for ( k , v ) in data ] , grouping )
converts a dictionary to an sql where clause in reparam format .