Moved LRU to gramps.gen.utils

This commit is contained in:
Doug Blank 2016-06-02 16:41:00 -04:00
parent 4913762d70
commit 283ac0f8bb
3 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,8 @@
Proxy class for the Gramps databases. Caches lookups from handles. Proxy class for the Gramps databases. Caches lookups from handles.
""" """
from gramps.gen.utils.lru import LRU
class CacheProxyDb: class CacheProxyDb:
""" """
A Proxy for a database with cached lookups on handles. A Proxy for a database with cached lookups on handles.
@ -52,7 +54,6 @@ class CacheProxyDb:
Clears all caches if handle is None, or Clears all caches if handle is None, or
specific entry. specific entry.
""" """
from gramps.gui.views.treemodels.lru import LRU
if handle: if handle:
del self.cache_handle[handle] del self.cache_handle[handle]
else: else:

View File

@ -25,7 +25,7 @@
# Gramps modules # Gramps modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from .lru import LRU from gramps.gen.utils.lru import LRU
from gramps.gen.config import config from gramps.gen.config import config
class BaseModel: class BaseModel: