diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-09-11 07:00:44 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-09-11 07:00:44 (GMT) |
commit | 5c1f3b7daa18da4f1fe6243087cf117e268c43b6 (patch) | |
tree | 353b26dc9e8309cce20f1a6a2980afdd572ee894 /src/sugar/datastore/datastore.py | |
parent | c79bc15f5fd68ed9e143c537e53264f5ee77ca6d (diff) |
Revert "Avoid access to private member"
This reverts commit 0cf0cacbd0a3b661c3139b2fc261a0ff971f4797.
Diffstat (limited to 'src/sugar/datastore/datastore.py')
-rw-r--r-- | src/sugar/datastore/datastore.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sugar/datastore/datastore.py b/src/sugar/datastore/datastore.py index d5dca7d..1917b19 100644 --- a/src/sugar/datastore/datastore.py +++ b/src/sugar/datastore/datastore.py @@ -100,8 +100,8 @@ class DSObject(object): metadata = property(get_metadata, set_metadata) - def get_file_path(self, fetch=True): - if fetch and self._file_path is None and not self.object_id is None: + def get_file_path(self): + 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._owns_file = True return self._file_path @@ -249,7 +249,7 @@ def write(ds_object, update_mtime=True, transfer_ownership=False, properties['mtime'] = datetime.now().isoformat() properties['timestamp'] = int(time.time()) - if ds_object.get_file_path(fetch=False) is None: + if ds_object._file_path is None: file_path = '' else: file_path = ds_object._file_path |