Re: Postgres and SSL

2005-02-11 Thread Jorge Luiz Godoy Filho
Greg Lindstrom wrote: I'm on a Linux box running python 2.3 and would like to connect to a postgres database via SSL, but have not been able to find a module to do this (or haven't figured out the syntax). Can anyone help me out? With both psycopg and pypgsql it depends on how your libpq was

Re: Big development in the GUI realm

2005-02-11 Thread Jorge Luiz Godoy Filho
Max M wrote: GPL is not suitable for all kinds of software. It's nice if you are sharing code with others, but if you are developing something like a desktop application that you want to sell for money, using the GPL is a bad idea. If you're earning money, why not pay for the libraries that

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Jorge Luiz Godoy Filho
Fredrik Lundh, Quinta 20 Janeiro 2005 05:17, wrote: what does it give you on your machine? (looks like wxPython cannot handle Unicode strings, but can that really be true?) It does support Unicode if it was built to do so... -- Godoy. [EMAIL PROTECTED] --

Accessing MDB files on Windows

2005-01-19 Thread Jorge Luiz Godoy Filho
Hi, What is the best way to deal with MDB files? I was thinking on using ODBC... I'll need to read and write some information to it. The load won't be so high, but there might be a lot of data. Any advices? Will my approach work? I'm not a Windows guy... :-) -- Godoy. [EMAIL

Re: Accessing MDB files on Windows

2005-01-19 Thread Jorge Luiz Godoy Filho
Larry Bates, Quarta 19 Janeiro 2005 14:01, wrote: I'm assuming the application will be run on Windows. You're right. It will be run on Windows. I discarded some other platform due to the difficulty of supporting this file format. You can use ODBC or DAO. An DAO solution that I wrote

Re: Accessing MDB files on Windows

2005-01-19 Thread Jorge Luiz Godoy Filho
Steve Holden, Quarta 19 Janeiro 2005 14:38, wrote: Note that DAO is a very old library, and nowadays ADO would probably be the preferred method in the Windows environment (can DAO even *use* oledb providers?). ADO libraries are available - see

Re: Accessing MDB files on Windows

2005-01-19 Thread Jorge Luiz Godoy Filho
Jorge Luiz Godoy Filho, Quarta 19 Janeiro 2005 14:25, wrote: Thanks! I'm looking at it. Worked like a charm! And just now I noticed who's the author of the recipe ;-) Thanks! -- Godoy. [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing MDB files on Windows

2005-01-19 Thread Jorge Luiz Godoy Filho
Jorge Luiz Godoy Filho, Quarta 19 Janeiro 2005 15:17, wrote: Hmmm... I see. I'm trying to avoid having to install external modules at my client's server. Should I use, given that both DAO and ODBC are available with the win32all extensions, DAO or ODBC? Or would ADO give me so much

Re: get the IP address of a host

2005-01-07 Thread Jorge Luiz Godoy Filho
Kartic, Quarta 05 Janeiro 2005 14:08, wrote: socket.gethostbyaddr(socket.gethostname()) will return a tuple containing fully qualified hostname, alternative hostnames, ip addresses (1 if multihomed). or socket.gethostbyname(socket.gethostname()) None of these work with computers with

Re: Pexpect getting a defuct process

2005-01-04 Thread Jorge Luiz Godoy Filho
Baillargeon, Sonny, Tera 04 Janeiro 2005 14:42, wrote: This used to work before but now I get a defunct process after it runs. Any ideas? before what? What has changed in your environment to make it stop working? -- Godoy. [EMAIL PROTECTED] --

RE: Pexpect getting a defuct process

2005-01-04 Thread Jorge Luiz Godoy Filho
Baillargeon, Sonny, Tera 04 Janeiro 2005 16:16, wrote: Nothing...I know that's the default answer but considering I control the environment, I can assure you that nothing changed. I have no reason to doubt you. :-) Checking pexpect's documentation, and re-reading your code I see that you

Re: Updating file objects automatically

2004-12-30 Thread Jorge Luiz Godoy Filho
Craig Ringer, Quinta 30 Dezembro 2004 06:27, wrote: I couldn't really catch your explanation, but mention of changing all instances of a class suggests that you may be in a situation where you need to modify the class, not its instances. There are two methods I use when I have to change

Re: Updating file objects automatically

2004-12-30 Thread Jorge Luiz Godoy Filho
Jorge Luiz Godoy Filho, Quinta 30 Dezembro 2004 09:20, wrote: It helps, yes. Putting the object on the class instead of on an instance of it might (I'm 99.9% sure) solve the problem. (I have already done that for other object that is shared, but I didn't remember doing

Re: PyQT installation

2004-12-30 Thread Jorge Luiz Godoy Filho
Steve Holden, Quinta 30 Dezembro 2004 14:13, wrote: If that is a real *never* then Qt just fell behind in the what's the best GUI platform stakes. It'd be a shame to lose PyQT, but if there's no way to migrate it forwards it will atrophy and die. Have TrollTech said they will never issue MSVC

Re: standard IDE in python 3000 (or beyond)? *semi-newbie*

2004-12-30 Thread Jorge Luiz Godoy Filho
mrkurt, Quinta 30 Dezembro 2004 14:39, wrote: About the closest thing to what Mike might want is Boa Constructor, which does have a GUI building tool. It is not as polished as the Visual Studio GUI builder, but there are a lot of controls there that can be used. It requires the wxWindows

Updating file objects automatically

2004-12-29 Thread Jorge Luiz Godoy Filho
Hi, I have the following situation where I only open the file on the Search class (where it should be used more often) and I want to reutilize search methods to find the exact location of where the changes should occur. In code terms, I have something like:

Re: consequences of not calling object.__init__?

2004-12-28 Thread Jorge Luiz Godoy Filho
Peter Hansen, Quarta 29 Dezembro 2004 01:04, wrote: Maybe there's no such pronouncement, but unless there is a clear statement somewhere (and I believe I've missed it, if there is) that reads one should *always* call __init__ on the superclass even if one is just subclassing object and not

Re: how to pass globals across modules (wxPython)

2004-12-22 Thread Jorge Luiz Godoy Filho
Fredrik Lundh, Tera 21 Dezembro 2004 16:33, wrote: well, in my applications, subsystems usually consists of one or more classes, or at least one or more functions. code that needs the global context usually gets the content either as a constructor argument, or as an argument to individual

Re: how to pass globals across modules (wxPython)

2004-12-21 Thread Jorge Luiz Godoy Filho
Peter Hansen, Segunda 20 Dezembro 2004 08:01, wrote: An even better approach might be to find a way to avoid having to access the main window through a global, but I'll have to leave this up to you, as it may depend on your program structure. This might be a problem also to share a database