From 27c32c01b4f3d8cd7e354998a225bad0c4183651 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Tue, 11 May 2010 17:04:47 +0200 Subject: [PATCH] remove no-maintained dummy frontend --- weboob/frontends/dummy/__init__.py | 21 ---------- weboob/frontends/dummy/application.py | 56 --------------------------- weboob/frontends/dummy/dummy | 26 ------------- 3 files changed, 103 deletions(-) delete mode 100644 weboob/frontends/dummy/__init__.py delete mode 100644 weboob/frontends/dummy/application.py delete mode 100755 weboob/frontends/dummy/dummy diff --git a/weboob/frontends/dummy/__init__.py b/weboob/frontends/dummy/__init__.py deleted file mode 100644 index 80d94673..00000000 --- a/weboob/frontends/dummy/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- - -""" -Copyright(C) 2010 Christophe Benz - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -""" - -from .application import Dummy diff --git a/weboob/frontends/dummy/application.py b/weboob/frontends/dummy/application.py deleted file mode 100644 index c641f972..00000000 --- a/weboob/frontends/dummy/application.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai - -""" -Copyright(C) 2010 Romain Bignon, Christophe Benz - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -""" - -from weboob.capabilities.bank import ICapBank -from weboob.capabilities.messages import ICapMessages, ICapMessagesReply -from weboob.capabilities.travel import ICapTravel -from weboob.tools.application import BaseApplication - -class Dummy(BaseApplication): - APPNAME = 'dummy' - - def main(self, argv): - self.load_backends() - - for backend in self.weboob.iter_backends(): - print 'Backend [%s]' % backend.name - if backend.has_caps(ICapMessages): - print '|- ICapMessages [Print its messages]' - for message in backend.iter_messages(): - print '| |- %s' % message - if backend.has_caps(ICapMessagesReply): - print '|- ICapMessagesReply [TODO]' - if backend.has_caps(ICapTravel): - print '|- ICapTravel.stations [Search station \'defense\']' - s = None - for station in backend.iter_station_search('defense'): - print '| |- [%s] %s' % (station.id, station.name) - if s is None: - s = station.id - print '|- ICapTravel.departures [Departures from \'%s\']' % s - for departure in backend.iter_station_departures(s): - print '| |- [%s] %s at %s to %s' % (departure.id, departure.type, departure.time.strftime("%H:%M"), - departure.arrival_station) - if backend.has_caps(ICapBank): - for account in backend.iter_accounts(): - print '| |- [%s] label=%s balance=%s coming=%s' % ( - account.id, account.label, account.balance, account.coming) diff --git a/weboob/frontends/dummy/dummy b/weboob/frontends/dummy/dummy deleted file mode 100755 index 96a96718..00000000 --- a/weboob/frontends/dummy/dummy +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai - -""" -Copyright(C) 2010 Christophe Benz - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -""" - -from weboob.frontends.dummy import Dummy - -if __name__ == '__main__': - Dummy.run()