#NEWLINE# def get_widget( name ) : #NEWLINE# #INDENT# '\n    Give back a widget class according to his name.\n    ' #NEWLINE# for widget in registry : #NEWLINE# #INDENT# if ( widget . __name__ == name ) : #NEWLINE# #INDENT# return widget #NEWLINE# #UNINDENT# #UNINDENT# raise WidgetNotFound ( ( _ ( 'The widget %s has not been registered.' ) % widget ) )