Re: [Tutor] Test If File System is mounted in Linux

2006-03-18 Thread Pawel Kraszewski
Dnia piątek, 17 marca 2006 19:22, Bill Campbell napisał: If you're sure it's a Linux system, fine. Like /etc/mtab, this isn't portable. Looking at some of the systems we have here: Fortezza mentioned it the way I assumed he has Linux: If there a semi-standard way to test if a file system

Re: [Tutor] Mysql BLOB strangeness?

2006-03-18 Thread Adam Cripps
On 3/17/06, Brian Gustin [EMAIL PROTECTED] wrote: if the data is not binary, you can use TEXT type - accepts all readable characters and data, BLOB type is more for binary data storage, and MYSQL's Varchar type only stores up to 255 characters. (65,536 bits, or 64Kbits) If you are storing

Re: [Tutor] walking down directories

2006-03-18 Thread Alan Gauld
I am trying to write a function that takes a directory's name, finds any subdirectories, and then prints out the size of the files in all found directories. As you see, the problem is that there is another directory under testFiles called testDir, but the function doesn't check the

Re: [Tutor] using cmd

2006-03-18 Thread Alan Gauld
I just completed an assignment out of Learning Python in which I used the Cmd class from the cmd module to create a little shell: Originally, I called the function 'ls', but when I did that, the function didn't work when I typed 'ls' at the prompt. When I looked in the back of the book, I

[Tutor] Fill in a web form

2006-03-18 Thread David Holland
Is there a way in python to automatically put values in a web page ? For example I used to travel on a train (I live in the UK) that is always late. Is there a way to automatically to do this ? I can't think of how to do it.

Re: [Tutor] using cmd

2006-03-18 Thread Kent Johnson
Christopher Spears wrote: I just completed an assignment out of Learning Python in which I used the Cmd class from the cmd module to create a little shell: My main question concerns the naming of functions such as: def do_ls(self, line): if line == '': dirs = [os.curdir]

[Tutor] ANN: 2006 Python training courses, San Francisco

2006-03-18 Thread w chun
*** 50% DISCOUNT for STUDENTS / TEACHERS *** For those of you who already know Python or other languages but are learning Python, WE are giving 4 more Python training courses (held near the San Francisco airport) for the remainder of this year. Please forward this message to anyone else you

Re: [Tutor] Mysql BLOB strangeness?

2006-03-18 Thread Brian Gustin
you'd grab a blob the same way you'd grab a text data type- the only difference being the data you insert. for example, make a string of letters only, insert it into both a blob and a text data type- you can get the data out exactly as is either way , however if you attempt to put binary data

Re: [Tutor] Fill in a web form

2006-03-18 Thread Michael Janssen
On 3/18/06, David Holland [EMAIL PROTECTED] wrote: Is there a way in python to automatically put values in a web page ? For example I used to travel on a train (I live in the UK) that is always late. Is there a way to automatically to do this ? I can't think of how to do it. You don't fill

Re: [Tutor] Fill in a web form

2006-03-18 Thread Kent Johnson
David Holland wrote: Is there a way in python to automatically put values in a web page ? For example I used to travel on a train (I live in the UK) that is always late. Is there a way to automatically to do this ? Can you be more specific? Do you want to script the browser so it displays

Re: [Tutor] Mysql BLOB strangeness?

2006-03-18 Thread Brian Gustin
Oh. just found the original question.. :) OK perhaps this would be more helpful if you were to manually query mysql on command line and paste the results it outputs here. what I am betting is your method to get the data out of teh query is doing exactly what you tell it to.. :) but this

Re: [Tutor] Fill in a web form

2006-03-18 Thread Alan Gauld
Hi David, You lost me there. What does a late train ghave to do with filling in web forms?! Is there a way in python to automatically put values in a web page ? For example I used to travel on a train (I live in the UK) that is always late. Is there a way to automatically to do this ?