"Save As" wizard for csv file in python
===

I am able to save "excel" file using the following code:

    f = cStringIO.StringIO()  # This Is A Buffer To Store The Above Values
    wb.save(f)  # This ll Save The Buffer
    output_data=base64.encodestring(f.getvalue()) 
    res = self.write(cr, uid, ids, {'state':'get','data':output_data, 'name':'trimax_kpi.xls'}, context=context)
    return res 


But I am not able to save the "csv" file using **Save As** wizard.