def __init__(self, node, extract_Deleted, extract_Source): self.root = node self.extractDeleted = extract_Deleted self.extractSource = extract_Source self.cache = ds.OpenCachePath("Qunar") self.qunar_db = model_ticketing.Ticketing() self.account_id = None
def __init__(self, node, db_name): super(HuaweiSmartcare, self).__init__(node, db_name) self.VERSION_VALUE_DB = model_ticketing.VERSION_VALUE_DB self.root = node self.csm = model_ticketing.Ticketing() self.Generate = model_map.Genetate self.accounts = {}
def __init__(self, node, db_name): super(Apple12306Parser, self).__init__(node, db_name) self.VERSION_KEY_DB = 'db' self.VERSION_VALUE_DB = model_ticketing.VERSION_VALUE_DB self.VERSION_KEY_APP = 'app' self.root = node.Parent.Parent self.Generate = model_ticketing.GenerateModel self.csm = model_ticketing.Ticketing() self.accounts = {}
def __init__(self, node, extract_Deleted, extract_Source): self.root = node.Parent.Parent.Parent.GetByPath( "Documents/ctrip_common.db") if self.root is None: return self.extractDeleted = extract_Deleted self.extractSource = extract_Source self.ctrip = model_ticketing.Ticketing() self.contact_dicts = {} self.auth_dicts = {} self.check_auth = "" self.cache = ds.OpenCachePath("携程")
def __init__(self, node, db_name): super(Cloud12306Parser, self).__init__(node, db_name) self.VERSION_VALUE_DB = model_ticketing.VERSION_VALUE_DB self.Generate = model_ticketing.GenerateModel self.csm = model_ticketing.Ticketing() if node.Children.Count == 1: self.root = node.Children[0] else: self.root = node self.account_dict = {} self.cur_account_id = 'default_account'
def __init__(self, node, extract_deleted, extract_source, app_name='YunkanUmetrip'): super(YunkanUmetripParser, self).__init__(node, extract_deleted, extract_source, app_name) self.app_version = UMETRIPVERSION self.csm = model_ticketing.Ticketing() self.debug = DEBUG