[Tutor] i need help with a code

2010-05-24 Thread patricia welch
here is what I need and I am completely stumped on what to do. I ususally do not have a problem doing this. but this one is just killing me. Programming a Personal Budget Program Write a program for a personal budget that satisfies these conditions: . The program should have the following comma

Re: [Tutor] urllib

2006-09-17 Thread Patricia
)) I really don't know which is the best way to do it. Which is the right approach? I'm really hoping someone can give me an idea how to do it because I'm finding this a frustrating. Thanks, Patricia ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] urllib

2006-09-11 Thread Patricia
s += "" s += "" s += "" s += "" s += "" I would like to know how to send a file. It's a text file that will be gzipped before being posted. I'm using python version 2.2.3. Thanks, Patricia

[Tutor] python & mysql question

2006-09-06 Thread Patricia
Hi, I have to store and retrieve text files from a database table and the size of each file is about 500k. Can someone give me an idea on how to do this? Thanks, Patricia ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman

Re: [Tutor] Mod-python

2006-06-12 Thread Patricia G.
code(dict)req = urllib2.Request(url)req.add_header('User-agent','Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0')fd = urllib2.urlopen(req,urldata)RegardsPeter Jessop I'll try this out. Thank you! Patricia >> Hope anyone can point me to the right direct

[Tutor] Mod-python

2006-06-12 Thread patricia
ed to have a page with a submit button, and this is not the case. I also know that with GET, the length of the url is limited. What is the best way to send a long string? Hope anyone can point me to the right direction.. Thanks, Patricia ___ Tutor mai

Re: [Tutor] connect to a remote machine - Linux

2006-06-12 Thread Patricia G.
do is connect to the remote> computer..Hi Patricia,There's some confusion here.  Let's get that out in the open. It sounds like you have a remote server.  That server provides login shellservice through ssh, and this login shell service runs on port 22, Ithink.  But if your server is

Re: [Tutor] connect to a remote machine - Linux

2006-06-11 Thread Patricia G.
rase and password to connect to the remote machine. Any ideas??   Thanks, Patricia    On 6/11/06, Roy Mac <[EMAIL PROTECTED]> wrote: Try looking at PyDO - This provides an interface between Python and yourdatabase.  This allows you to change your database at a later time and not have to change an

[Tutor] connect to a remote machine - Linux

2006-06-11 Thread Patricia
hrase and password to successfully connect to it.. I'd appreciate any help. Thanks!! Patricia ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Problems when displaying numbers

2006-04-13 Thread Patricia
> An example of result before the call to calc_numbers is: [50L, -1, 1, -1] An example of result before the call is: [50L, -1L, 1L, -1L] Sorry about that. Thanks, Patricia ___ Tutor maillist - Tutor@python.org http://mail.python.org/mail

[Tutor] Problems when displaying numbers

2006-04-12 Thread Patricia
27;ve tried different things and nothing seems to work. Another quick question, my page shows several drop down boxes with pre-selected values. When I submit the form or open the page, the preselected values appear, but when I press the reload button, they don't. (Mozilla) Thanks, Patricia ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] html and mod_python

2006-03-23 Thread Patricia G.
Hi again! result[0] is the value i got from the database. I tried the following piece of code and got :  "TypeError: not enough arguments for format string"    if result [0] in range(0, 101, 10):     selected_value = result[0]     else:     selected_value = '-'     ta