fix reg_torrents_POST

This commit is contained in:
Martijn Voncken 2008-03-26 20:47:56 +00:00
parent 8fb22554f2
commit b446bc0c15
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ def reg_torrents_POST(url_name, proxy_command):
def POST(self, torrent_ids):
getattr(proxy, proxy_command)(torrent_ids)
do_redirect()
_page_class.__name__ = "TORRENTS_POST:" + proxy_command
route("/torrent/%s/(.*)" % url_name, _page_class)
reg_torrents_POST("start", "resume_torrent")