Re: [Tutor] cgi scripts

2008-11-08 Thread Jim Morcombe
Bt "Crash", I mean the browser displays: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. The code I sent before had a silly mistake in it. Here is a better example of the things I am trying and failing at. I can

Re: [Tutor] cgi scripts

2008-11-08 Thread Alan Gauld
"Jim Morcombe" <[EMAIL PROTECTED]> wrote The code I sent before had a silly mistake in it. Here is a better example of the things I am trying and failing at. Look at what you are doing in the two examples # This next bit also works and I can see the value of the variable print "JQuiz_q

Re: [Tutor] cgi scripts

2008-11-08 Thread Jim Morcombe
Thanks guys, This works :) field_list = '\n' for field in data.keys(): field_list = field_list + '%s : %s\n' % (field, data[field].value) field_list = field_list + '\n' print field_list I think the problem wasn't in getting the keys and values, but I might have been producing illegal HTML

Re: [Tutor] cgi scripts

2008-11-08 Thread Kent Johnson
On Sat, Nov 8, 2008 at 3:38 AM, Jim Morcombe <[EMAIL PROTECTED]> wrote: > I think the problem wasn't in getting the keys and values, but I might have > been producing illegal HTML code before. > I think I'd better brush up on my HTML skills. Poorly formed HTML won't give an internal server error.

Re: [Tutor] cgi scripts

2008-11-08 Thread Don Jennings
(Oops! Forgot to include tutor in recipient.) On 11/8/08, Don Jennings <[EMAIL PROTECTED]> wrote: > Hi, Jim. Actually, improper HTML would cause a problem with the > browser and what it may or may not display. An "Internal Server Error" > does indicate that you had a problem with your code. I sugg

Re: [Tutor] gnuplot from a python gui

2008-11-08 Thread spir
[EMAIL PROTECTED] a écrit : Hello tutors, I'm trying to generate a plot using gnuplot from within a python gui. In Windows, if after the plot is drawn I use a raw_input string demanding a 'RETURN' be hit, the plot will persist on the screen until the 'RETURN' is pressed. In *nix, one can use

[Tutor] Upgrading from Python 2.5 to Python 2.6 - IDLE not working...

2008-11-08 Thread Dan
Hi All, This is my first post, so I apologize in advance for any etiquette violations. I am interested in learning Python, and to that end, I undertook to upgrade my current version of Python 2.5 (available via openSUSE repositories and YaST) to Python 2.6. I have Python 2.6 running (compiled fr

[Tutor] Question

2008-11-08 Thread Bap
Can I use notepad++ for Python? Thank you! ;-) ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Upgrading from Python 2.5 to Python 2.6 - IDLE not working...

2008-11-08 Thread Kent Johnson
On Sat, Nov 8, 2008 at 6:34 PM, Dan <[EMAIL PROTECTED]> wrote: > I am interested in learning Python, and to that end, I undertook to upgrade > my current version of Python 2.5 (available via openSUSE repositories and > YaST) to Python 2.6. I have Python 2.6 running (compiled from source [I'm > not

Re: [Tutor] Question

2008-11-08 Thread Nick Scholtes
Last I checked, Notepad ++ works with Python. I've never used it for Python, so I don't know how it works. Nick On Sat, Nov 8, 2008 at 9:22 PM, Bap <[EMAIL PROTECTED]> wrote: > Can I use notepad++ for Python? > > Thank you! ;-) > > ___ > Tutor maillis