unserialise information and requires attribute
This commit is contained in:
@ -246,12 +246,13 @@ class StorageBase(object):
|
||||
def _impl_setopt(self, opt):
|
||||
self._opt = opt
|
||||
|
||||
def _impl_convert_informations(self, descr, load=False):
|
||||
def _impl_convert_zinformations(self, descr, load=False):
|
||||
if not load:
|
||||
infos = self._informations
|
||||
if isinstance(infos, tuple):
|
||||
self._state_informations = {}
|
||||
for key, value in infos:
|
||||
for idx, key in enumerate(infos[0]):
|
||||
value = infos[1][idx]
|
||||
self._state_informations[key] = value
|
||||
elif isinstance(infos, str) or isinstance(infos, unicode):
|
||||
self._state_informations = {'doc': infos}
|
||||
|
Reference in New Issue
Block a user