INNER CODE UNIT · Python
internalerror
ab77/netflix-proxy · auth/auth.py:260
def internalerror():
web.ctx.status = '500 Internal Server Error'
return web.internalerror(str(render.__500()))
def flash(group, message):
session.flash[group].append(message)
def flash_messages(group=None):
if not hasattr(web.ctx, 'flash'):
web.ctx.flash = session.flash
session.flash = defaultdict(list)
if group:
return web.ctx.flash.get(group, [])
else:
return web.ctx.flash