15 May 01:17
Re: Log changes to rows
From: Oleg Broytmann <phd <at> phd.pp.ru>
Subject: Re: Log changes to rows
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-05-14 23:17:56 GMT
Subject: Re: Log changes to rows
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-05-14 23:17:56 GMT
On Wed, May 14, 2008 at 05:49:17PM -0500, Jim Steil wrote: > Oleg Broytmann wrote: > > How did you install the listener? Did you call > >events.listen(addListener, Contact, RowCreateSignal) > > > Yes Then inside def addListener(newValues, postFunctions, tableName='', **kw):... newValues is a dict of values you want to inspect, and kw['sender'] is the class 'Contact', so the table name is really kw['sender'].sqlmeta.table. PS. I understand events much better now. Thank you! ;) Oleg. -- -- Oleg Broytmann http://phd.pp.ru/ phd <at> phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

RSS Feed