qubes: make 'store' property public (R/O)

It makes sense to see from what Qubes object was loaded.
This commit is contained in:
Marek Marczykowski-Górecki 2016-04-02 23:47:41 +02:00 committed by Wojtek Porczyk
parent c55ca8004a
commit ad1f1738fa
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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')