diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-08-08 14:06:32 +0200 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-08-08 14:07:36 +0200 |
commit | ad7477c7a78117f54843c91afe67259b05768ea4 (patch) | |
tree | 058310af5930c4baf4b28a4eb93026536f5acae3 | |
parent | b80d10f56d44a3c9887c8ab3fe4af4220cc049c6 (diff) | |
download | firstaidkit-ad7477c7a78117f54843c91afe67259b05768ea4.tar.gz firstaidkit-ad7477c7a78117f54843c91afe67259b05768ea4.tar.xz firstaidkit-ad7477c7a78117f54843c91afe67259b05768ea4.zip |
We don't need the cleanup_persistent function any more.
-rw-r--r-- | pyfirstaidkit/utils/backup.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pyfirstaidkit/utils/backup.py b/pyfirstaidkit/utils/backup.py index f8db54a..a0be9e9 100644 --- a/pyfirstaidkit/utils/backup.py +++ b/pyfirstaidkit/utils/backup.py @@ -51,8 +51,6 @@ class BackupStoreInterface(object): raise NotImplemented() def cleanup(self): raise NotImplemented() - def cleanup_persistent(self): - raise NotImplemented() def exists(self, name = None, path = None): raise NotImplemented() @@ -86,7 +84,7 @@ class FileBackupStore(BackupStoreInterface): pickle.dump((self._id, self._data, self._origin), f, pickle.HIGHEST_PROTOCOL) f.close() return True - + def loadMeta(self): f = open(os.path.join(self._path, self._metafile), "rb") (id, data, origin) = pickle.load(f) @@ -137,7 +135,7 @@ class FileBackupStore(BackupStoreInterface): f.close() self._data[name] = (stored, None) - + self.saveMeta() return True @@ -200,7 +198,7 @@ class FileBackupStore(BackupStoreInterface): del self._data[name] if origin is not None: del self._origin[origin] - + self.saveMeta() return True |