Re: [Tutor] Python DB

2005-09-22 Thread Christopher Arndt
Matt Williams schrieb: These seem to be at the opposite end of the spectrum - so do others have either comments on these options, or other suggestions. Well, I havn't use either yet, but I have some experience with SQL DBs. From what I read on the website, Kirby seems like a nice idea, if you

Re: [Tutor] Python DB

2005-09-22 Thread Danny Yoo
On Thu, 22 Sep 2005, Matt Williams wrote: I've been looking for a simple python based DB for a fairly simple app. Only a single user, single access needed, but with a dynamic structure (which needs to be extensible very easily). Hi Matt, What kind of data are you trying to represent? And

Re: [Tutor] Python DB

2005-09-22 Thread Kent Johnson
Matt Williams wrote: Dear List, I've been looking for a simple python based DB for a fairly simple app. Only a single user, single access needed, but with a dynamic structure (which needs to be extensible very easily). Having googled and read some stuff, I seem to come down to a choice

Re: [Tutor] Python DB

2005-09-22 Thread Pawel Kraszewski
Dnia czwartek, 22 września 2005 10:43, Matt Williams napisał: I've been looking for a simple python based DB for a fairly simple app. Only a single user, single access needed, but with a dynamic structure (which needs to be extensible very easily). For pure Python implementation you might try

Re: [Tutor] Python DB

2005-09-22 Thread Cedric BRINER
I love sqlobject.org it this a wrapper between many sql implementation (mysql, postgresql..) and python. get a look. Ced. -- Cedric BRINER Geneva - Switzerland ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python DB

2005-09-22 Thread Ed Hotchkiss
i like MySQLdb - although I said that you hate MySQL. FreeSQL.org has a nice free MySQL server. I also have some example code if you would like from work that I did last week ... -ed On 9/22/05, Cedric BRINER [EMAIL PROTECTED] wrote: I love sqlobject.orgit this a wrapper between many sql

Re: [Tutor] Python Editors (particualrly Vim)

2005-09-22 Thread Ed Singleton
Okay, I've also found this: http://cream.sourceforge.net/features.html Which is amazing! It's an easy-to-use mod for Vim. It's modeless and lots of other doubtless heretical things, but it includes an outstanding auto-complete mode for text files! Ctrl-Space auto completes the word you're

Re: [Tutor] Python Editors (particualrly Vim)

2005-09-22 Thread Johan Geldenhuys
jedit is also good. I use that. The only thing is that you can't execute the script from there. It is great for collapsing at indentions. www.jedit.org Johan On Thu, 2005-09-22 at 13:54 +0100, Ed Singleton wrote: Okay, I've also found this: http://cream.sourceforge.net/features.html Which

[Tutor] time challange

2005-09-22 Thread nephish
Hey there, i use mx.DateTime.RelativeDateTimeDiff to get the difference between date_x and date_y. what i need to do divide this amount of time into 20 different times that spaced out between the date_x and the date_y. so if the difference between date_x and date_y is 20 hours, i need 20

[Tutor] Using superclass __init__ method

2005-09-22 Thread Jan Eden
Hi, I just noticed that in the following environment: class Base: def __init__(self): ... class Child(Base): pass the following statement: child = Child() would automatically execute the superclass __init__ method. This is exactly what I was looking for - but in the

[Tutor] Python DB

2005-09-22 Thread Matt Williams
Dear List, Thanks for all the advice! Obviously, I'm still a bit torn, but some of the ideas looked good. In terms of spec, the DB can be fairly simple (single access, etc.). Lower dependency on other libraries is good. Also, it needs to be cross- platform. The problem (I have) with SQL-type DB

Re: [Tutor] Using superclass __init__ method

2005-09-22 Thread Kent Johnson
Jan Eden wrote: Hi, I just noticed that in the following environment: class Base: def __init__(self): ... class Child(Base): pass the following statement: child = Child() would automatically execute the superclass __init__ method. This is exactly what I

[Tutor] How to install python on to a remote apache server

2005-09-22 Thread Joseph Quigley
Hi, I'd like towrite some internet applications but I don't know how to test them unless I have python on my server. However, It's running Apache 1.3.3 and it's a remote one (I'm in the Americas and it's in Europe) so I don't know how to access it. I also would like to know what platform of

