Moved LRU to gramps.gen.utils
This commit is contained in:
parent
4913762d70
commit
283ac0f8bb
@ -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:
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user