Account.link_id becomes a private attribute
This commit is contained in:
parent
679177d450
commit
35688f58c9
18 changed files with 37 additions and 30 deletions
|
|
@ -76,11 +76,11 @@ class BNPorcBackend(BaseBackend, ICapBank):
|
|||
|
||||
def iter_history(self, account):
|
||||
with self.browser:
|
||||
return self.browser.iter_history(account.link_id)
|
||||
return self.browser.iter_history(account._link_id)
|
||||
|
||||
def iter_operations(self, account):
|
||||
with self.browser:
|
||||
return self.browser.iter_coming_operations(account.link_id)
|
||||
return self.browser.iter_coming_operations(account._link_id)
|
||||
|
||||
def iter_transfer_recipients(self, ignored):
|
||||
for account in self.browser.get_transfer_accounts().itervalues():
|
||||
|
|
|
|||
|
|
@ -76,6 +76,8 @@ class BNPorc(BaseBrowser):
|
|||
if self.is_on_page(LoginPage):
|
||||
raise BrowserIncorrectPassword()
|
||||
|
||||
#self.readurl('/SAF_SOA?Action=6')
|
||||
|
||||
def change_password(self, new_password):
|
||||
assert new_password.isdigit() and len(new_password) == 6
|
||||
|
||||
|
|
@ -85,6 +87,9 @@ class BNPorc(BaseBrowser):
|
|||
self.location(buf)
|
||||
assert self.is_on_page(ChangePasswordPage)
|
||||
|
||||
#self.readurl('/banque/portail/particulier/bandeau')
|
||||
#self.readurl('/common/vide.htm')
|
||||
|
||||
self.page.change_password(self.password, new_password)
|
||||
|
||||
if not self.is_on_page(ConfirmPage) or self.page.get_error() is not None:
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class AccountsList(BasePage):
|
|||
if tr.find('td') is not None and tr.find('td').attrib.get('class', '') == 'typeTitulaire':
|
||||
account = Account()
|
||||
account.id = tr.xpath('.//td[@class="libelleCompte"]/input')[0].attrib['id'][len('libelleCompte'):]
|
||||
account.link_id = account.id
|
||||
account._link_id = account.id
|
||||
if len(str(account.id)) == 23:
|
||||
account.id = str(account.id)[5:21]
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import time
|
||||
import re
|
||||
from weboob.tools.mech import ClientForm
|
||||
import urllib
|
||||
|
|
@ -41,13 +42,13 @@ class BNPVirtKeyboard(MappedVirtKeyboard):
|
|||
'9':'828cf0faf86ac78e7f43208907620527'
|
||||
}
|
||||
|
||||
url="/NSImgGrille"
|
||||
url="/NSImgGrille?timestamp=%d"
|
||||
|
||||
color=27
|
||||
|
||||
def __init__(self,basepage):
|
||||
img=basepage.document.find("//img[@usemap='#MapGril']")
|
||||
MappedVirtKeyboard.__init__(self,basepage.browser.openurl(self.url),basepage.document,img,self.color)
|
||||
MappedVirtKeyboard.__init__(self,basepage.browser.openurl(self.url % time.time()),basepage.document,img,self.color)
|
||||
if basepage.browser.responses_dirname is None:
|
||||
basepage.browser.responses_dirname = \
|
||||
tempfile.mkdtemp(prefix='weboob_session_')
|
||||
|
|
@ -135,7 +136,7 @@ class ChangePasswordPage(BasePage):
|
|||
code_current=vk.get_string_code(current)
|
||||
code_new=vk.get_string_code(new)
|
||||
|
||||
data = (('ch1', code_current.replace('4', '3')),
|
||||
data = (('ch1', code_current),
|
||||
('ch2', code_new),
|
||||
('radiobutton3', 'radiobutton'),
|
||||
('ch3', code_new),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue