From 92a2ebc41787affd8cfdee150029d3eee1f102e7 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Tue, 11 May 2010 15:03:25 +0200 Subject: [PATCH] remove deprecated application monfric --- scripts/monfric | 26 -------------------- weboob/frontends/boobank/monfric.py | 37 ----------------------------- 2 files changed, 63 deletions(-) delete mode 100755 scripts/monfric delete mode 100644 weboob/frontends/boobank/monfric.py diff --git a/scripts/monfric b/scripts/monfric deleted file mode 100755 index 406b683e..00000000 --- a/scripts/monfric +++ /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.boobank import MonFric - -if __name__ == '__main__': - MonFric.run() diff --git a/weboob/frontends/boobank/monfric.py b/weboob/frontends/boobank/monfric.py deleted file mode 100644 index 802de933..00000000 --- a/weboob/frontends/boobank/monfric.py +++ /dev/null @@ -1,37 +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 weboob.capabilities.bank import ICapBank -from weboob.tools.application import BaseApplication, ConfigError - -class MonFric(BaseApplication): - APPNAME = 'monfric' - CONFIG = dict(backend='', account='') - - def main(self, argv): - self.load_config() - requested_backend = self.config.get('backend') - requested_account = self.config.get('account') - if not requested_backend or not requested_account : - raise ConfigError(u'Please provide "backend" and "account" keys in config file "%s".' % self.config.path) - self.weboob.load_backends(ICapBank) - for account in self.weboob.backends[requested_backend].iter_accounts(): - if account.label == requested_account: - print account.balance