Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

19 linhas
556 B

  1. #!/usr/bin/python
  2. # -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; -*-
  3. from decorators import WSGISimpleAuth # decoratore ( singleton )
  4. auth = WSGISimpleAuth()
  5. @auth.require( 'auth' )
  6. def application( environ, start_response ):
  7. storage = environ['auth.storage']
  8. start_response( '200 OK', [('content-type', 'text/html; charset=utf-8')] )
  9. return [
  10. "<h1>The secret code is:</h1>",
  11. "<h6>''keep calm and carry on''</h6>"
  12. "<h5>uuid:%s</h5>" % environ['auth.uuid'],
  13. "<a href='/index.html'>index</a>"
  14. ]