[Zope] Uploaded File Interaction
Chris Withers
chrisw@nipltd.com
Wed, 17 Jan 2001 23:18:12 -0000
> I have found how....
>
> <dtml-in "_.string.split(test_file.read(),'\n')">
> <dtml-var sequence-item>
> </dtml-in>
That might get quite slow for really big files.
If you're using 2.3b1, you could probably do better with a Python Script to
play with the file in place.
IIUC, test_file above, and REQUEST['test_file'], should be the same thing
and can both be played with like normal python file objects.
That might be a more efficient way to do what you want if you're actually
changing lines, but I may be misunderstanding, and FileUpload objects may
not play like file objects either...
...it's late here, sorry ;-)
Chris