Oleg Broytmann | 15 May 01:17
X-Face

Re: Log changes to rows

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/

Gmane