Use lambda function, remove old browser1 code
This commit is contained in:
parent
2ab48d4800
commit
e986d96daa
2 changed files with 2 additions and 6 deletions
|
|
@ -64,8 +64,7 @@ class TitreHistory(HTMLPage):
|
||||||
class item(ItemElement):
|
class item(ItemElement):
|
||||||
klass = Transaction
|
klass = Transaction
|
||||||
|
|
||||||
def condition(self):
|
condition = lambda self: len(self.el.xpath('td[@class="impaire"]')) > 0
|
||||||
return len(self.el.xpath('td[@class="impaire"]')) > 0
|
|
||||||
|
|
||||||
obj_raw = Transaction.Raw('td[4] | td[3]/a')
|
obj_raw = Transaction.Raw('td[4] | td[3]/a')
|
||||||
obj_date = Date(CleanText('td[2]'), dayfirst=True)
|
obj_date = Date(CleanText('td[2]'), dayfirst=True)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright(C) 2009-2011 Romain Bignon, Florent Fourcot
|
# Copyright(C) 2009-2014 Romain Bignon, Florent Fourcot
|
||||||
#
|
#
|
||||||
# This file is part of weboob.
|
# This file is part of weboob.
|
||||||
#
|
#
|
||||||
|
|
@ -135,9 +135,6 @@ class TransferPage(LoggedPage, HTMLPage):
|
||||||
|
|
||||||
|
|
||||||
class TransferConfirmPage(HTMLPage):
|
class TransferConfirmPage(HTMLPage):
|
||||||
def on_loaded(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def confirm(self, password):
|
def confirm(self, password):
|
||||||
try:
|
try:
|
||||||
vk = INGVirtKeyboard(self)
|
vk = INGVirtKeyboard(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue