we can pickle object

This commit is contained in:
2014-04-14 22:53:40 +02:00
parent a1753afb8c
commit 9bec52273a
4 changed files with 288 additions and 265 deletions

View File

@ -188,7 +188,8 @@ class OptionDescription(BaseOption, StorageOptionDescription):
:param descr: parent :class:`tiramisu.option.OptionDescription`
"""
if descr is None:
self.impl_build_cache()
self.impl_build_cache_consistency()
self.impl_build_cache_option()
descr = self
super(OptionDescription, self)._impl_getstate(descr)
self._state_group_type = str(self._group_type)
@ -219,7 +220,7 @@ class OptionDescription(BaseOption, StorageOptionDescription):
if descr is None:
self._cache_paths = None
self._cache_consistencies = None
self.impl_build_cache(force_no_consistencies=True)
self.impl_build_cache_option()
descr = self
self._group_type = getattr(groups, self._state_group_type)
del(self._state_group_type)