Revert "Avoid access to private member"
This reverts commit 0cf0cacbd0
.
This commit is contained in:
parent
c79bc15f5f
commit
5c1f3b7daa
@ -100,8 +100,8 @@ class DSObject(object):
|
|||||||
|
|
||||||
metadata = property(get_metadata, set_metadata)
|
metadata = property(get_metadata, set_metadata)
|
||||||
|
|
||||||
def get_file_path(self, fetch=True):
|
def get_file_path(self):
|
||||||
if fetch and self._file_path is None and not self.object_id is None:
|
if self._file_path is None and not self.object_id is None:
|
||||||
self.set_file_path(dbus_helpers.get_filename(self.object_id))
|
self.set_file_path(dbus_helpers.get_filename(self.object_id))
|
||||||
self._owns_file = True
|
self._owns_file = True
|
||||||
return self._file_path
|
return self._file_path
|
||||||
@ -249,7 +249,7 @@ def write(ds_object, update_mtime=True, transfer_ownership=False,
|
|||||||
properties['mtime'] = datetime.now().isoformat()
|
properties['mtime'] = datetime.now().isoformat()
|
||||||
properties['timestamp'] = int(time.time())
|
properties['timestamp'] = int(time.time())
|
||||||
|
|
||||||
if ds_object.get_file_path(fetch=False) is None:
|
if ds_object._file_path is None:
|
||||||
file_path = ''
|
file_path = ''
|
||||||
else:
|
else:
|
||||||
file_path = ds_object._file_path
|
file_path = ds_object._file_path
|
||||||
|
Loading…
Reference in New Issue
Block a user