constants.py 796 Bytes
Newer Older
1
from weboob.capabilities.housing import POSTS_TYPES, HOUSE_TYPES
2 3

QUERY_TYPES = {
4
    POSTS_TYPES.RENT: 'location',
5 6
    POSTS_TYPES.SALE: 'achat',
    POSTS_TYPES.FURNISHED_RENT: 'location'
7 8 9
}

QUERY_HOUSE_TYPES = {
10
    HOUSE_TYPES.APART: ['appartement', 'appartement-meuble'],
11 12 13
    HOUSE_TYPES.HOUSE: ['maison'],
    HOUSE_TYPES.PARKING: ['parking'],
    HOUSE_TYPES.LAND: ['terrain'],
14
    HOUSE_TYPES.OTHER: ['chambre',
15
                        'local-commercial', 'immeuble']
16 17 18
}

AVAILABLE_TYPES = {
19
    POSTS_TYPES.RENT: ['appartement', 'maison', 'parking', 'chambre',
20
                       'local-commercial'],
21
    POSTS_TYPES.SALE: ['appartement', 'maison', 'parking', 'local-commercial',
22 23
                       'terrain', 'immeuble'],
    POSTS_TYPES.FURNISHED_RENT: ['appartement-meuble']
24
}