Dear Anthony,
Thanks for the tip. No I am able to create a file for download on the
fly.
Here's the final code.
def make_dl():
import os
myurl = URL('static', 'excel.txt')
myfile = os.path.join(request.folder, 'static', 'excel.txt')
f = open(myfile,'w')
for i in range(20):
f.write('This is a test %2s\n'%(i))
f.close()
# forces
download NOT streaming
mylink = XML(A('clickme to download',_href=myurl+'?attachment'))
return dict(mylink=mylink)
Thanks again, Anthony.
Love and peace,
Joe