disable unused parameter rotating_password

This commit is contained in:
Romain Bignon 2014-02-07 17:08:39 +01:00
commit 13a93d3a9f

View file

@ -43,9 +43,9 @@ class BNPorcBackend(BaseBackend, ICapBank, ICapMessages):
CONFIG = BackendConfig( CONFIG = BackendConfig(
ValueBackendPassword('login', label=u'Numéro client', masked=False), ValueBackendPassword('login', label=u'Numéro client', masked=False),
ValueBackendPassword('password', label=u'Code secret', regexp='^(\d{6}|)$'), ValueBackendPassword('password', label=u'Code secret', regexp='^(\d{6}|)$'),
ValueBackendPassword('rotating_password', default='', #ValueBackendPassword('rotating_password', default='',
label='Password to set when the allowed uses are exhausted (6 digits)', # label='Password to set when the allowed uses are exhausted (6 digits)',
regexp='^(\d{6}|)$'), # regexp='^(\d{6}|)$'),
Value('website', label='Type de compte', default='pp', Value('website', label='Type de compte', default='pp',
choices={'pp': 'Particuliers/Professionnels', 'ent': 'Entreprises'})) choices={'pp': 'Particuliers/Professionnels', 'ent': 'Entreprises'}))
STORAGE = {'seen': []} STORAGE = {'seen': []}
@ -61,10 +61,10 @@ class BNPorcBackend(BaseBackend, ICapBank, ICapMessages):
def create_default_browser(self): def create_default_browser(self):
b = {'pp': BNPorc, 'ent': BNPEnterprise} b = {'pp': BNPorc, 'ent': BNPEnterprise}
self.BROWSER = b[self.config['website'].get()] self.BROWSER = b[self.config['website'].get()]
if self.config['rotating_password'].get().isdigit() and len(self.config['rotating_password'].get()) == 6: #if self.config['rotating_password'].get().isdigit() and len(self.config['rotating_password'].get()) == 6:
rotating_password = self.config['rotating_password'].get() # rotating_password = self.config['rotating_password'].get()
else: #else:
rotating_password = None rotating_password = None
if self.config['website'].get() != 'pp': if self.config['website'].get() != 'pp':
return self.create_browser(self.config['login'].get(), return self.create_browser(self.config['login'].get(),
self.config['password'].get()) self.config['password'].get())