diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-09-12 15:02:54 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-09-12 15:02:54 (GMT) |
commit | ffb15bf4a59f958895052350a8f81e6f1cc2c8b3 (patch) | |
tree | 13d6b678b51e55e21a7a4f1a33c422408d93892b | |
parent | 1763de1a12130be6ef5404c712a11308244e20b4 (diff) |
#3374: Don't create another entry during async update.
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/olpc/datastore/backingstore.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,4 @@ +* #3374: Don't create another entry during async update. (tomeu) * #3058: Disable content indexing for Trial-3. (tomeu) Snapshot b0b4c4115a diff --git a/src/olpc/datastore/backingstore.py b/src/olpc/datastore/backingstore.py index e3ed682..d08750b 100644 --- a/src/olpc/datastore/backingstore.py +++ b/src/olpc/datastore/backingstore.py @@ -518,7 +518,8 @@ class FileBackingStore(BackingStore): props['uid'] = uid if filelike: - self.indexmanager.index(props, filelike) + uid = self.indexmanager.index(props, filelike) + props['uid'] = uid if isinstance(filelike, basestring): # lets treat it as a filename filelike = open(filelike, "r") |