Access descendant class's module namespace from superclass

2005-07-11 Thread Reid Priedhorsky
Dear group, I'd have a class defined in one module, which descends from another class defined in a different module. I'd like the superclass to be able to access objects defined in the first module (given an instance of the first class) without importing it. Example of what I'm looking for: <<>>

Secure Postgres access

2006-09-06 Thread Reid Priedhorsky
Hi folks, I would like to access a remote Postgres server from a Python program in a secure way. Postgres doesn't currently listen to the Internet for connections, and I'd prefer to keep it that way. I know how to forward ports using SSH, but I don't like doing this because then anyone who knows

Re: Secure Postgres access

2006-09-07 Thread Reid Priedhorsky
On Wed, 06 Sep 2006 09:29:59 -0700, Paul Rubin wrote: > Reid Priedhorsky <[EMAIL PROTECTED]> writes: >> I know how to forward ports using SSH, but I don't like doing this because >> then anyone who knows the port number can connect to Postgres over the >> same t

Re: Secure Postgres access

2006-09-09 Thread Reid Priedhorsky
On Thu, 07 Sep 2006 18:36:32 -0700, Paul Rubin wrote: > Reid Priedhorsky <[EMAIL PROTECTED]> writes: >> > Wouldn't they need a database password? >> >> Well, right now, no. I have Postgres configured to trust the OS on who is >> who. > > You

A* search implementation in Python

2007-02-01 Thread Reid Priedhorsky
Hi folks, I'm looking for an open-source Python implementation of A* search for use in a mapping application. As the star is an operator in Google, I haven't figured out how to formulate a useful search. :/ Any help would be very much appreciated. Reid -- http://mail.python.org/mailman/listinf

Forking SocketServer daemon -- updating state

2007-02-19 Thread Reid Priedhorsky
Hi folks, I am implementing a forking SocketServer daemon that maintains significant internal state (a graph that takes ~30s to build by fetching from a SQL database, and eventually further state that may take up to an hour to build). I would like to be able to notify the daemon that it needs to

Safely updating master state in SocketServer with ForkingMixIn

2008-05-19 Thread Reid Priedhorsky
Dear all, I have a TCP server written using SocketServer with ForkingMixIn. Servicing connections is CPU-bound and can take several seconds. I now need a way to safely tell the master process to update its state (by groveling in a PostgreSQL database, potentially for several seconds). How can I d

Re: scaling problems

2008-05-19 Thread Reid Priedhorsky
On Tue, 20 May 2008 10:47:50 +1000, James A. Donald wrote: > > 1. Looks to me that python will not scale to very large programs, > partly because of the lack of static typing, but mostly because there > is no distinction between creating a new variable and utilizing an > existing variable, so the

Validate XML against DTD and/or XML Schema?

2006-04-16 Thread Reid Priedhorsky
Hi folks, I have a need to validate XML files against both DTDs and XML Schema from the command line. In an ideal world, I'd be able to do something like: $ python validate.py foo.xml which would then parse and validate foo.xml using the schema or DTD referenced within it. What I'm looking f