Commit f3aeddff authored by Florent Fourcot's avatar Florent Fourcot

Rename backend.py to module.py

parent ac5b410b
......@@ -64,7 +64,7 @@ For example, use this command::
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.
* **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.
* **pages.py** - all website's pages handled by the browser are defined here
* **test.py** - functional tests
......@@ -97,7 +97,7 @@ If the last command does not work, check your :doc:`repositories setup </guides/
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):
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):
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,
what are expected returned objects, and what exceptions it may raises.
......
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import SevenFiftyGramsModule
from .module import SevenFiftyGramsModule
__all__ = ['SevenFiftyGramsModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AdeccoModule
from .module import AdeccoModule
__all__ = ['AdeccoModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AgendadulibreModule
from .module import AgendadulibreModule
__all__ = ['AgendadulibreModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AllocineModule
from .module import AllocineModule
__all__ = ['AllocineModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AlloRestoModule
from .module import AlloRestoModule
__all__ = ['AlloRestoModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AllrecipesModule
from .module import AllrecipesModule
__all__ = ['AllrecipesModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AmeliModule
from .module import AmeliModule
__all__ = ['AmeliModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AmeliProModule
from .module import AmeliProModule
__all__ = ['AmeliProModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AmericanExpressModule
from .module import AmericanExpressModule
__all__ = ['AmericanExpressModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ApecModule
from .module import ApecModule
__all__ = ['ApecModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ApivieModule
from .module import ApivieModule
__all__ = ['ApivieModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ArretSurImagesModule
from .module import ArretSurImagesModule
__all__ = ['ArretSurImagesModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ArteModule
from .module import ArteModule
__all__ = ['ArteModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AttilasubModule
from .module import AttilasubModule
__all__ = ['AttilasubModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AudioAddictModule
from .module import AudioAddictModule
__all__ = ['AudioAddictModule']
......@@ -19,6 +19,6 @@
from .browser import AuMBrowser
from .backend import AuMModule
from .module import AuMModule
__all__ = ['AuMBrowser', 'AuMModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import AXABanqueModule
from .module import AXABanqueModule
__all__ = ['AXABanqueModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BanqueAccordModule
from .module import BanqueAccordModule
__all__ = ['BanqueAccordModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BanquePopulaireModule
from .module import BanquePopulaireModule
__all__ = ['BanquePopulaireModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BarclaysModule
from .module import BarclaysModule
__all__ = ['BarclaysModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BatotoModule
from .module import BatotoModule
__all__ = ['BatotoModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BiplanModule
from .module import BiplanModule
__all__ = ['BiplanModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BNPorcModule
from .module import BNPorcModule
__all__ = ['BNPorcModule']
......@@ -19,6 +19,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BoursoramaModule
from .module import BoursoramaModule
__all__ = ['BoursoramaModule']
from .backend import BouyguesModule
from .module import BouyguesModule
__all__ = ['BouyguesModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BPModule
from .module import BPModule
__all__ = ['BPModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BredModule
from .module import BredModule
__all__ = ['BredModule']
from .backend import BTDiggModule
from .module import BTDiggModule
__all__ = ['BTDiggModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import BtmonModule
from .module import BtmonModule
__all__ = ['BtmonModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CaisseEpargneModule
from .module import CaisseEpargneModule
__all__ = ['CaisseEpargneModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CanalplusModule
from .module import CanalplusModule
__all__ = ['CanalplusModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CanalTPModule
from .module import CanalTPModule
__all__ = ['CanalTPModule']
# -*- coding: utf-8 -*-
from .backend import CappedModule
from .module import CappedModule
__all__ = ['CappedModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CarrefourBanqueModule
from .module import CarrefourBanqueModule
__all__ = ['CarrefourBanqueModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CciModule
from .module import CciModule
__all__ = ['CciModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ChampslibresModule
from .module import ChampslibresModule
__all__ = ['ChampslibresModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ChronopostModule
from .module import ChronopostModule
__all__ = ['ChronopostModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CICModule
from .module import CICModule
__all__ = ['CICModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CitelisModule
from .module import CitelisModule
__all__ = ['CitelisModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CmbModule
from .module import CmbModule
__all__ = ['CmbModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CmsoModule
from .module import CmsoModule
__all__ = ['CmsoModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ColispriveModule
from .module import ColispriveModule
__all__ = ['ColispriveModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import ColissimoModule
from .module import ColissimoModule
__all__ = ['ColissimoModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CragrModule
from .module import CragrModule
__all__ = ['CragrModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CreditCooperatifModule
from .module import CreditCooperatifModule
__all__ = ['CreditCooperatifModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CreditDuNordModule
from .module import CreditDuNordModule
__all__ = ['CreditDuNordModule']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CreditMutuelModule
from .module import CreditMutuelModule
__all__ = ['CreditMutuelModule']
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import CuisineazModule
from .module import CuisineazModule
__all__ = ['CuisineazModule']
from .backend import DailymotionModule
from .module import DailymotionModule
__all__ = ['DailymotionModule']
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .backend import DelubacModule
from .module import DelubacModule
__all__ = ['DelubacModule']
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.