Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/olpc/datastore/backingstore.py
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-05-16 08:53:03 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-05-16 08:53:03 (GMT)
commit6e085bae6448317eb407e037d6724a142d51878b (patch)
tree5bf2c2a8dfa819e23fa9722b103f34f40c23c3e8 /src/olpc/datastore/backingstore.py
parentb2f31d5e18c36a465a4d121209177d8979de92fb (diff)
allow missing files for delete, this is a work around to Content w/o files
really we should directly record if there is filelike data associated with a Content object
Diffstat (limited to 'src/olpc/datastore/backingstore.py')
-rw-r--r--src/olpc/datastore/backingstore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/olpc/datastore/backingstore.py b/src/olpc/datastore/backingstore.py
index 38078fd..1e14194 100644
--- a/src/olpc/datastore/backingstore.py
+++ b/src/olpc/datastore/backingstore.py
@@ -93,7 +93,7 @@ class FileBackingStore(BackingStore):
def set(self, uid, filelike):
self._writeContent(uid, filelike)
- def delete(self, uid, allowMissing=False):
+ def delete(self, uid, allowMissing=True):
path = self._translatePath(uid)
if os.path.exists(path):
os.unlink(path)