add marker for possible future change: check for new index upon call to indeTrack()

This commit is contained in:
Helmut Merz 2014-02-28 17:09:42 +01:00
parent d4d7a47b09
commit 2bc3267e9b

View file

@ -1,5 +1,5 @@
# #
# Copyright (c) 2011 Helmut Merz helmutm@cy55.de # Copyright (c) 2014 Helmut Merz helmutm@cy55.de
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -18,8 +18,6 @@
""" """
ZODB-/BTree-based implementation of user interaction tracking. ZODB-/BTree-based implementation of user interaction tracking.
$Id$
""" """
import time import time
@ -237,6 +235,7 @@ class TrackingStorage(BTreeContainer):
self.unindexTrack(trackNum, track) self.unindexTrack(trackNum, track)
def indexTrack(self, trackNum, track, idx=None): def indexTrack(self, trackNum, track, idx=None):
#self.setupIndexes()
if not trackNum: if not trackNum:
trackNum = int(track.__name__) trackNum = int(track.__name__)
data = track.indexdata data = track.indexdata