@classmethod
    def register_plugin(cls, plugin):
        if not issubclass(plugin, cls):
            msg = "Can not register plugin class `{}`, since is does not inherit from `{}`."
            raise ImproperlyConfigured(msg.format(plugin.__name__, cls.__name__))
        if plugin.get_form_class() is None:
            msg = "Can not register plugin class `{}`, since is does not define a `form_class`."
            raise ImproperlyConfigured(msg.format(plugin.__name__))
        plugin_pool.register_plugin(plugin)
:return: iterator yielding Submodule instances available in the given repository
dataset/ETHPy150Open awesto/django-shop/shop/cascade/plugin_base.py/DialogFormPluginBase.register_plugin--crossover with--dataset/ETHPy150Open gitpython-developers/GitPython/git/objects/submodule/base.py/Submodule.iter_items