<s> from circuits . web import Server , Controller <EOL> from circuits . web . tools import check_auth , basic_auth <EOL> class Root ( Controller ) : <EOL> def index ( self ) : <EOL> realm = "<STR_LIT>" <EOL> users = { "<STR_LIT>" : "<STR_LIT>" } <EOL> encrypt = str <EOL> if check_auth ( self . request , self . response , realm , users , encrypt ) : <EOL> return "<STR_LIT>" % self . request . login <EOL> return basic_auth ( self . request , self . response , realm , users , encrypt ) <EOL> app = Server ( ( "<STR_LIT>" , <NUM_LIT> ) ) <EOL> Root ( ) . register ( app ) <EOL> app . run ( ) </s>
