this is my db config
PGPOOL_DB_CONFIG = dict(dbn='postgres', user='of',
pw='tofu',db='parallel',host='tify.dento.com',port=9999, pooling=False)
pgpooldb = web.database(**PGPOOL_DB_CONFIG)
pgpooldb.has_pooling = False
pgpooldb.printing = False
The problem is now i m unable to run any query from webpy
Exception in thread Thread-14:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/s/work/common/utils.py", line 279, in newfunc
return func(*a, **kw)
File "/home/s/work/s/app.py", line 433, in savesearch
swf.parallelupdate_zeitgist(query)
File "/home/s/work/common/swf.py", line 36, in parallelupdate_zeitgist
search_row = pgpooldb.query('select * from zeitgist where
keywords=$query',vars=locals())
File "/home/mark/work/common/web/db.py", line 600, in query
self._db_execute(db_cursor, sql_query)
File "/home/s/work/common/web/db.py", line 559, in _db_execute
self.ctx.rollback()
File "/home/s/work/common/web/db.py", line 486, in rollback
ctx.db.rollback()
InterfaceError: connection already closed
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---