#!/usr/bin/python # -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; -*- from decorators import WSGISimpleAuth # decoratore ( singleton ) auth = WSGISimpleAuth() @auth.require() def application( environ, start_response ): storage = environ['auth.storage'] start_response( '200 OK', [('content-type', 'text/html; charset=utf-8')] ) return [ "

The secret code is:

", "
''keep calm and carry on''
" "
uuid:%s
" % environ['auth.uuid'], ]