#NEWLINE# def _generate_user_id( self ) : #NEWLINE# #INDENT# 'Generate a unique user ID.' #NEWLINE# self . _read_indices ( ) #NEWLINE# user_id = len ( self . _id_index ) #NEWLINE# while ( self . find_by_id ( '{0}' . format ( self ) ) is not None ) : #NEWLINE# #INDENT# user_id += 1 #NEWLINE# #UNINDENT# return '{0}' . format ( user_id )