Allow changing ownership even though the owner column is not visible.

This commit is contained in:
Pedro Algarvio 2011-08-03 11:59:42 +01:00
parent 808ff02130
commit 4fcfb677a4
2 changed files with 4 additions and 2 deletions

View file

@ -411,6 +411,7 @@ class TorrentView(listview.ListView, component.Component):
client.register_event_handler("TorrentQueueChangedEvent", self.on_torrentqueuechanged_event)
self.search_box = SearchBox(self)
self.permanent_status_keys = ["owner"]
def start(self):
"""Start the torrentview"""
@ -497,8 +498,9 @@ class TorrentView(listview.ListView, component.Component):
status_keys.append(field)
self.columns_to_update.append(column)
# Remove duplicate keys
# Remove duplicates
self.columns_to_update = list(set(self.columns_to_update))
status_keys = list(set(status_keys + self.permanent_status_keys))
return status_keys
def send_status_request(self, columns=None):

View file

@ -87,7 +87,7 @@ class SessionProxy(component.Component):
# of a torrent.
inital_keys = [
'queue', 'state', 'name', 'total_wanted', 'progress', 'state',
'download_payload_rate', 'upload_payload_rate', 'eta'
'download_payload_rate', 'upload_payload_rate', 'eta', 'owner'
]
self.get_torrents_status({'id': torrent_ids}, inital_keys)
return client.core.get_session_state().addCallback(on_get_session_state)