Rename backend.py to module.py

This commit is contained in:
Florent 2014-09-23 10:09:03 +02:00
commit f3aeddffbc
339 changed files with 175 additions and 175 deletions

View file

@ -64,7 +64,7 @@ For example, use this command::
In a module directory, there are commonly these files: In a module directory, there are commonly these files:
* **__init__.py** - needed in every python modules, it exports your :class:`BaseModule <weboob.tools.backend.BaseModule>` class. * **__init__.py** - needed in every python modules, it exports your :class:`BaseModule <weboob.tools.backend.BaseModule>` class.
* **backend.py** - defines the main class of your module, which derives :class:`BaseModule <weboob.tools.backend.BaseModule>`. * **module.py** - defines the main class of your module, which derives :class:`BaseModule <weboob.tools.backend.BaseModule>`.
* **browser.py** - your browser, derived from :class:`BaseBrowser <weboob.tools.browser2.browser.BaseBrowser>`, is called by your module to interact with the supported website. * **browser.py** - your browser, derived from :class:`BaseBrowser <weboob.tools.browser2.browser.BaseBrowser>`, is called by your module to interact with the supported website.
* **pages.py** - all website's pages handled by the browser are defined here * **pages.py** - all website's pages handled by the browser are defined here
* **test.py** - functional tests * **test.py** - functional tests
@ -97,7 +97,7 @@ If the last command does not work, check your :doc:`repositories setup </guides/
Module class Module class
************* *************
Edit ``backend.py``. It contains the main class of the module derived from :class:`BaseModule <weboob.tools.backend.BaseModule>` class:: Edit ``module.py``. It contains the main class of the module derived from :class:`BaseModule <weboob.tools.backend.BaseModule>` class::
class ExampleModule(BaseModule, CapBank): class ExampleModule(BaseModule, CapBank):
NAME = 'example' # The name of module NAME = 'example' # The name of module
@ -170,7 +170,7 @@ You need to implement each method of all of the capabilities your module impleme
def iter_coming(self, account): def iter_coming(self, account):
raise NotImplementedError() raise NotImplementedError()
If you ran the ``boilerplate`` script command ``cap``, every methods are already in ``backend.py`` and documented. If you ran the ``boilerplate`` script command ``cap``, every methods are already in ``module.py`` and documented.
Read :class:`documentation of the capability <weboob.capabilities.bank.CapBank>` to know what are types of arguments, Read :class:`documentation of the capability <weboob.capabilities.bank.CapBank>` to know what are types of arguments,
what are expected returned objects, and what exceptions it may raises. what are expected returned objects, and what exceptions it may raises.

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import SevenFiftyGramsModule from .module import SevenFiftyGramsModule
__all__ = ['SevenFiftyGramsModule'] __all__ = ['SevenFiftyGramsModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AdeccoModule from .module import AdeccoModule
__all__ = ['AdeccoModule'] __all__ = ['AdeccoModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AgendadulibreModule from .module import AgendadulibreModule
__all__ = ['AgendadulibreModule'] __all__ = ['AgendadulibreModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AllocineModule from .module import AllocineModule
__all__ = ['AllocineModule'] __all__ = ['AllocineModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AlloRestoModule from .module import AlloRestoModule
__all__ = ['AlloRestoModule'] __all__ = ['AlloRestoModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AllrecipesModule from .module import AllrecipesModule
__all__ = ['AllrecipesModule'] __all__ = ['AllrecipesModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AmeliModule from .module import AmeliModule
__all__ = ['AmeliModule'] __all__ = ['AmeliModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AmeliProModule from .module import AmeliProModule
__all__ = ['AmeliProModule'] __all__ = ['AmeliProModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AmericanExpressModule from .module import AmericanExpressModule
__all__ = ['AmericanExpressModule'] __all__ = ['AmericanExpressModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ApecModule from .module import ApecModule
__all__ = ['ApecModule'] __all__ = ['ApecModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ApivieModule from .module import ApivieModule
__all__ = ['ApivieModule'] __all__ = ['ApivieModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ArretSurImagesModule from .module import ArretSurImagesModule
__all__ = ['ArretSurImagesModule'] __all__ = ['ArretSurImagesModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ArteModule from .module import ArteModule
__all__ = ['ArteModule'] __all__ = ['ArteModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AttilasubModule from .module import AttilasubModule
__all__ = ['AttilasubModule'] __all__ = ['AttilasubModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AudioAddictModule from .module import AudioAddictModule
__all__ = ['AudioAddictModule'] __all__ = ['AudioAddictModule']

View file

@ -19,6 +19,6 @@
from .browser import AuMBrowser from .browser import AuMBrowser
from .backend import AuMModule from .module import AuMModule
__all__ = ['AuMBrowser', 'AuMModule'] __all__ = ['AuMBrowser', 'AuMModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AXABanqueModule from .module import AXABanqueModule
__all__ = ['AXABanqueModule'] __all__ = ['AXABanqueModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BanqueAccordModule from .module import BanqueAccordModule
__all__ = ['BanqueAccordModule'] __all__ = ['BanqueAccordModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BanquePopulaireModule from .module import BanquePopulaireModule
__all__ = ['BanquePopulaireModule'] __all__ = ['BanquePopulaireModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BarclaysModule from .module import BarclaysModule
__all__ = ['BarclaysModule'] __all__ = ['BarclaysModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BatotoModule from .module import BatotoModule
__all__ = ['BatotoModule'] __all__ = ['BatotoModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BiplanModule from .module import BiplanModule
__all__ = ['BiplanModule'] __all__ = ['BiplanModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BNPorcModule from .module import BNPorcModule
__all__ = ['BNPorcModule'] __all__ = ['BNPorcModule']

View file

@ -19,6 +19,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BoursoramaModule from .module import BoursoramaModule
__all__ = ['BoursoramaModule'] __all__ = ['BoursoramaModule']

View file

@ -1,3 +1,3 @@
from .backend import BouyguesModule from .module import BouyguesModule
__all__ = ['BouyguesModule'] __all__ = ['BouyguesModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BPModule from .module import BPModule
__all__ = ['BPModule'] __all__ = ['BPModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BredModule from .module import BredModule
__all__ = ['BredModule'] __all__ = ['BredModule']

View file

@ -1,3 +1,3 @@
from .backend import BTDiggModule from .module import BTDiggModule
__all__ = ['BTDiggModule'] __all__ = ['BTDiggModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BtmonModule from .module import BtmonModule
__all__ = ['BtmonModule'] __all__ = ['BtmonModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CaisseEpargneModule from .module import CaisseEpargneModule
__all__ = ['CaisseEpargneModule'] __all__ = ['CaisseEpargneModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CanalplusModule from .module import CanalplusModule
__all__ = ['CanalplusModule'] __all__ = ['CanalplusModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CanalTPModule from .module import CanalTPModule
__all__ = ['CanalTPModule'] __all__ = ['CanalTPModule']

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from .backend import CappedModule from .module import CappedModule
__all__ = ['CappedModule'] __all__ = ['CappedModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CarrefourBanqueModule from .module import CarrefourBanqueModule
__all__ = ['CarrefourBanqueModule'] __all__ = ['CarrefourBanqueModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CciModule from .module import CciModule
__all__ = ['CciModule'] __all__ = ['CciModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ChampslibresModule from .module import ChampslibresModule
__all__ = ['ChampslibresModule'] __all__ = ['ChampslibresModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ChronopostModule from .module import ChronopostModule
__all__ = ['ChronopostModule'] __all__ = ['ChronopostModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CICModule from .module import CICModule
__all__ = ['CICModule'] __all__ = ['CICModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CitelisModule from .module import CitelisModule
__all__ = ['CitelisModule'] __all__ = ['CitelisModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CmbModule from .module import CmbModule
__all__ = ['CmbModule'] __all__ = ['CmbModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CmsoModule from .module import CmsoModule
__all__ = ['CmsoModule'] __all__ = ['CmsoModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ColispriveModule from .module import ColispriveModule
__all__ = ['ColispriveModule'] __all__ = ['ColispriveModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ColissimoModule from .module import ColissimoModule
__all__ = ['ColissimoModule'] __all__ = ['ColissimoModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CragrModule from .module import CragrModule
__all__ = ['CragrModule'] __all__ = ['CragrModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CreditCooperatifModule from .module import CreditCooperatifModule
__all__ = ['CreditCooperatifModule'] __all__ = ['CreditCooperatifModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CreditDuNordModule from .module import CreditDuNordModule
__all__ = ['CreditDuNordModule'] __all__ = ['CreditDuNordModule']

View file

@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CreditMutuelModule from .module import CreditMutuelModule
__all__ = ['CreditMutuelModule'] __all__ = ['CreditMutuelModule']

View file

@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CuisineazModule from .module import CuisineazModule
__all__ = ['CuisineazModule'] __all__ = ['CuisineazModule']

View file

@ -1,3 +1,3 @@
from .backend import DailymotionModule from .module import DailymotionModule
__all__ = ['DailymotionModule'] __all__ = ['DailymotionModule']

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import DelubacModule from .module import DelubacModule
__all__ = ['DelubacModule'] __all__ = ['DelubacModule']

Some files were not shown because too many files have changed in this diff Show more