diff roundup/backends/rdbms_common.py @ 3979:954971d612ee

Fire reactors after file storage is all done (patch [SF#2001243])
author Richard Jones <richard@users.sourceforge.net>
date Thu, 07 Aug 2008 05:53:14 +0000
parents 732a37da3a10
children 1eba65a4b0aa
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Thu Aug 07 05:51:32 2008 +0000
+++ b/roundup/backends/rdbms_common.py	Thu Aug 07 05:53:14 2008 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-#$Id: rdbms_common.py,v 1.197 2008-08-07 05:50:03 richard Exp $
+#$Id: rdbms_common.py,v 1.198 2008-08-07 05:53:14 richard Exp $
 """ Relational database (SQL) backend common code.
 
 Basics:
@@ -2656,11 +2656,12 @@
             self.db.indexer.add_text((self.classname, newid, 'content'),
                 content, mime_type)
 
+        # store off the content as a file
+        self.db.storefile(self.classname, newid, None, content)
+
         # fire reactors
         self.fireReactors('create', newid, None)
 
-        # store off the content as a file
-        self.db.storefile(self.classname, newid, None, content)
         return newid
 
     def get(self, nodeid, propname, default=_marker, cache=1):

Roundup Issue Tracker: http://roundup-tracker.org/