Re: [Tutor] Python Editors (particualrly Vim)

2005-09-22 Thread Poor Yorick
Ed Singleton wrote: Okay, I've also found this: http://cream.sourceforge.net/features.html It seems to me that all the functionality listed here can easily be done in regular vim. I would still recommend investing time in learning plain old vim or gvim. The payoff for proficiency is

Re: [Tutor] Using superclass __init__ method

2005-09-22 Thread paul brian
There are several areas this seems to touch upon, most of them well covered by Guido himself in http://www.python.org/2.2/descrintro.html firstly to call a super class' methods you get the subclass to refer to the *superclass* then the method (note not to the superclass instance) from newstyle

Re: [Tutor] Using superclass __init__ method

2005-09-22 Thread Jan Eden
Kent Johnson wrote on 22.09.2005: This is standard behavior for any class attribute - if it's not defined in the derived class, the base class is checked. It's not special for __init__. I can't find a comprehensive reference for the way attribute lookup works - anyone else? Well, I did know

Re: [Tutor] Using superclass __init__ method

2005-09-22 Thread Jan Eden
Hi, paul brian wrote on 22.09.2005: class Base: def __init__(self): print hello class Child(Base): def __init__(self): Base.__init__(self) This is how I did it so far. But in my program, I have 10 subclasses with identical __init__ methods, so I can simplify the setup a

[Tutor] Simultaneous Adobe Reader

2005-09-22 Thread Jorge Ramirez
Hello, From windows, using a python script how can I open Adobe Reader without displaying a PDF document? Furthermore, using a script is it possible torun two Adobe Reader sessions simulatneously. Thanks in advance. Kind Regards, JR ___ Tutor

Re: [Tutor] Python Editors (particualrly Vim)

2005-09-22 Thread Tim Johnson
* Poor Yorick [EMAIL PROTECTED] [050922 06:29]: Ed Singleton wrote: Okay, I've also found this: http://cream.sourceforge.net/features.html It seems to me that all the functionality listed here can easily be done in regular vim. I would still recommend investing time in learning

[Tutor] USB Capture Image WebCAM

2005-09-22 Thread Alberto Troiano
Hey Tutors I want to make a program that looks like Conquer Cam For those who doesn't know what is it its a program that captures images from your USB WebCAM and saves them to send via FTP. Anyway, getting to the point I don't know how to get the video from the camara to watch it inside a GUI

Re: [Tutor] time challange

2005-09-22 Thread paul brian
You are fairly close t1 = today() t1 DateTime object for '2005-09-22 00:00:00.00' at 11656e0 t2 = today() + RelativeDateTime(hours=20) t2 DateTime object for '2005-09-22 20:00:00.00' at 1165760 t3 = t2 - t1 t3.hours 20.0 slice = t3/20 slice DateTimeDelta object for '01:00:00.00' at

Re: [Tutor] Python DB

2005-09-22 Thread paul brian
I would look quite seriously at SQLObject It is a bit rough round the edges but given a class defintion, it then creates the underlying SQL tables and handles the CRUD (create update delete) for you. I do not like this approach and prefer the other but equally nice ability it has to look at a

Re: [Tutor] time challange

2005-09-22 Thread nephish
paul brian wrote: You are fairly close t1 = today() t1 DateTime object for '2005-09-22 00:00:00.00' at 11656e0 t2 = today() + RelativeDateTime(hours=20) t2 DateTime object for '2005-09-22 20:00:00.00' at 1165760 t3 = t2 - t1 t3.hours 20.0 slice =

[Tutor] PDF

2005-09-22 Thread Jorge Ramirez
Hello, I would like to know how to open a pdf documentusing a python script. thanks ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] USB Capture Image WebCAM

2005-09-22 Thread Danny Yoo
On Thu, 22 Sep 2005, Alberto Troiano wrote: For those who doesn't know what is it its a program that captures images from your USB WebCAM and saves them to send via FTP. Anyway, getting to the point I don't know how to get the video from the camara to watch it inside a GUI made in Python.

Re: [Tutor] Python DB

2005-09-22 Thread Danny Yoo
On Thu, 22 Sep 2005, Matt Williams wrote: The problem (I have) with SQL-type DB is that I cannot be sure ahead of time of the exact data structure. The DB will be about patients, who have diseases, and also have treatments.Clearly, I can't specify now the exact structure of the table.

