Author: phd
Date: 2007-07-25 13:09:47 -0600 (Wed, 25 Jul 2007)
New Revision: 2801
Modified:
SQLObject/branches/0.9/docs/News.txt
SQLObject/branches/0.9/sqlobject/main.py
Log:
Run post_funcs after sending RowCreatedSignal.
Modified: SQLObject/branches/0.9/docs/News.txt
===================================================================
--- SQLObject/branches/0.9/docs/News.txt 2007-07-25 19:09:28 UTC (rev 2800)
+++ SQLObject/branches/0.9/docs/News.txt 2007-07-25 19:09:47 UTC (rev 2801)
@@ -78,6 +78,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.9/sqlobject/main.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/main.py 2007-07-25 19:09:28 UTC (rev 2800)
+++ SQLObject/branches/0.9/sqlobject/main.py 2007-07-25 19:09:47 UTC (rev 2801)
@@ -1277,8 +1277,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)
|