Skip to content

Commit cf19165

Browse files
author
Richard Jones
committed
Fire reactors after file storage is all done (patch [SF#2001243])
1 parent b270892 commit cf19165

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Fixed:
99
- Fix mailgw total failure bounce message generation (thanks Bradley Dean)
1010
- Fix for postgres 8.3 compatibility (and bug) (sf patch #2030479)
1111
- Fix for translations (sf patch #2032526)
12+
- Fire reactors after file storage is all done (sf patch #2001243)
1213

1314

1415
2008-03-01 1.4.4

roundup/backends/back_anydbm.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.210 2008-02-07 00:57:59 richard Exp $
18+
#$Id: back_anydbm.py,v 1.211 2008-08-07 05:53:14 richard Exp $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -2056,11 +2056,12 @@ def create(self, **propvalues):
20562056
# do the database create
20572057
newid = self.create_inner(**propvalues)
20582058

2059+
# store off the content as a file
2060+
self.db.storefile(self.classname, newid, None, content)
2061+
20592062
# fire reactors
20602063
self.fireReactors('create', newid, None)
20612064

2062-
# store off the content as a file
2063-
self.db.storefile(self.classname, newid, None, content)
20642065
return newid
20652066

20662067
def get(self, nodeid, propname, default=_marker, cache=1):

roundup/backends/rdbms_common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: rdbms_common.py,v 1.197 2008-08-07 05:50:03 richard Exp $
18+
#$Id: rdbms_common.py,v 1.198 2008-08-07 05:53:14 richard Exp $
1919
""" Relational database (SQL) backend common code.
2020
2121
Basics:
@@ -2656,11 +2656,12 @@ def create(self, **propvalues):
26562656
self.db.indexer.add_text((self.classname, newid, 'content'),
26572657
content, mime_type)
26582658

2659+
# store off the content as a file
2660+
self.db.storefile(self.classname, newid, None, content)
2661+
26592662
# fire reactors
26602663
self.fireReactors('create', newid, None)
26612664

2662-
# store off the content as a file
2663-
self.db.storefile(self.classname, newid, None, content)
26642665
return newid
26652666

26662667
def get(self, nodeid, propname, default=_marker, cache=1):

0 commit comments

Comments
 (0)