def get_page_list(): global page_list load_file = yield from file.async_read_file("./config/page.json") page_list = yield from async_json_loads(load_file)
def get_rss_file(): global rss if os.path.exists("./document/rss.xml"): rss = yield from file.async_read_file("./document/rss.xml")
def get_menu_list(): global menu_list load_file = yield from file.async_read_file("./config/menu.json") menu_list = yield from async_json_loads(load_file)