Having problems with reading file in Python CGI

2006-06-26 Thread Kiana Toufighi
Hi, I have a simple CGI program that allows that user to upload a file. However, since accessing the the value of the uploaded file using the value attribute or the getvalue() method reads the entire file in memory as a string which is not what I want I'm making use of the file module. The pr

Having problems with strings in HTML

2006-06-26 Thread Kiana Toufighi
Hi, I get a very odd error: ValueError: unsupported format character 't' (0x74) at index 237 Here's my code: HI_LITE_FILE_NAME = '/var/tmp/out.txt' print ''' http://bbc.botany.utoronto.ca/ntools/cgi-bin/ntools_treeview_word.cgi?input=&max=2&values_off=no&remove_bracket=no&show_line_n