diff --git a/weboob/frontends/dummy/__init__.py b/weboob/frontends/dummy/__init__.py new file mode 100644 index 00000000..80d94673 --- /dev/null +++ b/weboob/frontends/dummy/__init__.py @@ -0,0 +1,21 @@ +# -*- 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/scripts/dummy b/weboob/frontends/dummy/application.py old mode 100755 new mode 100644 similarity index 95% rename from scripts/dummy rename to weboob/frontends/dummy/application.py index 2218a515..fffa9dbf --- a/scripts/dummy +++ b/weboob/frontends/dummy/application.py @@ -3,7 +3,7 @@ # vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai """ -Copyright(C) 2010 Romain Bignon +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 @@ -25,7 +25,7 @@ from weboob.capabilities.messages import ICapMessages, ICapMessagesReply from weboob.capabilities.travel import ICapTravel from weboob.tools.application import BaseApplication -class Application(BaseApplication): +class Dummy(BaseApplication): APPNAME = 'dummy' def main(self, argv): @@ -54,6 +54,3 @@ class Application(BaseApplication): for account in backend.iter_accounts(): print '| |- [%s] label=%s balance=%s coming=%s' % ( account.id, account.label, account.balance, account.coming) - -if __name__ == '__main__': - Application.run() diff --git a/weboob/frontends/dummy/dummy b/weboob/frontends/dummy/dummy new file mode 100755 index 00000000..96a96718 --- /dev/null +++ b/weboob/frontends/dummy/dummy @@ -0,0 +1,26 @@ +#!/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()