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 anyone have a clue? > > Tim Roberts wr

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: > > >hi, there. i have this question which m

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

2006-08-03 Thread Tim Roberts
"damacy" <[EMAIL PROTECTED]> 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 drops an existing database called >'mytempdb'. > >the c

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-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 drops an existing database called > > 'mytempdb

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

2006-08-02 Thread hiaips
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-02 Thread hiaips
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 drops an existing database called > 'mytempdb'. > > the code looks like b

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