Author: cito
Date: Sun Jan 6 10:43:53 2013
New Revision: 498
Log:
Pass payload in pgnotify.
Modified:
trunk/module/pg.py
Modified: trunk/module/pg.py
==============================================================================
--- trunk/module/pg.py Sun Jan 6 10:26:22 2013 (r497)
+++ trunk/module/pg.py Sun Jan 6 10:43:53 2013 (r498)
@@ -185,10 +185,11 @@
notice = self.pgconn.getnotify()
if notice is None:
continue
- event, pid, _extra = notice
+ event, pid, extra = notice
if event in (self.event, self.stop):
self.arg_dict['pid'] = pid
self.arg_dict['event'] = event
+ self.arg_dict['extra'] = event
self.callback(self.arg_dict)
if event == self.stop:
self.pgconn.query('unlisten "%s"' % self.event)
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql