def remove(self): count = Session.get('count') if count > 0: count = count - 1 else: count = 0 Session.set('count', count) raise web.seeother('/session/get/')
def add(self): count = Session.get('count') count = count + 1 Session.set('count', count) raise web.seeother('/session/get/')
def set(self): Session.set('count', 1) return View.load('/session/set.tpl')