From ffb15bf4a59f958895052350a8f81e6f1cc2c8b3 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 12 Sep 2007 15:02:54 +0000 Subject: #3374: Don't create another entry during async update. --- diff --git a/NEWS b/NEWS index 8010e59..48becf8 100644 --- a/NEWS +++ b/NEWS @@ -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") -- cgit v0.9.1