remove unused code, fix timeout of history fetch

This commit is contained in:
Romain Bignon 2015-03-05 20:16:04 +01:00 committed by Romain Bignon
commit 3df00b6395
4 changed files with 141 additions and 547 deletions

View file

@ -47,14 +47,12 @@ class PaypalModule(Module, CapBank):
return self.browser.get_accounts().itervalues()
def get_account(self, _id):
with self.browser:
account = self.browser.get_account(_id)
account = self.browser.get_account(_id)
if account:
return account
else:
raise AccountNotFound()
def iter_history(self, account):
with self.browser:
for history in self.browser.get_download_history(account):
yield history
for history in self.browser.get_download_history(account):
yield history