MobileBlur

ajax_examples.py at [a162dcef14]
Login

ajax_examples.py at [a162dcef14]

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






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()