Author: phd
Date: 2007-07-25 13:09:28 -0600 (Wed, 25 Jul 2007)
New Revision: 2800
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/sqlobject/main.py
Log:
Run post_funcs after sending RowCreatedSignal.
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-07-25 19:02:15 UTC (rev 2799)
+++ SQLObject/branches/0.8/docs/News.txt 2007-07-25 19:09:28 UTC (rev 2800)
@@ -13,6 +13,8 @@
Bug Fixes
---------
+* Run post_funcs after sending RowCreatedSignal.
+
* Suppress the second RowUpdateSignal in .set() called from ._SO_setValue().
SQLObject 0.8.4
Modified: SQLObject/branches/0.8/sqlobject/main.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/main.py 2007-07-25 19:02:15 UTC (rev 2799)
+++ SQLObject/branches/0.8/sqlobject/main.py 2007-07-25 19:09:28 UTC (rev 2800)
@@ -1293,8 +1293,9 @@
post_funcs = []
kw = dict([('class', self.__class__), ('id', id)])
self.sqlmeta.send(events.RowCreatedSignal, kw, post_funcs)
+ for func in post_funcs:
+ func(self)
-
def _SO_getID(self, obj):
return getID(obj)
|