Show save_path in TorrentDetails.

This commit is contained in:
Andrew Resch 2007-10-05 00:30:19 +00:00
parent c2f7c362b3
commit cc7d7e8c62
4 changed files with 556 additions and 553 deletions

1
TODO
View File

@ -10,5 +10,4 @@
* Change the menubar.py gtkui component to menus.py and add support for plugins
to add menuitems to the torrentmenu in an easy way.
* Restart daemon function
* Sync the details pane to current trunk
* Docstrings!

View File

@ -149,7 +149,8 @@ class Torrent:
"eta": self.get_eta(),
"ratio": self.get_ratio(),
"tracker": status.current_tracker,
"tracker_status": self.tracker_status
"tracker_status": self.tracker_status,
"save_path": self.save_path
}
# Create the desired status dictionary and return it

File diff suppressed because it is too large Load Diff

View File

@ -71,6 +71,7 @@ class TorrentDetails:
self.tracker_status = glade.get_widget("summary_tracker_status")
self.next_announce = glade.get_widget("summary_next_announce")
self.eta = glade.get_widget("summary_eta")
self.torrent_path = glade.get_widget("summary_torrent_path")
def update(self):
# Only update if this page is showing
@ -93,7 +94,7 @@ class TorrentDetails:
"total_payload_upload", "download_payload_rate",
"upload_payload_rate", "num_peers", "num_seeds", "total_peers",
"total_seeds", "eta", "ratio", "tracker", "next_announce",
"tracker_status"]
"tracker_status", "save_path"]
status = functions.get_torrent_status(self.core,
selected,
status_keys)
@ -133,6 +134,7 @@ class TorrentDetails:
self.tracker_status.set_text(status["tracker_status"])
self.next_announce.set_text(
deluge.common.ftime(status["next_announce"]))
self.torrent_path.set_text(status["save_path"])
def clear(self):
# Only update if this page is showing