Commit 6f293a4c authored by Andreas Jung's avatar Andreas Jung

Appearently in former versions 'serial' was used as key to

store history informations. In ZODB 2.8 'tid' is used.
At least the management screen is showing up again however
the 'description' value shows only garbage. Also there might a 
problem with backward compatibility.
parent bda73578
......@@ -60,6 +60,7 @@ class Historian(Implicit):
def __getitem__(self, key):
self=self.aq_parent
print 'key', key
serial=apply(pack, ('>HHHH',)+tuple(map(int, key.split('.'))))
if serial == self._p_serial: return self
......@@ -121,7 +122,7 @@ class Historical(ExtensionClass.Base):
for d in r:
d['time']=DateTime(d['time'])
d['key']='.'.join(map(str, unpack(">HHHH", d['serial'])))
d['key']='.'.join(map(str, unpack(">HHHH", d['tid'])))
return r
......
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