result = data.split(self.list_separator)
return result
- def _unpack_dict(self, data):
- values = []
- for attr in self._fields:
- values.append(data[attr])
- return values
-
- def make_packed_dict(self, packed_dict):
- '''Creates a new instance of Gkey from a dictionary
-
- @param packed_dict: data inside a dictionary
- @return new GKEY instance containing the data
- '''
- return GKEY._make(self._unpack_dict(packed_dict))
-
def make_packed(self, packed_string):
'''Creates a new instance of Gkey from the packed
value string
logger.debug("Seed: load; IOError occurred while loading file")
self._error(err)
return False
- # initialize a dummy instance, so it can make new ones
- gkey = GKEY._make([None,None,None,None,None,None])
for seed in seedlines.items():
#try:
- self.seeds.append(gkey.make_packed_dict(seed[1]))
+ self.seeds.append(GKEY(**seed[1]))
#except Exception as err:
#logger.debug("Seed: load; Error splitting seed: %s" % seed)
#logger.debug("Seed: load; ...............parts: %s" % str(parts))