Account.link_id becomes a private attribute

This commit is contained in:
Romain Bignon 2012-03-10 09:03:26 +01:00
commit 35688f58c9
18 changed files with 37 additions and 30 deletions

View file

@ -90,7 +90,7 @@ class BPBrowser(BaseBrowser):
return self.page.get_account(id)
def get_history(self, Account):
self.location(Account.link_id)
self.location(Account._link_id)
return self.page.get_history()
def make_transfer(self, from_account, to_account, amount):

View file

@ -48,7 +48,7 @@ class AccountList(BasePage):
account = Account()
tmp = line.xpath("./td//a")[0]
account.label = tmp.text
account.link_id = tmp.get("href")
account._link_id = tmp.get("href")
tmp = line.xpath("./td/span/strong")
if len(tmp) >= 2: