# coding: UTF-8
 
import json
import re
from base.model import Model
from base.common import *

CONFIG = {
	'wardrobe':'wardrobe',
	'sofa':'sofa',
	'tv':'tv',
	'fridge':'fridge',
	'washer':'washer',
	'aircondition':'aircondition',
	'waterheater':'waterheater',
	'broadband':'broadband',
	'heating':'heating',
	'microwave':'microwave',
	'exclusive':'exclusive',
}

class House(Model):
	title = ''
	content = ''
	brand = ''
	province = ''
	city = ''
	district = ''
	block = ''
	address = ''
	lati = ''
	longi =''
	apartment = ''
	rent_type = 0 # 1整租/ 2合租/ 3公寓
	bedroom_type = 1 # 主卧：1，次卧：2
	room_num = 0
	hall_num = 0
	bathroom_num = 0
	floor = 0
	building_floor = 0
	rental = 0
	deposit = 0
	payment_deposit = 1 #付款方式押金月份
	payment_rental = 1 #付款方式租金月份
	orientation = '' #朝向
	deroration = ''
	room_area = 0 #面积
	house_area = 0
	exclusive_bathroom = 0
	exclusive_balcony = 0 
	publish_date = ''
	pictures = []
	source_from = ''
	publisher = ''
	traffic = ''
	uniqe_key = ''
	private_falicities = []
	public_falicities = []

	def _create_uniqe_key(self):
		uniqe_string = ''.join((self.city,self.district,str(self.rent_type),self.address,str(self.room_area),str(self.house_area),str(self.floor),str(self.building_floor)))	
		self.uniqe_key = md5(uniqe_string)
85338d4da1e86fcf21ea809e0fd6ac20bad54c17
<mask token>


class House(Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def _create_uniqe_key(self):
        uniqe_string = ''.join((self.city, self.district, str(self.
            rent_type), self.address, str(self.room_area), str(self.
            house_area), str(self.floor), str(self.building_floor)))
        self.uniqe_key = md5(uniqe_string)

<mask token>


class House(Model):
    title = ''
    content = ''
    brand = ''
    province = ''
    city = ''
    district = ''
    block = ''
    address = ''
    lati = ''
    longi = ''
    apartment = ''
    rent_type = 0
    bedroom_type = 1
    room_num = 0
    hall_num = 0
    bathroom_num = 0
    floor = 0
    building_floor = 0
    rental = 0
    deposit = 0
    payment_deposit = 1
    payment_rental = 1
    orientation = ''
    deroration = ''
    room_area = 0
    house_area = 0
    exclusive_bathroom = 0
    exclusive_balcony = 0
    publish_date = ''
    pictures = []
    source_from = ''
    publisher = ''
    traffic = ''
    uniqe_key = ''
    private_falicities = []
    public_falicities = []

    def _create_uniqe_key(self):
        uniqe_string = ''.join((self.city, self.district, str(self.
            rent_type), self.address, str(self.room_area), str(self.
            house_area), str(self.floor), str(self.building_floor)))
        self.uniqe_key = md5(uniqe_string)

<mask token>
CONFIG = {'wardrobe': 'wardrobe', 'sofa': 'sofa', 'tv': 'tv', 'fridge':
    'fridge', 'washer': 'washer', 'aircondition': 'aircondition',
    'waterheater': 'waterheater', 'broadband': 'broadband', 'heating':
    'heating', 'microwave': 'microwave', 'exclusive': 'exclusive'}


class House(Model):
    title = ''
    content = ''
    brand = ''
    province = ''
    city = ''
    district = ''
    block = ''
    address = ''
    lati = ''
    longi = ''
    apartment = ''
    rent_type = 0
    bedroom_type = 1
    room_num = 0
    hall_num = 0
    bathroom_num = 0
    floor = 0
    building_floor = 0
    rental = 0
    deposit = 0
    payment_deposit = 1
    payment_rental = 1
    orientation = ''
    deroration = ''
    room_area = 0
    house_area = 0
    exclusive_bathroom = 0
    exclusive_balcony = 0
    publish_date = ''
    pictures = []
    source_from = ''
    publisher = ''
    traffic = ''
    uniqe_key = ''
    private_falicities = []
    public_falicities = []

    def _create_uniqe_key(self):
        uniqe_string = ''.join((self.city, self.district, str(self.
            rent_type), self.address, str(self.room_area), str(self.
            house_area), str(self.floor), str(self.building_floor)))
        self.uniqe_key = md5(uniqe_string)

import json
import re
from base.model import Model
from base.common import *
CONFIG = {'wardrobe': 'wardrobe', 'sofa': 'sofa', 'tv': 'tv', 'fridge':
    'fridge', 'washer': 'washer', 'aircondition': 'aircondition',
    'waterheater': 'waterheater', 'broadband': 'broadband', 'heating':
    'heating', 'microwave': 'microwave', 'exclusive': 'exclusive'}


class House(Model):
    title = ''
    content = ''
    brand = ''
    province = ''
    city = ''
    district = ''
    block = ''
    address = ''
    lati = ''
    longi = ''
    apartment = ''
    rent_type = 0
    bedroom_type = 1
    room_num = 0
    hall_num = 0
    bathroom_num = 0
    floor = 0
    building_floor = 0
    rental = 0
    deposit = 0
    payment_deposit = 1
    payment_rental = 1
    orientation = ''
    deroration = ''
    room_area = 0
    house_area = 0
    exclusive_bathroom = 0
    exclusive_balcony = 0
    publish_date = ''
    pictures = []
    source_from = ''
    publisher = ''
    traffic = ''
    uniqe_key = ''
    private_falicities = []
    public_falicities = []

    def _create_uniqe_key(self):
        uniqe_string = ''.join((self.city, self.district, str(self.
            rent_type), self.address, str(self.room_area), str(self.
            house_area), str(self.floor), str(self.building_floor)))
        self.uniqe_key = md5(uniqe_string)

# coding: UTF-8
 
import json
import re
from base.model import Model
from base.common import *

CONFIG = {
	'wardrobe':'wardrobe',
	'sofa':'sofa',
	'tv':'tv',
	'fridge':'fridge',
	'washer':'washer',
	'aircondition':'aircondition',
	'waterheater':'waterheater',
	'broadband':'broadband',
	'heating':'heating',
	'microwave':'microwave',
	'exclusive':'exclusive',
}

class House(Model):
	title = ''
	content = ''
	brand = ''
	province = ''
	city = ''
	district = ''
	block = ''
	address = ''
	lati = ''
	longi =''
	apartment = ''
	rent_type = 0 # 1整租/ 2合租/ 3公寓
	bedroom_type = 1 # 主卧：1，次卧：2
	room_num = 0
	hall_num = 0
	bathroom_num = 0
	floor = 0
	building_floor = 0
	rental = 0
	deposit = 0
	payment_deposit = 1 #付款方式押金月份
	payment_rental = 1 #付款方式租金月份
	orientation = '' #朝向
	deroration = ''
	room_area = 0 #面积
	house_area = 0
	exclusive_bathroom = 0
	exclusive_balcony = 0 
	publish_date = ''
	pictures = []
	source_from = ''
	publisher = ''
	traffic = ''
	uniqe_key = ''
	private_falicities = []
	public_falicities = []

	def _create_uniqe_key(self):
		uniqe_string = ''.join((self.city,self.district,str(self.rent_type),self.address,str(self.room_area),str(self.house_area),str(self.floor),str(self.building_floor)))	
		self.uniqe_key = md5(uniqe_string)