Did I find the right examples for you? yes no

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)
Raised when an attempt is made to register an item in the registry which does not have a proper type.

src/d/j/django-dash-0.4.4/src/dash/base.py   django-dash(Download)
    DEFAULT_PLACEHOLDER_EDIT_TEMPLATE_NAME
    )
from dash.exceptions import InvalidRegistryItemType
from dash.helpers import iterable_to_dict, uniquify_sequence
 
        """
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType("Invalid item type `{0}` for registry `{1}`".format(cls, self.__class__))
 
        # If item has not been forced yet, add/replace its' value in the registry
    def unregister(self, cls):
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType("Invalid item type `{0}` for registry `{1}`".format(cls, self.__class__))
 
        # Only non-forced items are allowed to be unregistered.
        """
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType("Invalid item type `{0}` for registry `{1}`".format(cls, self.__class__))
 
        uid = PluginWidgetRegistry.namify(cls.layout_uid, cls.placeholder_uid, cls.plugin_uid)
    def unregister(self, cls):
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType("Invalid item type `{0}` for registry `{1}`".format(cls, self.__class__))
 
        uid = PluginWidgetRegistry.namify(cls.layout_uid, cls.placeholder_uid, cls.plugin_uid)

src/d/j/django-dash-HEAD/src/dash/base.py   django-dash(Download)
    DEFAULT_PLACEHOLDER_EDIT_TEMPLATE_NAME
    )
from dash.exceptions import InvalidRegistryItemType
from dash.helpers import iterable_to_dict, uniquify_sequence
 
        """
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType("Invalid item type `{0}` for registry `{1}`".format(cls, self.__class__))
 
        # If item has not been forced yet, add/replace its' value in the registry
    def unregister(self, cls):
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType("Invalid item type `{0}` for registry `{1}`".format(cls, self.__class__))
 
        # Only non-forced items are allowed to be unregistered.
        """
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType("Invalid item type `{0}` for registry `{1}`".format(cls, self.__class__))
 
        uid = PluginWidgetRegistry.namify(cls.layout_uid, cls.placeholder_uid, cls.plugin_uid)
    def unregister(self, cls):
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType("Invalid item type `{0}` for registry `{1}`".format(cls, self.__class__))
 
        uid = PluginWidgetRegistry.namify(cls.layout_uid, cls.placeholder_uid, cls.plugin_uid)