Hello,
le 18.07.2007 18:15 new2turbo a écrit:
> This is an application that i inherited and the function used is as
> follows....
>
> temporaryFile = '/tmp/saved_worksheet-' + str(int(time.time() *
> 1000)) + '.xls'
> #tempararyFile = '/tmp/temp.xls'
> w.save(temporaryFile)
>
> f = open(temporaryFile, 'r')
>
> return f.read()
>
> .................
>
>
If you get the latestet version in svn, you'll be able to use StringIO
as the file and use the following that will allow you not to create an
actual file :
...
file = StringIO()
w.save(file)
return file.getvalue()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---