[Tutor] 200 dollar questions!

2007-06-29 Thread elis aeris
I am a 4 day python newbie, and already I am writing practical codes. I want to learn as fast as possible so I am willing to pay for some tutorials. Please reply if you are interested, although 200 is not a lot of money. ___ Tutor maillist - Tutor@py

Re: [Tutor] DB switch

2007-06-29 Thread Kent Johnson
Smith, Jeff wrote: > We are converting a database from Oracle to SQL 2005. We have a Python > script that currently uses Digital Creation's 'DCOracle' python module. > Any guidance on how to convert this for use with SQL 2005 is appreciated. Presuming you mean MS-SQL Server, there are quite a

Re: [Tutor] Reading image dimensions before it is loaded from a web form using python.

2007-06-29 Thread Kent Johnson
Norman Khine wrote: > Hello, > I am writing an application that allows the user to upload an image to > their folder. > Is there a way to get the size of the file before it has been uploaded > onto the server and give an error if the size does not comply to the > maximum size. I'm not at all clear

[Tutor] DB switch

2007-06-29 Thread Smith, Jeff
We are converting a database from Oracle to SQL 2005. We have a Python script that currently uses Digital Creation's 'DCOracle' python module. Any guidance on how to convert this for use with SQL 2005 is appreciated. Jeff ___ Tutor maillist - Tutor

Re: [Tutor] database question

2007-06-29 Thread Alan Gauld
"Luke Jordan" <[EMAIL PROTECTED]> wrote > I've created a database as a shelve, where each value in the shelve > file is > a record class instance that has attributes representing fields. > Let's say I > enter 300 records in the shelve, then I decide to add a field to > future > records, or rem

Re: [Tutor] Reading image dimensions before it is loaded from a web form using python.

2007-06-29 Thread Luke Paireepinart
Norman Khine wrote: > Hello, > I am writing an application that allows the user to upload an image to > their folder. > Is there a way to get the size of the file before it has been uploaded > onto the server and give an error if the size does not comply to the > maximum size. > [snip] > Anyone

[Tutor] Reading image dimensions before it is loaded from a web form using python.

2007-06-29 Thread Norman Khine
Hello, I am writing an application that allows the user to upload an image to their folder. Is there a way to get the size of the file before it has been uploaded onto the server and give an error if the size does not comply to the maximum size. So far, my apps loads the image and checks it and th

[Tutor] database question

2007-06-29 Thread Luke Jordan
I've created a database as a shelve, where each value in the shelve file is a record class instance that has attributes representing fields. Let's say I enter 300 records in the shelve, then I decide to add a field to future records, or remove a field from future records. How can I update the exis

Re: [Tutor] Fastest way to iterate through a file

2007-06-29 Thread Alan Gauld
"Robert Hicks" <[EMAIL PROTECTED]> wrote > This is the loop code: > > for line in f2: > for id in idList: > if id in line: > print "%s: %s" % (id, f2.next()) > found = "%s: %s" % (id, f2.next()) > f3.write(found) > While I note that you got a sol

Re: [Tutor] (no subject)

2007-06-29 Thread Michael Sullivan
On Fri, 2007-06-29 at 09:54 -0400, Jason Bertrand wrote: > Please remove me from the mailing list. > > Thank you > > Jason P Bertrand > JPB Enterprises > www.businessloansandleasing.com > (860) 982-5334 No one can do that except you. Look at the list headers to see how. __

Re: [Tutor] (no subject)

2007-06-29 Thread Andreas Kostyrka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Please notice the link http://mail.python.org/mailman/listinfo/tutor in the footer of every mailing list mail. It's not really very nice to shoot into a big room with many persons in it "carry me out of the room". Most people prefer to walk out of the

Re: [Tutor] (no subject)

2007-06-29 Thread Kent Johnson
Jason Bertrand wrote: > Please remove me from the mailing list. You can do this yourself using the link at the bottom of each posting to the list. Kent > > Thank you > > Jason P Bertrand > JPB Enterprises > www.businessloansandleasing.com > (860) 982-5334 > > > > __

[Tutor] (no subject)

2007-06-29 Thread Jason Bertrand
Please remove me from the mailing list. Thank you Jason P Bertrand JPB Enterprises www.businessloansandleasing.com (860) 982-5334 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Regular Expression help

2007-06-29 Thread Gardner, Dean
Thanks everyone for the replies all worked well, I adopted the string splitting approach in favour of the regex one as it seemed to miss less of the edge cases. I would like to thank everyone for their help once again -Original Message- From: Kent Johnson [mailto:[EMAIL PROTECTED] Sen