Hi,
*code:* (only the class definiton and Database connection part)
import pg
__metaclass__=type
class addbook:
conn=pg.connect('secondbooks.db')
curs=conn.cursor()
*error:*
conn=pg.connect("secondbooks.db")
pg.InternalError: FATAL: database "secondbooks.db" does not exist
----------------------------------------------------------------------------------------------------
In fact i have a database called secondbooks in postgresql.
Pls help on this as i am new to python.
Thanks in advance
Bijoy
--
http://mail.python.org/mailman/listinfo/python-list