#NEWLINE# def check_whitelist( self , username ) : #NEWLINE# #INDENT# 'Check a username against our whitelist.\n        \n        Return True if username is allowed, False otherwise.\n        No whitelist means any username should be allowed.\n        \n        Names are normalized *before* being checked against the whitelist.\n        ' #NEWLINE# if ( not username . whitelist ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return ( username in self . whitelist )