Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/db/directory.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/db/directory.py')
-rw-r--r--sugar_network/db/directory.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/sugar_network/db/directory.py b/sugar_network/db/directory.py
index a59992c..d27f0e0 100644
--- a/sugar_network/db/directory.py
+++ b/sugar_network/db/directory.py
@@ -71,15 +71,16 @@ class Directory(object):
ts = self._index.checkpoint()
self.broadcast({'event': 'populate', 'mtime': ts})
- def path(self, guid, prop=None):
+ def path(self, guid, *args):
record = self._storage.get(guid)
- if not prop:
+ if not args:
return record.path()
+ prop = args[0]
if prop in self.metadata and \
isinstance(self.metadata[prop], BlobProperty):
- return record.blob_path(prop)
+ return record.blob_path(*args)
else:
- return record.path(prop)
+ return record.path(*args)
def wipe(self):
self.close()