Re: [Tutor] Challenge [was Re: Why won't it enter the quiz?]

2005-09-22 Thread Nathan Pinno
http://zoffee.tripod.com/purchasecompprogs.htm is the URL. - Original Message - From: Adam To: Nathan Pinno Sent: Thursday, September 22, 2005 5:21 AM Subject: Re: [Tutor] Challenge [was Re: Why won't it enter the quiz?] What's the URL? On 22/09/05,

Re: [Tutor] Python DB

2005-09-22 Thread Andrei
The problem (I have) with SQL-type DB is that I cannot be sure ahead of time of the exact data structure. The DB will be about patients, who have diseases, and also have treatments.Clearly, I can't specify now the exact structure of the table. The advantage of SQL is that you can (in

Re: [Tutor] PDF

2005-09-22 Thread Christopher Arndt
Jorge Ramirez schrieb: Hello, I would like to know how to open a pdf document using a python script. - What do you mean by open? - start a PDF viewer (e.g acrobar reader) from python? - or read in the file in Python and extract information from it? - What platform are you on? -

Re: [Tutor] USB Capture Image WebCAM

2005-09-22 Thread Alberto Troiano
Hey Danny I have downloaded videoCapture but I can't make it run. This is the error I get when I try run the example on the Web Page I want to be able to see the reproduction of the WebCAM inside a GUI of Python I didn't find docs for this on the WEB. If somebody have some pointers I would

[Tutor] FW: Re: USB Capture Image WebCAM

2005-09-22 Thread Alberto Troiano
Hey Danny I have downloaded videoCapture but I can't make it run. This is the error I get when I try run the example Traceback (most recent call last): File C:\Documents and Settings\Daron Malakian\Desktop\VideoCapture-0.9\Tools\webcam-uploader\webcam-uploader.py, line 130, in ? cam =

[Tutor] Lost Color Lost Mind

2005-09-22 Thread Terry Kemmerer
Just learning Python Running: Python 2.4.1 (#2, Aug 25 2005, 18:20:57) [GCC 4.0.1 (4.0.1-2mdk for Mandriva Linux release 2006.0)] on linux2 Concerning: IDLE I tried several fonts, and finally changed the font on IDLE to courier size 22 bold, so that it is easier for my old eyes to

[Tutor] where to insert?

2005-09-22 Thread Goofball223
I would like to insert string.join(msgList,"") into the following program where do I insert it? # numbers2text.py # A program to convert a sequence of ASCII numbers into # a string of text. import string # include string library for the split function. def main(): print "This program converts

Re: [Tutor] FW: Re: USB Capture Image WebCAM

2005-09-22 Thread Alberto Troiano
Hey Danny Thanks for the reply and the tip...I will try to reach him/her. In answer to your question, Conquer Cam is a buyable software. What it does is to show the WebCAM an captures Images every x time and sends it via FTP to any server. But it doesn't works so fine, I think its because I

[Tutor] how to insert a string?

2005-09-22 Thread andrade1
Hello I would like to insert a string into the following program to simplify the program. Any suggestions on how I might do so? # dateconvert2.py #Converts day month and year numbers into two date formats import string def main(): # get the day month and year day, month, year =

Re: [Tutor] Threading in a for loop

2005-09-22 Thread Kent Johnson
Bill Burns wrote: I've got a few questions regarding Threading. I've never used threads before and I want to make sure I'm doing it correctly ;-) I have a GUI app and it processes Tiff files to PDF (or PostScript). The GUI has a ListBox which the user populates with files to convert. You

[Tutor] Diamond Equivalent

2005-09-22 Thread kim.d
I am coming to Python from Perl. Does Python have anything like the diamond operator found in Perl? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] FW: Re: USB Capture Image WebCAM

2005-09-22 Thread Danny Yoo
I have downloaded videoCapture but I can't make it run. This is the error I get when I try run the example Traceback (most recent call last): File C:\Documents and Settings\Daron Malakian\Desktop\VideoCapture-0.9\Tools\webcam-uploader\webcam-uploader.py, line 130, in ? cam =

[Tutor] how to insert a string?

2005-09-22 Thread andrade1
Hello I would like to insert a string into the following program to simplify the program. Any suggestions on how I might do so? # dateconvert2.py #Converts day month and year numbers into two date formats import string def main(): # get the day month and year day, month, year =

Re: [Tutor] Diamond Equivalent

2005-09-22 Thread Danny Yoo
On Thu, 22 Sep 2005 [EMAIL PROTECTED] wrote: I am coming to Python from Perl. Does Python have anything like the diamond operator found in Perl? Hi Kim, According to 'perldoc perlop': The null filehandle is special: it can be used to emulate the behavior of sed and awk.

Re: [Tutor] how to insert a string?

2005-09-22 Thread Danny Yoo
On Thu, 22 Sep 2005 [EMAIL PROTECTED] wrote: I would like to insert a string into the following program to simplify the program. Any suggestions on how I might do so? Hello, It's a little unclear what you're asking when you mention insert a string: usually, inserting anything into a program

Re: [Tutor] How to install python on to a remote apache server

2005-09-22 Thread Danny Yoo
I'd like to write some internet applications but I don't know how to test them unless I have python on my server. However, It's running Apache 1.3.3 and it's a remote one (I'm in the Americas and it's in Europe) so I don't know how to access it. I also would like to know what platform of

Re: [Tutor] Lost Color Lost Mind

2005-09-22 Thread Don Arnold
--- Terry Kemmerer [EMAIL PROTECTED] wrote: Just learning Python Running: Python 2.4.1 (#2, Aug 25 2005, 18:20:57) [GCC 4.0.1 (4.0.1-2mdk for Mandriva Linux release 2006.0)] on linux2 Concerning: IDLE I tried several fonts, and finally changed the font on

[Tutor] Lost Color Lost Mind]

2005-09-22 Thread Terry Kemmerer
Just learning Python Running: Python 2.4.1 (#2, Aug 25 2005, 18:20:57) [GCC 4.0.1 (4.0.1-2mdk for Mandriva Linux release 2006.0)] on linux2 Concerning: IDLE I tried several fonts, and finally changed the font on IDLE to courier size 22 bold, so that it

Re: [Tutor] FW: Re: USB Capture Image WebCAM

2005-09-22 Thread Poor Yorick
Alberto Troiano wrote: But it doesn't works so fine, I think its because I cracked and didn't buy it *grin* But I need like 200 licenses so it would be a little expensive. That's why I'm trying to make my own Python Gengis Cam *grin* You just admitted on a public forum to committing a

[Tutor] words in networking I should probably know

2005-09-22 Thread John Walton
Hello, again. I'm back with my instant messenger project. My teacher has assigned us to write our papers, excluding the procedure, results, and conclusion. One of my topics is going to be networks. Does anyone know a list of words relating to networking/networks that I should know for this

Re: [Tutor] Challenge [was Re: Why won't it enter the quiz?]

2005-09-22 Thread Nathan Pinno
The URL is http://zoffee.tripod.com/purchasecomprogs.htm, and here is a third alternative: If the group says it is okay, I'll add them to the By: line as The Python Group, and I'll donate half of the sales to a charity of the group's choice. Nathan Pinno - Original Message -

Re: [Tutor] Threading in a for loop

2005-09-22 Thread Kent Johnson
Here are some more resources for you. This cookbook recipe is very similar to what you want to do, just customize workerThread1 to do the actual work. It shows how to use a Queue to communicate back to the GUI thread. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965 Here are a

Re: [Tutor] Diamond Equivalent

2005-09-22 Thread bob
At 03:46 PM 9/22/2005, [EMAIL PROTECTED] wrote: I am coming to Python from Perl. Does Python have anything like the diamond operator found in Perl? Some of us (who don't know Perl) might help you if you tell us what the diamond operator does. How could we get to first base with it? What are its

Re: [Tutor] Challenge [was Re: Why won't it enter the quiz?]

2005-09-22 Thread Poor Yorick
bob wrote: At 06:42 PM 9/22/2005, Nathan Pinno wrote: The URL is http://zoffee.tripod.com/purchasecomprogs.htm [snip] At your invitation I visited the site. I personally would not purchase anything listed there due to insufficient information. I don't know what I'm getting! I