changeset 879:a3e599dffec9 storage-ng

add a comment to the stores backend about deserialization
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 26 Sep 2011 01:06:27 +0200
parents 490222d8f98b
children 92db819ad184
files MoinMoin/storage/backends/stores.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/backends/stores.py	Sun Sep 25 22:45:37 2011 +0200
+++ b/MoinMoin/storage/backends/stores.py	Mon Sep 26 01:06:27 2011 +0200
@@ -152,6 +152,9 @@
             dataid = meta[DATAID]
             # we will just asume stuff is correct if you pass it with a data id
             if dataid not in self.data_store:
+                # XXX issue: if we do not store if we already have the dataid in the store,
+                # XXX deserialization does not work as the fpos does not advance to the next record,
+                # XXX because we do not read from the source file. Remove the check?
                 self.data_store[dataid] = data
         # if something goes wrong below, the data shall be purged by a garbage collection
         metaid = self._store_meta(meta)