import metakit top_file = open('c:\\python21\\RBRanch\\index_top.html','r') top_business_file = open('c:\\python21\\RBRanch\\rbranch_business_top.htm','r') top_events_file = open('c:\\python21\\RBRanch\\rbranch_events_top.htm','r') top_gov_file = open('c:\\python21\\RBRanch\\rbranch_gov_top.htm') top_nature_file = open('c:\\python21\\RBRanch\\rbranch_nature_top.htm','r') top_news_file = open('c:\\python21\\RBRanch\\rbranch_news_top.htm','r') top_strange_file = open('c:\\python21\\RBRanch\\rbranch_strangness_top.htm','r') mid_file = open('c:\\python21\\RBRanch\\page_portion_mid.it','r') bot_file = open('c:\\python21\\RBRanch\\page_portion_bottom.it','r') RB_database = metakit.storage("rbranch.mk",1) RB_view_news = RB_database.getas("news_top[text:S]") RB_view_events = RB_database.getas("events_top[text:S]") RB_view_nature = RB_database.getas("nature_top[text:S]") RB_view_business = RB_database.getas("business_top[text:S]") RB_view_gov = RB_database.getas("gov_top[text:S]") RB_view_strange = RB_database.getas("strange_top[text:S]") RB_view_main = RB_database.getas("main_top[text:S]") RB_view_mid = RB_database.getas("page_mid[text:S]") RB_view_bot = RB_database.getas("page_bot[text:S]") RB_view_news.delete(0) RB_view_events.delete(0) RB_view_nature.delete(0) RB_view_business.delete(0) RB_view_gov.delete(0) RB_view_strange.delete(0) RB_view_main.delete(0) RB_view_mid.delete(0) RB_view_bot.delete(0) tom3 = '' tom = top_news_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_news.append(text = tom3) tom3 = '' tom2 = top_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_main.append(text = tom3) tom3 = '' tom = top_business_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_business.append(text = tom3) tom3 = '' tom2 = top_events_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_events.append(text = tom3) tom3 = '' tom = top_gov_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_gov.append(text = tom3) tom3 = '' tom2 = top_nature_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_nature.append(text = tom3) tom3 = '' tom = top_strange_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_strange.append(text = tom3) tom3 = '' tom2 = mid_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_mid.append(text = tom3) tom3 = '' tom = bot_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_bot.append(text = tom3) RB_database.commit() del RB_database