def page_process(ctx): if ctx.req_equals('msgnum'): ctx.set_page('detail') def page_display(ctx): ctx.open_mbox() ctx.run_template('list.html')