X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fflad%2Ffladc.py;h=6f0347832161edcbea867e703a1d6c6105f7ee11;hb=ad79073f55777a802e6a7bdc7c3a119d6bfe7155;hp=af8ba37584efa514df39effc6033e2d805ce3230;hpb=7f8cd12c390d9c7dacdec849982d7ca28f0a44e2;p=m_lib.git diff --git a/m_lib/flad/fladc.py b/m_lib/flad/fladc.py index af8ba37..6f03478 100644 --- a/m_lib/flad/fladc.py +++ b/m_lib/flad/fladc.py @@ -40,7 +40,7 @@ class Flad_Conf(dict): if len(db) != 1: raise error("incorrect number of records in config file `%s'; expected 1, got %d" % (str(f), len(db))) - self.data = db[0] + self.update(db[0]) def load_from_file(self, f): @@ -50,12 +50,12 @@ class Flad_Conf(dict): if len(db) != 1: raise error("incorrect number of records in config file `%s'; expected 1, got %d" % (str(f), len(db))) - self.data = db[0] + self.update(db[0]) def store_to_file(self, f): db = self.__make_db() - db.append(self.data) + db.append(self) db.store_to_file(f)