def emit(self, signal, kwargs):
        """Trigger registered callbacks

        This method is triggered remotely and run locally.
        The keywords "instance" and "plugin" are implicitly
        converted to their corresponding Pyblish objects.

        """

        if "context" in kwargs:
            kwargs["context"] = self._context

        if "instance" in kwargs:
            kwargs["instance"] = self.__instances[kwargs["instance"]]

        if "plugin" in kwargs:
            kwargs["plugin"] = self.__plugins[kwargs["plugin"]]

        pyblish.api.emit(signal, **kwargs)
def emit ( self , signal , kwargs ) : if "context" in kwargs : kwargs [ "context" ] = self . _context if "instance" in kwargs : kwargs [ "instance" ] = self . __instances [ kwargs [ "instance" ] ] if "plugin" in kwargs : kwargs [ "plugin" ] = self . __plugins [ kwargs [ "plugin" ] ] pyblish . api . emit ( signal , ** kwargs )
Trigger registered callbacks

        This method is triggered remotely and run locally.
        The keywords "instance" and "plugin" are implicitly
        converted to their corresponding Pyblish objects.