[SQL-CVS] r3000 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2007-09-26 20:41:29
|
Author: phd Date: 2007-09-26 14:41:14 -0600 (Wed, 26 Sep 2007) New Revision: 3000 Modified: SQLObject/trunk/sqlobject/main.py Log: Do not send a second signal (after .set() calls ._SO_setValue()). Modified: SQLObject/trunk/sqlobject/main.py =================================================================== --- SQLObject/trunk/sqlobject/main.py 2007-09-26 20:41:02 UTC (rev 2999) +++ SQLObject/trunk/sqlobject/main.py 2007-09-26 20:41:14 UTC (rev 3000) @@ -1041,7 +1041,7 @@ # the parts are set. So we just keep them in a # dictionary until later: d = {name: value} - if not self.sqlmeta._creating: + if not self.sqlmeta._creating and not getattr(self.sqlmeta, "row_update_sig_suppress", False): self.sqlmeta.send(events.RowUpdateSignal, self, d) if len(d) != 1 or name not in d: # Already called RowUpdateSignal, don't call it again |