INNER CODE UNIT · Python

notfound

ab77/netflix-proxy · auth/auth.py:254

def notfound():
  web.ctx.status = '404 Not Found'
  return web.notfound(str(render.__404()))


# Set a custom internal error message
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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…