MobileBlur

ajax_examples.py at [eba4a35a21]
Login

ajax_examples.py at [eba4a35a21]

File applications/examples/controllers/ajax_examples.py artifact c86cb0618f part of check-in eba4a35a21






def index():
    return dict()


def data():
    if not session.m or len(session.m) == 10:
        session.m = []
    if request.vars.q:
        session.m.append(request.vars.q)
    session.m.sort()
    return TABLE(*[TR(v) for v in session.m]).xml()


def flash():
    response.flash = 'this text should appear!'
    return dict()


def fade():
    return dict()