Commit 5446e41e authored by Christophe Benz's avatar Christophe Benz

new frontend monfric

parent 97f3d22b
#!/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
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.monfric import MonFric
if __name__ == '__main__':
#!/usr/bin/env python
from weboob import Weboob
from import ICapBank
from import BaseApplication
from import YamlConfig
class MonFric(BaseApplication):
APPNAME = 'monfric'
CONFIG = dict(backend='', account='')
def main(self, argv):
requested_backend = self.config.get('backend')
requested_account = self.config.get('account')
if not requested_backend or not requested_account :
raise Exception(u'Please provide backend and account keys in config file "%s"' % self.config.path)
for account in self.weboob.backends[requested_backend].iter_accounts():
if account.label == requested_account:
print account.balance
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