Adapt leboncoin to new API
This commit is contained in:
parent
0f4f1222b7
commit
0b08f614a1
2 changed files with 6 additions and 6 deletions
|
|
@ -18,7 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from .backend import LeboncoinBackend
|
||||
from .module import LeboncoinModule
|
||||
|
||||
|
||||
__all__ = ['LeboncoinBackend']
|
||||
__all__ = ['LeboncoinModule']
|
||||
|
|
|
|||
|
|
@ -18,16 +18,16 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from weboob.tools.backend import BaseBackend
|
||||
from weboob.tools.backend import Module
|
||||
from weboob.capabilities.housing import CapHousing, Query, Housing, HousingPhoto
|
||||
|
||||
from .browser import LeboncoinBrowser
|
||||
|
||||
|
||||
__all__ = ['LeboncoinBackend']
|
||||
__all__ = ['LeboncoinModule']
|
||||
|
||||
|
||||
class LeboncoinBackend(BaseBackend, CapHousing):
|
||||
class LeboncoinModule(Module, CapHousing):
|
||||
NAME = 'leboncoin'
|
||||
DESCRIPTION = u'search house on leboncoin website'
|
||||
MAINTAINER = u'Bezleputh'
|
||||
|
|
@ -35,7 +35,7 @@ class LeboncoinBackend(BaseBackend, CapHousing):
|
|||
LICENSE = 'AGPLv3+'
|
||||
VERSION = '1.0'
|
||||
|
||||
BROWSER = LeboncoinBrowser
|
||||
MODULE = LeboncoinBrowser
|
||||
|
||||
RET = {Query.HOUSE_TYPES.HOUSE: '1',
|
||||
Query.HOUSE_TYPES.APART: '2',
|
||||
Loading…
Add table
Add a link
Reference in a new issue