#NEWLINE# @ classmethod #NEWLINE# def get( cls , uid , safe = False ) : #NEWLINE# #INDENT# '\n        params:\n            uid - the user id which to fetch\n            safe - return users without secure fields like salt and hash\n            db - provide your own instantiated lazydb.Db() connector\n        ' #NEWLINE# if ( uid is not None ) : #NEWLINE# #INDENT# users = cls . getall ( ) #NEWLINE# try : #NEWLINE# #INDENT# return ( users [ uid ] if ( not safe ) else cls . _publishable ( users [ uid ] ) ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return None