#NEWLINE# def get_plugins( self , admin_view_class , * option_classes ) : #NEWLINE# #INDENT# from xadmin.views import BaseAdminView #NEWLINE# plugins = [ ] #NEWLINE# opts = [ oc for oc in option_classes if oc ] #NEWLINE# for klass in admin_view_class . mro ( ) : #NEWLINE# #INDENT# if ( ( klass == BaseAdminView ) or issubclass ( klass , BaseAdminView ) ) : #NEWLINE# #INDENT# merge_opts = [ ] #NEWLINE# reg_class = self . _registry_avs . get ( klass ) #NEWLINE# if reg_class : #NEWLINE# #INDENT# merge_opts . append ( reg_class ) #NEWLINE# #UNINDENT# settings_class = self . _get_settings_class ( merge_opts ) #NEWLINE# if settings_class : #NEWLINE# #INDENT# merge_opts . append ( settings_class ) #NEWLINE# #UNINDENT# merge_opts . extend ( opts ) #NEWLINE# ps = self . _registry_plugins . get ( klass , [ ] ) #NEWLINE# plugins . extend ( ( map ( self . _create_plugin ( merge_opts ) , ps ) if merge_opts else ps ) ) #NEWLINE# #UNINDENT# #UNINDENT# return plugins