Beispiel #1
0
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)
Beispiel #2
0
def get_rss_file():
    global rss
    if os.path.exists("./document/rss.xml"):
        rss = yield from file.async_read_file("./document/rss.xml")
Beispiel #3
0
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)