Adapt leboncoin to new API

This commit is contained in:
Florent 2014-09-26 10:36:34 +02:00
commit 0b08f614a1
2 changed files with 6 additions and 6 deletions

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 LeboncoinBackend from .module import LeboncoinModule
__all__ = ['LeboncoinBackend'] __all__ = ['LeboncoinModule']

View file

@ -18,16 +18,16 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # 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 weboob.capabilities.housing import CapHousing, Query, Housing, HousingPhoto
from .browser import LeboncoinBrowser from .browser import LeboncoinBrowser
__all__ = ['LeboncoinBackend'] __all__ = ['LeboncoinModule']
class LeboncoinBackend(BaseBackend, CapHousing): class LeboncoinModule(Module, CapHousing):
NAME = 'leboncoin' NAME = 'leboncoin'
DESCRIPTION = u'search house on leboncoin website' DESCRIPTION = u'search house on leboncoin website'
MAINTAINER = u'Bezleputh' MAINTAINER = u'Bezleputh'
@ -35,7 +35,7 @@ class LeboncoinBackend(BaseBackend, CapHousing):
LICENSE = 'AGPLv3+' LICENSE = 'AGPLv3+'
VERSION = '1.0' VERSION = '1.0'
BROWSER = LeboncoinBrowser MODULE = LeboncoinBrowser
RET = {Query.HOUSE_TYPES.HOUSE: '1', RET = {Query.HOUSE_TYPES.HOUSE: '1',
Query.HOUSE_TYPES.APART: '2', Query.HOUSE_TYPES.APART: '2',