Author: damoxc
Revision: 6158
Log:
add the full path to the info returned by the file tree
Diff:
Modified: trunk/deluge/ui/web/json_api.py
===================================================================
--- trunk/deluge/ui/web/json_api.py 2010-01-26 18:18:14 UTC (rev 6157)
+++ trunk/deluge/ui/web/json_api.py 2010-01-26 18:20:43 UTC (rev 6158)
@@ -538,6 +538,7 @@
torrent_file["progress"] = file_progress[index]
torrent_file["priority"] = file_priorities[index]
torrent_file["index"] = index
+ torrent_file["path"] = path
info[path] = torrent_file
# update the directory info
@@ -554,6 +555,7 @@
progresses = dirinfo.setdefault("progresses", [])
progresses.append(torrent_file["progress"])
dirinfo["progress"] = float(sum(progresses)) / len(progresses)
+ dirinfo["path"] = dirname
dirname = os.path.dirname(dirname)
def walk(path, item):
--
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en.