List market account in bp

closes #1298
This commit is contained in:
Florent 2014-01-31 14:33:03 +01:00
commit edec95bc5d
2 changed files with 4 additions and 2 deletions

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import ICapBank
from weboob.capabilities.bank import ICapBank, Account
from weboob.tools.backend import BaseBackend, BackendConfig
from weboob.tools.value import ValueBackendPassword
@ -49,6 +49,8 @@ class BPBackend(BaseBackend, ICapBank):
return self.browser.get_account(_id)
def iter_history(self, account):
if account.type != Account.TYPE_MARKET:
raise NotImplementedError()
for tr in self.browser.get_history(account):
if not tr._coming:
yield tr

View file

@ -54,7 +54,7 @@ class AccountList(BasePage):
account.label = to_unicode(tmp.text)
account._link_id = tmp.get("href")
if 'BourseEnLigne' in account._link_id:
continue
account.type = Account.TYPE_MARKET
tmp = line.xpath("./td/span/strong")
if len(tmp) >= 2: