equal
deleted
inserted
replaced
236 PlugTemplate.__init__(_self) |
236 PlugTemplate.__init__(_self) |
237 # If dir have already be made, and file exist |
237 # If dir have already be made, and file exist |
238 if os.path.isdir(_self.PlugPath(PlugName)) and os.path.isfile(_self.PluginXmlFilePath(PlugName)): |
238 if os.path.isdir(_self.PlugPath(PlugName)) and os.path.isfile(_self.PluginXmlFilePath(PlugName)): |
239 #Load the plugin.xml file into parameters members |
239 #Load the plugin.xml file into parameters members |
240 _self.LoadXMLParams() |
240 _self.LoadXMLParams() |
|
241 # Check that IEC_Channel is not already in use. |
|
242 self.FindNewIEC_Channel(self.BaseParams.getIEC_Channel()) |
241 # Call the plugin real __init__ |
243 # Call the plugin real __init__ |
242 PlugClass.__init__(_self) |
244 PlugClass.__init__(_self) |
243 #Load and init all the childs |
245 #Load and init all the childs |
244 _self.LoadChilds() |
246 _self.LoadChilds() |
245 # Check that IEC_Channel is not already in use. |
|
246 self.FindNewIEC_Channel(self.BaseParams.getIEC_Channel()) |
|
247 else: |
247 else: |
248 # If plugin do not have corresponding file/dirs - they will be created on Save |
248 # If plugin do not have corresponding file/dirs - they will be created on Save |
249 # Set plugin name |
249 # Set plugin name |
250 _self.BaseParams.setName(PlugName) |
250 _self.BaseParams.setName(PlugName) |
251 # Find an IEC number |
251 # Find an IEC number |