Commit aa659761 authored by Lucas Ficheux's avatar Lucas Ficheux Committed by ntome

[themisbanque] Port to Python 3

Ported to Python 3 while assuring Python 2
compatibility
parent 9ab5b3c9
......@@ -29,14 +29,14 @@ class ThemisBrowser(LoginBrowser):
TIMEOUT = 90
home = URL('/es@b/fr/esab.jsp')
login = URL('/es@b/fr/codeident.jsp', LoginPage)
login_confirm = URL('/es@b/servlet/internet0.ressourceWeb.servlet.Login', LoginConfirmPage)
home = URL(r'/es@b/fr/esab.jsp')
login = URL(r'/es@b/fr/codeident.jsp', LoginPage)
login_confirm = URL(r'/es@b/servlet/internet0.ressourceWeb.servlet.Login', LoginConfirmPage)
accounts = URL(r'/es@b/servlet/internet0.ressourceWeb.servlet.PremierePageServlet\?pageToTreatError=fr/Infos.jsp&dummyDate=',
r'/es@b/servlet/internet0.ressourceWeb.servlet.PremierePageServlet\?cryptpara=.*',
r'/es@b/servlet/internet0.ressourceWeb.servlet.EsabServlet.*',
AccountsPage)
history = URL('/es@b/servlet/internet0.ressourceWeb.servlet.ListeDesMouvementsServlet.*', HistoryPage)
history = URL(r'/es@b/servlet/internet0.ressourceWeb.servlet.ListeDesMouvementsServlet.*', HistoryPage)
rib = URL(r'/es@b/fr/rib.jsp\?cryptpara=.*', RibPage)
rib_pdf = URL(r'/es@b/servlet/internet0.ressourceWeb.servlet.RibPdfDownloadServlet', RibPDFPage)
......
......@@ -17,6 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
from weboob.tools.backend import Module, BackendConfig
from weboob.capabilities.bank import CapBank, AccountNotFound
......@@ -31,14 +32,15 @@ __all__ = ['ThemisModule']
class ThemisModule(Module, CapBank, CapProfile):
NAME = 'themisbanque'
DESCRIPTION = u'Themis'
MAINTAINER = u'Romain Bignon'
DESCRIPTION = 'Themis'
MAINTAINER = 'Romain Bignon'
EMAIL = 'romain@weboob.org'
LICENSE = 'LGPLv3+'
VERSION = '1.6'
CONFIG = BackendConfig(ValueBackendPassword('login', label=u"Numéro d'abonné", masked=False),
ValueBackendPassword('password', label='Code secret'),
)
CONFIG = BackendConfig(
ValueBackendPassword('login', label="Numéro d'abonné", masked=False),
ValueBackendPassword('password', label='Code secret'),
)
BROWSER = ThemisBrowser
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment