Hi,

i use pyExcelerator to save a table to an excel file in a wizard and send it to 
the client:
   file=StringIO.StringIO()
      out=mydoc.save(file)
      return {'data': 
base64.encodestring(file.getvalue()) , 'file_name': 
filename}
...
<?xml version="1.0"?>
<form string="Export">
&nbsp; &nbsp; <image name="gtk-dialog-info" colspan="2"/>
&nbsp; &nbsp; <group colspan="2" col="4">
&nbsp; &nbsp; &nbsp; &nbsp; <separator string="Export to Excel" colspan="4"/>
&nbsp; &nbsp; &nbsp; &nbsp; <field name="data" readonly="1" colspan="3" 
filename="file_name" />
&nbsp; &nbsp; &nbsp; &nbsp; <label align="0.0" string="Save this document to a 
.XLS file and open it with\n Excel." colspan="4"/>
&nbsp; &nbsp; </group>
</form>
..
&nbsp; &nbsp; fields_finish=&#123;
&nbsp; &nbsp; &nbsp; &nbsp; 'data'&#58; &#123;'string'&#58;'File', 
'type'&#58;'binary', 'readonly'&#58; True,&#125;,
&nbsp; &nbsp; &nbsp; &nbsp; 'file_name'&#58;&#123;'string'&#58;'File Name', 
'type'&#58;'char'&#125;
&nbsp; &nbsp; &#125;

With a server running from 5.0 bzr/launchpad, the webclient prompts for a file 
to be downloaded nicely.
On 5.0.10 (last stable download), its puts the encoded value on one big long 
line in the browser.
What could it be?
I'm doing it from the exact same browser, the only difference seems to be the 
web client version.

Merci,

Sean




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=56637#56637

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to