def set_plugin(self, name, attrs): try: kwargs = dict([str(unquote(attr.name)), unquote(attr.value)] for attr in attrs) plugins.load([name], diagram=self, **kwargs) except: msg = "WARNING: fail to load plugin: %s\n" % name raise AttributeError(msg)
def set_plugins(self, value, **kwargs): modules = [name.strip() for name in value.split(',')] plugins.load(modules, diagram=self, **kwargs)
def set_plugin(self, name, attrs, **kwargs): kwargs.update(dict([str(unquote(attr.name)), unquote(attr.value)] for attr in attrs)) plugins.load([name], diagram=self, **kwargs)
def set_plugins(self, value): modules = [name.strip() for name in value.split(',')] plugins.load(modules, diagram=self)
def set_plugin(self, name, attrs): kwargs = dict([str(unquote(attr.name)), unquote(attr.value)] for attr in attrs) plugins.load([name], diagram=self, **kwargs)