[PyGreSQL] Questions on http://www.druid.net/rides/

Ms Soo Chong s4046441 at student.uq.edu.au
Sun Sep 26 01:04:12 EDT 2004


> That's kind of an open ended question.  What in
particular do you find
> confusing?  I thought that most of it was
self-explanatory but if you
> help me out I will know what to comment better.
> 
> -- 
> D'Arcy J.M. Cain
> PyGreSQL Development Group
> http://www.PyGreSQL.org
> 


Thank you so much for your prompt reply.

I'm sorry for that open ended question. Because I'm
still very new to python (basically I'm a newbie to
programming), I don't really understand most of the
part which might seems pretty obvious to other people.

And I'm sure you can definitely help me by
explaining or adding comment in each section what
you trying to do, cause I know the script includes
HTML too (I'm learning HTML at the same time), and I
wanna to match each section of the code to the
webpage itself to understand better of the coding
stuffs. 

For example this section:

---------------------------------------------------------
if sys.argv[1].upper() == "FULL":
	query = "SELECT * FROM ride ORDER BY from_date"
	ex_text = """<P>
		This is the full listing from my database
including events that
		have already occured.  If you know the dates for
these events
		for the current year, or know of any Ontario
events that
		have omitted, please
		<A HREF="mailto:darcy at druid.net">email me</A>
		and let me know."""
	bgcolor = "#E8D8B0"
	fgcolor = "#000000"
	lcolor = "#A03050"

--------------------------------------------------------

I don't understand the use of sys.argv[1].upper().


Thank you in advance.

p/s: sorry that the code looks kinda of distorted.

Shufen




More information about the PyGreSQL mailing list