diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-05-16 08:53:03 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-05-16 08:53:03 (GMT) |
commit | 6e085bae6448317eb407e037d6724a142d51878b (patch) | |
tree | 5bf2c2a8dfa819e23fa9722b103f34f40c23c3e8 /src/olpc/datastore/backingstore.py | |
parent | b2f31d5e18c36a465a4d121209177d8979de92fb (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.py | 2 |
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) |