limit database usage

This commit is contained in:
2017-07-16 10:57:43 +02:00
parent d445963429
commit dc9454be63
8 changed files with 46 additions and 16 deletions

View File

@ -942,7 +942,7 @@ class Option(OnlyOption):
:param load: `True` if we are at the init of the option description
:type load: bool
"""
if not load and self._get_consistencies() == ():
if not load and not self._has_consistencies():
self._state_consistencies = None
elif load and self._state_consistencies is None:
del(self._state_consistencies)
@ -1195,6 +1195,9 @@ class SymLinkOption(OnlyOption):
def _get_consistencies(self):
return ()
def _has_consistencies(self):
return False
class DynSymLinkOption(object):
__slots__ = ('_dyn', '_opt', '_name')