阅读背景:

OpenERP 7:如何将解码文件作为CSV文件打开?

来源:互联网 

I have a module which asks the user to give a csv file, with the binary field. So once the module has it, I decode it and write the result in a Temporary File, but then I can't open it as a CSV file : I will get the error "TypeError: coercing to Unicode: need string or buffer, file found" because I'm trying to open a File Object. So how can I decode the file and then open it as a CSV file ?I have a module which asks the user to give a c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: