Add 'Owner' filter

This commit is contained in:
Andrew Resch 2010-09-03 15:15:29 -07:00
parent bf715d90fd
commit 64022d7bc7
2 changed files with 6 additions and 1 deletions

View File

@ -116,6 +116,10 @@ class FilterManager(component.Component):
self.register_filter("tracker_host", tracker_error_filter)
def _init_users_tree():
return {"": 0}
self.register_tree_field("owner", _init_users_tree)
def filter_torrent_ids(self, filter_dict):
"""
returns a list of torrent_id's matching filter_dict.

View File

@ -60,7 +60,8 @@ STATE_PIX = {
TRANSLATE = {
"state": "States",
"tracker_host": "Trackers",
"label": "Labels"
"label": "Labels",
"owner": "Owner"
}
FILTER_COLUMN = 5