#NEWLINE# def create_tool_bar_managers( self ) : #NEWLINE# #INDENT# " Create tool bar managers from the tasks's tool bar schemas and\n            additions.\n        " #NEWLINE# schemas = self . task . tool_bars [ : ] #NEWLINE# for addition in self . task . extra_actions : #NEWLINE# #INDENT# if ( not addition . path ) : #NEWLINE# #INDENT# schema = addition . factory ( ) #NEWLINE# if isinstance ( addition , ToolBarSchema ) : #NEWLINE# #INDENT# schemas . append ( schema ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logger . error ( 'Invalid top-level schema addition: %r. Only ToolBar schemas can be path-less.' , schema ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return [ self . create_action_manager ( schema ) for schema in self . _get_ordered_schemas ( schemas ) ]