<s> import manager <EOL> from snakeserver . user import LoginUser <EOL> name = "<STR_LIT>" <EOL> docroot = "<STR_LIT:.>" <EOL> sessionTimeoutSecs = <NUM_LIT> <EOL> authorizationPatterns = { <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT:*>" : [ "<STR_LIT>" ] <EOL> } <EOL> authenticationMethod = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> def authorizeUser ( authmethod , url , username , password , request ) : <EOL> users = { <EOL> "<STR_LIT:test>" : LoginUser ( "<STR_LIT:test>" , "<STR_LIT:test>" , "<STR_LIT>" , [ "<STR_LIT>" ] ) <EOL> } <EOL> if username in users and users [ username ] . checkPassword ( password ) : <EOL> return users [ username ] <EOL> else : <EOL> return None <EOL> snakelets = { <EOL> "<STR_LIT>" : manager . Manager <EOL> } <EOL> configItems = { <EOL> } </s>
