Profile
Achievement
    
                manatlan's Recent Snippets
- All /
 
Not very secure, but very handy ...
Use like that :
    app = your_wsgi_app()
    app = ControlAccess( app, "your_password")
    httpserve( app ) # wsgi server
        
        
        
            0 
        
        
            1380 
        
                    posted 15 years ago by manatlan
            method 'E' (in fact a decorator) catch the execption and return it, so it's possible to use the good old assert statement.
        
        
        
            0 
        
        
            1058 
        
                    posted 16 years ago by manatlan