#NEWLINE# def reload( self ) : #NEWLINE# #INDENT# 'Reloads the database from its file.' #NEWLINE# self . nextId = 0 #NEWLINE# self . users . clear ( ) #NEWLINE# self . _nameCache . clear ( ) #NEWLINE# self . _hostmaskCache . clear ( ) #NEWLINE# if ( self . filename is not None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . open ( self . filename ) #NEWLINE# #UNINDENT# except EnvironmentError as e : #NEWLINE# #INDENT# log . warning ( 'UsersDictionary.reload failed: %s' , e ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# log . error ( 'UsersDictionary.reload called with no filename.' )