questions to anyone who uses wxPython

2006-07-19 Thread damacy
hello. i'm using wxPython as my GUI package and whenever my program executes a long process which takes at least 2 or 3 seconds, the user interface gets corrupted while executing the progrocess during the period. i have tried the following lines of code... frame = mainwindow(None, -1, 'my program

exception handling; python program that interacts with postgresql db

2006-08-02 Thread damacy
hi, there. i have this question which might sound quite stupid to some people, but here we go anyway. i have written a python program which interacts with a postgresql database. what it does is simply drops an existing database called 'mytempdb'. the code looks like below; link = subprocess.Pope

Re: exception handling; python program that interacts with postgresql db

2006-08-02 Thread damacy
hiaips wrote: > damacy wrote: > > hi, there. i have this question which might sound quite stupid to some > > people, but here we go anyway. > > > > i have written a python program which interacts with a postgresql > > database. what it does is simply

Re: exception handling; python program that interacts with postgresql db

2006-08-02 Thread damacy
yes, i'll have a read. thanks. =) hiaips wrote: > Another option would be to use the psycopg module to connect to > postgres from within your Python code. See > http://www.initd.org/projects/psycopg1 for more information. > > --hiaips -- http://mail.python.org/mailman/listinfo/python-list

Re: exception handling; python program that interacts with postgresql db

2006-08-21 Thread damacy
thanks. i started to use psycopg. however, i have this error message and i don't quite get what it means. it says "DROP DATABASE cannot run inside a transaction block". does anyone have a clue? Tim Roberts wrote: > "damacy" <[EMAIL PROTECTED]> wrote: > >

Re: exception handling; python program that interacts with postgresql db

2006-08-21 Thread damacy
oh, fixed when i set isolation level to 0. thanks anyway! damacy wrote: > thanks. i started to use psycopg. > > however, i have this error message and i don't quite get what it means. > > it says "DROP DATABASE cannot run inside a transaction block". > > does

python + postgres psql + os.popen

2006-06-21 Thread damacy
hello, everyone. i am trying to write a program which executes SQL commands stored in .sql files. i wrote a function called psql() whose contents look like the following. ... os.popen(command) file = os.popen(command, 'w') file.write(password) file.close() ... where command looks like psql -h [

Re: python + postgres psql + os.popen

2006-06-23 Thread damacy
t NOT when creating a table which already exists in the database? it should work for both cases. thank you very much. Simon Forman wrote: > damacy wrote: > > hello, everyone. > ... > > this works well. however, it does not show me any warning nor error > > messages if ther

Re: python + postgres psql + os.popen

2006-06-23 Thread damacy
t NOT when creating a table which already exists in the database? it should work for both cases. thank you very much. Simon Forman wrote: > damacy wrote: > > hello, everyone. > ... > > this works well. however, it does not show me any warning nor error > > messages if ther

all ip addresses of machines in the local network

2006-08-23 Thread damacy
s" of the other machines; [b], [c] and [d]? i have read some threads posted on this group, however, they only work for localhost, not the entire network. any hints if possible? thanks for your time. regards, damacy -- http://mail.python.org/mailman/listinfo/python-list

Re: all ip addresses of machines in the local network

2006-08-23 Thread damacy
hi, sandra. no, it's not as complicated as that. all i want to do is to load a database onto different machines residing in the same network. i hope there is a way doing it. or perhaps i have a poor understanding of how networks work. regards, damacy Sandra-24 wrote: > damacy wrote

Re: all ip addresses of machines in the local network

2006-08-30 Thread damacy
Amit Khemka wrote: > On 8/24/06, Amit Khemka <[EMAIL PROTECTED]> wrote: > > On 23 Aug 2006 21:46:21 -0700, damacy <[EMAIL PROTECTED]> wrote: > > > hi, sandra. > > > > > > no, it's not as complicated as that. all i want to do is to load a > &

Re: all ip addresses of machines in the local network

2006-08-31 Thread damacy
Amit Khemka wrote: > > in my program so far, multiple threads (255 threads in total) spawned > > at once with each one of them trying to call socket.gethostbyaddr(ip) > > function. i.e. if exception thrown, no machine found. i used .join() to > > wait for the threads to terminate. it's fully workin