I have a cgi script that I want to get running on an Apache server
running under Novel. I know absolutely nothing about novell. I need to
have the first line of the script point to the Python interpretter, but
have no idea where it is. (I don't have access to the server to play
around on it.
Actually, that's good to know. I was thinking it was going to be pretty
hard to debug if I couldn't tell the difference between HTML errors and
Python errors.
I have been using
import cgitb; cgitb.enable()
It seems to re-direct some of the errors to the browser, but obviously
not all.
Ji
might
have been producing illegal HTML code before.
I think I'd better brush up on my HTML skills.
Jim
Alan Gauld wrote:
"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
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
I want to print a list of the keys and their values passed to a cgi
script by an HTML form.
I have tried this, but just seems to crash.
Any ideas?
Jim Morcombe
#!C:\python25\python.exe
import cgi, sys
# import cgitb; cgitb.enable()
#Send errors to browser
sys.stderr = sys.stdout
#Parse
Is there any way to write python code inside a HTML page instead of
using Javascript?
Jim
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Would pySQLite be a reasonable choice for this?
Jim Morcombe
Jim Morcombe wrote:
I want to have a couple of files that can be updated simultaneously be
several users. I don't want to go to the effort of having the users
set up a RDMS and would like to control everything from Python.
I want to have a couple of files that can be updated simultaneously be
several users. I don't want to go to the effort of having the users set
up a RDMS and would like to control everything from Python. I am after
something like shelve, but with record locking. Is there such a thing?
Hopefully this is an easy one.
How do you get the IP address of the Windows PC that your Python program
is running on?
Jim Morcombe
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
and simple objects, and
allowing the User to do the same.
So the question - What is the best thing to use to draw and manipulate
simple 2D objects in an application like this?
Jim Morcombe
___
Tutor maillist - Tutor@python.org
http
I am thinking about some long term teaching aids, so I'm simply
interested in whether these things can be done. I don't need to know
how yet.
1. Is it possible to invoke a Python Program from some kind of link in
a Word document, similar to the way a Java Applet is run from a Web
Page. Obv
want to have a line of code: something like this:
print myObject.myAttribute
and have Python interpret it as meaning "print myObject.colour" and
hence print "red"
Can this be done? If so, how?
Jim Morcombe
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
"(Susan)", how do I do this.
First, the "(" seems to muck things up.
Second, how do I just use "re" to delete characters. I tried using
"sub", but it doesn't seem to like
Jim Morcombe
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I want to have a program that uses Tkinter to display a window.
If the user selects an option, then I want to destroy that window and
then display a second window.
In turn, the user can select an option to change back to the first
window and I want to destroy that window and then display the fir
Oops! Here's the program:
---
from Tkinter import *
root = Tk()
z = Label(root, text="Hello World!")
z.grid()
root.mainloop()
--
Jim
- Original Message -----
From: Jim Morcombe
To: python tutor mailing list
I have copied the following program. When I run it, (By pressing F5 from
IDLE), it displays the "Hello world" message.
When I close the window, the "Hello world" message disappears, but it seems
that the program is still running, because when I close the shell, i get the
message "The program i
--
From: Darren Williams
To: Jim Morcombe ; tutor@python.org
Sent: Friday, December 28, 2007 11:12 AM
Subject: Re: [Tutor] Microsoft Access
Typing 'Using MS Access from Python' into Google returned a few results, one
in particular - http://wwwmarkcarter.me.uk/computing/python/a
Are there any simple tutorials on using MS Access from Python?
Jim
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I have had a couple of strange cases I don't understand.
I am using IDLE on Windows
My program imports some stuff from another file using the statement "from
qwerty import *"
I have changed qwerty and saved it away. I have then run my program (F5) and
the program acts as if it is using an old
In a program, I want to set some kind of variable or object to indicate what
"mode" the program is currently in.
What is the most elegant way of doing this?
Jim
---
constant: moving = "m"
constant: inserting = "i"
constant:ju
I have just read through "Creating a GUI in Python - by Dakota Lemaster"
In it, Dakota recomends placing the entire application within a class.
Why is this so? Surely in many cases you end up with a constructor for the
class that is cumbersome and complex?
Is this a recomended Python programmi
I solved my last problem. The data was string data and of course '1' is > 5.
Now, if I take int(string) the code will work, except it crashes out when the
data is null.
student.row = int(student.row)
ValueError: invalid literal for int() with base 10: ''
What is the easiest and recomended w
Below, "student_seats" is a list of the class "student".
Why does this code set every student.row to zero when there is only one
student in the list with row > 5?
It still sets them all to zero if I change the test to ">200" when there are
no student.rows > 200.
But if I change the test to "<1"
A really dumb question...
When typing things into IDLE, how are quotes meant to work?
If I type"
employee.name = "Susan"
then IDLE ignores the last " and I get an error.
Jim
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listi
24 matches
Mail list logo