pgmanager: Add create_conn_listen() which should be used with wait_for_notify. Update wait_for_notify() to not use put_conn(). Add name to ConnectionInfo. Log queries before they are called. Log exceptions. Add notifyexample.
#!/usr/bin/env python3.2
from pgconsole.config import cfg
from pgconsole.app import PgConsoleApp
if __name__ == '__main__':
try:
cfg.load('pgconsole.xml.gz')
except IOError:
cfg.new('pgconsole.xml.gz')
try:
gtkrc = cfg.root.style.gtkrc.text
except AttributeError:
pass
else:
gtk.rc_parse_string(gtkrc)
app = PgConsoleApp()
app.main()