Exemple #1
0
 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)
Exemple #2
0
 def set_plugins(self, value, **kwargs):
     modules = [name.strip() for name in value.split(',')]
     plugins.load(modules, diagram=self, **kwargs)
Exemple #3
0
 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)
Exemple #4
0
 def set_plugins(self, value):
     modules = [name.strip() for name in value.split(',')]
     plugins.load(modules, diagram=self)
Exemple #5
0
 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)