From ad1f1738fa9249fdb38e4be80be4841ad7329f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 2 Apr 2016 23:47:41 +0200 Subject: [PATCH] qubes: make 'store' property public (R/O) It makes sense to see from what Qubes object was loaded. --- qubes/__init__.py | 3 +++ qubes/backup.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qubes/__init__.py b/qubes/__init__.py index 1a805cc6..e8758668 100644 --- a/qubes/__init__.py +++ b/qubes/__init__.py @@ -1224,6 +1224,9 @@ class Qubes(PropertyHolder): self.events_enabled = True + @__builtin__.property + def store(self): + return self._store def load(self): '''Open qubes.xml diff --git a/qubes/backup.py b/qubes/backup.py index fd9b0c59..9961eb2b 100644 --- a/qubes/backup.py +++ b/qubes/backup.py @@ -575,8 +575,7 @@ class Backup(object): def backup_do(self): if self.passphrase is None: raise qubes.exc.QubesException("No passphrase set") - # noinspection PyProtectedMember - qubes_xml = self.app._store + qubes_xml = self.app.store self.tmpdir = tempfile.mkdtemp() shutil.copy(qubes_xml, os.path.join(self.tmpdir, 'qubes.xml')) qubes_xml = os.path.join(self.tmpdir, 'qubes.xml')