def get_widget(name):
    for widget in registry:
        if widget.__name__ == name:
            return widget
    raise WidgetNotFound(
        _('The widget %s has not been registered.') % name)
Give back a widget class according to his name.
dataset/ETHPy150Open batiste/django-page-cms/pages/widgets_registry.py/get_widget