Example #1
0
 def __init__(self, pluginName):
     self.pluginName = pluginName
     self.plugin = tpc.loadPlugin (_pluginManager, pluginName)
     if not self.plugin:
         raise Exception(tpc.getLastError())             
     else:
         lp = self.listOfProperties()
         for element in lp:
             self._propertyNames.append (element[0])
         tpc.resetPlugin(self.plugin)                
Example #2
0
 def __init__(self, pluginName):
     self.pluginName = pluginName
     self.plugin = tpc.loadPlugin(_pluginManager, pluginName)
     if not self.plugin:
         raise Exception(tpc.getLastError())
     else:
         lp = self.listOfProperties()
         for element in lp:
             self._propertyNames.append(element[0])
         tpc.resetPlugin(self.plugin)
Example #3
0
 def execute (self):
     if tpc.executePlugin (self.plugin) == True:
         return True
     else:
         raise Exception(tpc.getLastError())
Example #4
0
 def execute(self):
     if tpc.executePlugin(self.plugin) == True:
         return True
     else:
         raise Exception(tpc.getLastError())