[Tutor] Passing arguments to CGI script

2010-06-15 Thread David
Hi, I'm trying to pass arguments to a python script running on my webserver. Here is the script: import cgi import cgitb import sys cgitb.enable() form = cgi.FieldStorage() title = form.getvalue("title") print """Content-type: text/html """ print form.keys() print """ """ When I run it on the

Re: [Tutor] Tkinter - master attribute

2010-06-15 Thread ALAN GAULD
> I still am having trouble understanding the use of "master" in > Tkinter. I think the problem is I can't find any reference that explains the > concept around master, If you read the GUI topic in my tutorial it explains the concept of a containment tree that is common to ost GUI frameworks

Re: [Tutor] Tkinter - master attribute

2010-06-15 Thread Jim Byrnes
Alan Gauld wrote: "Jim Byrnes" wrote in When reading code examples I see things like theframe.master.title('spam) def __init__(self, master): frame = Frame(master) When I encounter these I tend to get bogged down trying to decide if "master" has special meaning or is just a name the

Re: [Tutor] Structuring a class

2010-06-15 Thread Hilton Fernandes
inded, a relational database is the best bet here. however, a direct implementation in Python may need less previous knowledge. On Tue, Jun 15, 2010 at 4:44 AM, Alan Gauld wrote: > "Lang Hurst" wrote > >> I'm trying to figure out how to deal with data which will look something >> like: >> >>  

Re: [Tutor] conventions for establishing and saving default values forvariables

2010-06-15 Thread Alan Gauld
"Pete O'Connell" wrote Hi I was wondering if anyone could give me some insight as to the best way to get and save variables from a user the first time a script is opened. For example if the script prompts something like "What is the path to the folder?" and the result is held in a variable c

Re: [Tutor] What's the catch with ZopeDB?

2010-06-15 Thread Jan Ulrich Hasecke
Am 11.06.10 21:42, schrieb Knacktus: So, has anyone experience with ZopeDB? Are there some drawbacks I should be aware of before getting a book and dive in? (It sounds too good ;-)) You can easily use the ZODB to create pure python applications. There are some tutorials around, like this one:

Re: [Tutor] conventions for establishing and saving default values for variables

2010-06-15 Thread Jeff Johnson
Steven D'Aprano wrote: On Tue, 15 Jun 2010 10:27:43 pm Pete O'Connell wrote: Hi I was wondering if anyone could give me some insight as to the best way to get and save variables from a user the first time a script is opened. For example if the script prompts something like "What is the path t

Re: [Tutor] conventions for establishing and saving default values for variables

2010-06-15 Thread Steven D'Aprano
On Tue, 15 Jun 2010 10:27:43 pm Pete O'Connell wrote: > Hi I was wondering if anyone could give me some insight as to the > best way to get and save variables from a user the first time a > script is opened. For example if the script prompts something like > "What is the path to the folder?" and th

Re: [Tutor] conventions for establishing and saving default values for variables

2010-06-15 Thread Hugo Arts
On Tue, Jun 15, 2010 at 2:27 PM, Pete O'Connell wrote: > Hi I was wondering if anyone could give me some insight as to the best way > to get and save variables from a user the first time a script is opened. For > example if the script prompts something like "What is the path to the > folder?" and

Re: [Tutor] conventions for establishing and saving default values for variables

2010-06-15 Thread Christian Witts
Pete O'Connell wrote: Hi I was wondering if anyone could give me some insight as to the best way to get and save variables from a user the first time a script is opened. For example if the script prompts something like "What is the path to the folder?" and the result is held in a variable calle

[Tutor] conventions for establishing and saving default values for variables

2010-06-15 Thread Pete O'Connell
Hi I was wondering if anyone could give me some insight as to the best way to get and save variables from a user the first time a script is opened. For example if the script prompts something like "What is the path to the folder?" and the result is held in a variable called thePath, what is the bes

Re: [Tutor] Structuring a class

2010-06-15 Thread Alan Gauld
"Lang Hurst" wrote I'm trying to figure out how to deal with data which will look something like: Student:Bob Hurley Credits: Algebra C (20P) Chapter 1 Chapter 2 Consumer Math (24G) Module 2 So, I just figured that I would have a couple o

Re: [Tutor] Better construct?

2010-06-15 Thread Hilton Fernandes
Alan, GW-Basic supported that, but it was not common programming use. :) I've learned programming using Algol (parent of Pascal) and people used to frown at my insistence in using WHILE/WEND Thanks, Hilton On Mon, Jun 14, 2010 at 8:30 PM, Alan Gauld wrote: > > "Advertising Department" wrote >