# -*- coding:utf-8 -*-
'''
App对应的Tag
'''
from torlite.model.mlabel_model import MLabel
from torlite.model.mlabel_model import MPost2Label

from maplet.model.ext_tab import *
from maplet.model.ext_tab import TabApp


class MAppLabel(MLabel):
    def __init__(self):
        self.tab = TabLabel
        try:
            TabLabel.create_table()
        except:
            pass

class MApp2Label(MPost2Label):
    def __init__(self):
        self.tab = TabApp2Label
        self.tab_label = TabLabel
        self.tab_post = TabApp
        self.mtag = MAppLabel()
        try:
            TabApp2Label.create_table()
        except:
            pass
