Try to generate a browser view on its own.<br><br><a href="http://old.plone.org/documentation/tutorial/five-zope3-walkthrough/browser-view-1/view?searchterm=import">http://old.plone.org/documentation/tutorial/five-zope3-walkthrough/browser-view-1/view?searchterm=import</a><br>

<br>Best regards,<br><br>Patrick<br><br><br><br><div class="gmail_quote">On Fri, May 15, 2009 at 10:45, Rowan Woodhouse <span dir="ltr">&lt;<a href="mailto:rwoodhouse@wirelessmeasurement.com">rwoodhouse@wirelessmeasurement.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi,<br>
<br>
I need to generate a download file on the fly (it&#39;s an excel spread sheet<br>
with content drawn from a database) but I&#39;m having some difficulty working<br>
out the best way to do this.<br>
<br>
At the moment I&#39;ve got an Archetype based product that has a FileField in<br>
the schema. So far I&#39;ve been attempting to work out a way to create the<br>
correct sort of accessor so that the generated file is never saved in Zope<br>
itself (at the moment I just get the file coming over as plain text mime<br>
type). Is this the best approach? If so could someone point me in the<br>
correct direction on how to wrap the file correctly so that it downloads<br>
correctly instead of coming over as a plain text file? If not could someone<br>
point me in a more sensible direction?<br>
<br>
Regards,<br>
Rowan<br>
--<br>
View this message in context: <a href="http://n2.nabble.com/Generating-file-downloads-on-the-fly-tp2906670p2906670.html" target="_blank">http://n2.nabble.com/Generating-file-downloads-on-the-fly-tp2906670p2906670.html</a><br>


Sent from the Product Developers mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a><br>
<a href="http://lists.plone.org/mailman/listinfo/product-developers" target="_blank">http://lists.plone.org/mailman/listinfo/product-developers</a><br>
</blockquote></div><br>