14 May 23:14
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 21:14:39 GMT
Subject: Re: Log changes to rows
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-05-14 21:14:39 GMT
On Wed, May 14, 2008 at 03:58:10PM -0500, Jim Steil wrote:
> Oleg Broytmann wrote:
> >>RowCreatedSignal. I was having some issues with the kwargs parm.
> >>Instead of returning a dict with the values of my table, it is returning
> >>a dict with the class, and the keyfield value of the new record. Ex:
> >>{'class': <class 'motion.model.Contact'>, 'id': 11L}
> >
> > The table's name is kw['class'].sqlmeta.table.
> >
> Oleg: When I try this, I get a -- KeyError: 'class' -- exception. But,
> I then changed it to kw['sender'].sqlmeta.table and it works fine. Does
> that make any sense?
No, I do not understand what is going on. There is the key 'class' in the
dictionary. The word 'sender' is not mentioned in main.py (where the signal
is sent).
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