def loadFundData(self): cp = self.cache_path rep_file = open(cp + "reports/fund_rep.cache") fund_data = cPickle.load(rep_file) rep_file.close() for f in fund_data: tmp_fund = Fund() tmp_fund.backstop_id = int(f[0][1]) tmp_fund.name = f[1][1] tmp_fund.type = f[2][1] tmp_fund.incept_date = datetime.strptime(f[3][1],"%m/%d/%Y") tmp_fund.fund_class = f[4][1] tmp_fund.interest_level = f[5][1] tmp_fund.first_investment_date = datetime.strptime(f[6][1],"%m/%d/%Y") tmp_fund.management_fee = f[7][1] tmp_fund.incentive_fee = f[8][1] tmp_fund.redemptions = f[9][1] tmp_fund.redemption_notice = f[10][1] tmp_fund.hard_lockup = f[11][1] tmp_fund.soft_lockup = f[12][1] tmp_fund.gate_percentage = f[13][1] tmp_fund.side_pocket_percentage = f[14][1] tmp_fund.phone = f[15][1] tmp_fund.address = f[16][1] tmp_fund.city = f[17][1] tmp_fund.state = f[18][1] tmp_fund.postal_code = f[19][1] tmp_fund.website = f[20][1] tmp_fund.status = f[21][1] tmp_fund.erisa_cap = f[28][1] tmp_fund.k1_history = f[29][1] tmp_fund.balance_all_products = f[33][1] tmp_fund.most_recent_return_date = datetime.strptime(f[34][1],"%m/%d/%Y") if int(f[30][1]) not in self.firms.keys(): tmp_fund.firm = Firm() tmp_fund.firm.back_invest_info = f[22][1] tmp_fund.firm.cpa_firm_ref_check = f[23][1] tmp_fund.firm.prime_broker_ref_checks = f[24][1] if f[25][1] == "Yes": tmp_fund.firm.is_ria = True else: tmp_fund.firm.is_ria = False tmp_fund.firm.ria_adv_date = f[26][1] tmp_fund.firm.sec_reg_date = f[27][1] tmp_fund.firm.backstop_id = int(f[30][1]) tmp_fund.firm.name = f[31][1] tmp_fund.firm.cur_total_aum = f[32][1] mcp_info = [f[35][1],f[36][1],f[37][1],f[38][1],f[39][1],f[40][1],f[41][1],f[42][1]] tmp_fund.firm.mcp_score_info = mcp_info self.firms[int(f[30][1])] = tmp_fund.firm else: tmp_fund.firm = self.firms[int(f[30][1])] tmp_fund.firm.funds[tmp_fund.backstop_id] = tmp_fund self.funds[tmp_fund.backstop_id] = tmp_fund self.loaded[0] = True