Re: [Tutor] CGI Video collection application File I/O troubles

2004-12-09 Thread Guybrush Threepwood
Quoting Chad Crabtree <[EMAIL PROTECTED]>: > Olli Rajala wrote: > > > > > > > > >>Ok. I tried running the script on my Apache server on Windows NT > and IT > >>WORKS The script saves the values of videodb keys correctly. > DARN!!! > >>I don't get it. Why does the exact same script work on Win

Re: [Tutor] CGI Video collection application File I/O troubles

2004-12-06 Thread Guybrush Threepwood
Quoting "Jacob S." <[EMAIL PROTECTED]>: > Your error message says that you are getting an empty string from your cgi > variable. I IMHO would suggest printing videodb['title'] before writing it > to a file to see what the variable contains. Or you might print out videodb > to see what the dictiona

Fwd: Re: [Tutor] CGI Video collection application File I/O troubles

2004-12-05 Thread Guybrush Threepwood
Quoting "Jacob S." <[EMAIL PROTECTED]>: > Hi! > > Can I ask a few questions? (Other than this one...) > What output did you expect? A string, tuple, or what? A string output. When I create a dictionary variable from the python shell like this: videodb={'title':'Crash','year':'1996','director':'Da

[Tutor] CGI Video collection application File I/O troubles

2004-12-05 Thread Guybrush Threepwood
Hello! I am having some problems with a simple CGi application I am coding for my gf. It is supposed to be a video collection program. I can't manage to write the value of a dictionary key to a file. Like thisL f.write(videodb['title']) It just creates a blank file. When i try to access the video