def __init__(self, generator):
        '''Identify the best known class of the generator instance

        The class '''
        self.generator = generator
        self.generators_info.update(generator.settings.get(
            'I18N_GENERATORS_INFO', {}))
        for cls in generator.__class__.__mro__:
            if cls in self.generators_info:
                self.info = self.generators_info[cls]
                break
        else:
            self.info = {}
def __init__ ( self , generator ) : self . generator = generator self . generators_info . update ( generator . settings . get ( 'I18N_GENERATORS_INFO' , { } ) ) for cls in generator . __class__ . __mro__ : if cls in self . generators_info : self . info = self . generators_info [ cls ] break else : self . info = { }
Identify the best known class of the generator instance

        The class