This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def authenticated(auth): | |
def decore(f): | |
def _request_auth(handler): | |
handler.set_header("WWW-Authenticate", "Basic realm=tmr") | |
handler.set_status(401) | |
handler.finish() | |
return False | |
@functools.wraps(f) | |
def new_f(*args): |