Move ItemListTable-Element outside of page.py

One of the goal is to not import all modules needed by filters by
loading the page file.

In the same goal, move the import of parsers in the class definition.
This commit is contained in:
Florent 2014-07-08 19:59:37 +02:00
commit 76cb004eb4
33 changed files with 305 additions and 265 deletions

View file

@ -24,7 +24,8 @@ import lxml.html as html
from datetime import datetime
from decimal import Decimal
from weboob.tools.browser2.page import HTMLPage, method, ItemElement, ListElement, LoggedPage
from weboob.tools.browser2.page import HTMLPage, method, LoggedPage
from weboob.tools.browser2.elements import ItemElement, ListElement
from weboob.tools.browser2.filters import Date, CleanText, Attr, Filter,\
CleanDecimal, Regexp, Field, DateTime, Format, Env
from weboob.capabilities.bill import Detail, Bill

View file

@ -19,7 +19,8 @@
from .history import BadUTF8Page
from weboob.capabilities.bill import Subscription
from weboob.tools.browser2.page import method, ListElement, ItemElement
from weboob.tools.browser2.page import method
from weboob.tools.browser2.elements import ListElement, ItemElement
from weboob.tools.browser2.filters import CleanText, Attr, Field, Format, Filter
__all__ = ['HomePage']