def flash(message): """Set a message to be displayed in the browser on next page display.""" message = tg_util.to_utf8(message) if len(message) > 4000: log.warning('Flash message exceeding maximum cookie size!') response.simple_cookie['tg_flash'] = message response.simple_cookie['tg_flash']['path'] = '/'
def flash(message): """Set a message to be displayed in the browser on next page display.""" message = tg_util.quote_cookie(tg_util.to_utf8(message)) response.simple_cookie['tg_flash'] = message response.simple_cookie['tg_flash']['path'] = '/'
def flash(message): """Set a message to be displayed in the browser on next page display.""" cherrypy.response.simple_cookie['tg_flash'] = tg_util.to_utf8(message) cherrypy.response.simple_cookie['tg_flash']['path'] = '/'