You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
506 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( 'admin superadmin hyperadmin' )
  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>GOSH BATMAN! HOW DID SHE DO THE IMPOSSIBLE?</h1>",
  11. "<a href='/index.html'>index</a>"
  12. ]