capabilities objets inherit from CapBaseObject (refs #369)

This commit is contained in:
Romain Bignon 2010-08-12 17:22:04 +02:00
commit e980e040ba
20 changed files with 126 additions and 102 deletions

View file

@ -42,7 +42,7 @@ class Weboorrents(ConsoleApplication):
found = 0
for backend, torrent in self.do('get_torrent', _id, backends=backend_name):
if torrent:
self.format(torrent, backend.name)
self.format(torrent)
found = 1
if not found:
@ -67,4 +67,4 @@ class Weboorrents(ConsoleApplication):
def command_search(self, pattern=None):
self.set_formatter_header(u'Search pattern: %s' % pattern if pattern else u'Latest torrents')
for backend, torrent in self.do('iter_torrents', pattern=pattern):
self.format(torrent, backend.name)
self.format(torrent)