17 Jan
2001
17 Jan
'01
11:18 p.m.
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