Commit 9bcc66f1 authored by Tim Peters's avatar Tim Peters

Collector #1517: History tab for ZPT does not work

FileStorage.history() was reading the user, description,
and extension fields out of the object pickle, due to
starting the read at a wrong location.
parent a150bc65
......@@ -1259,16 +1259,14 @@ class FileStorage(BaseStorage.BaseStorage,
wantver = None
th = self._read_txn_header(h.tloc)
user_name = self._file.read(th.ulen)
description = self._file.read(th.dlen)
if th.elen:
d = loads(self._file.read(th.elen))
if th.ext:
d = loads(th.ext)
else:
d = {}
d.update({"time": TimeStamp(h.tid).timeTime(),
"user_name": user_name,
"description": description,
"user_name": th.user,
"description": th.descr,
"tid": h.tid,
"version": h.version,
"size": h.plen,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment