[SQL-CVS] r2999 - SQLObject/branches/0.9/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2007-09-26 20:41:09
|
Author: phd
Date: 2007-09-26 14:41:02 -0600 (Wed, 26 Sep 2007)
New Revision: 2999
Modified:
SQLObject/branches/0.9/sqlobject/main.py
Log:
Do not send a second signal (after .set() calls ._SO_setValue()).
Modified: SQLObject/branches/0.9/sqlobject/main.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/main.py 2007-09-26 20:40:16 UTC (rev 2998)
+++ SQLObject/branches/0.9/sqlobject/main.py 2007-09-26 20:41:02 UTC (rev 2999)
@@ -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
|