--- a/ConfigTreeNode.py Sat Aug 19 21:06:54 2017 +0300
+++ b/ConfigTreeNode.py Mon Aug 21 21:55:18 2017 +0300
@@ -142,7 +142,7 @@
return self.CTNParent.RemoteExec(script, **kwargs)
def OnCTNSave(self, from_project_path=None):
- #Default, do nothing and return success
+ """Default, do nothing and return success"""
return True
def GetParamsAttributes(self, path=None):
@@ -395,7 +395,7 @@
# Get Current Name
CurrentName = self.BaseParams.getName()
# Do nothing if no change
- #if CurrentName == DesiredName: return CurrentName
+ # if CurrentName == DesiredName: return CurrentName
# Build a list of used Name out of parent's Children
AllNames = []
for CTNInstance in self.CTNParent.IterChildren():
@@ -444,7 +444,7 @@
# Get Current IEC channel
CurrentChannel = self.BaseParams.getIEC_Channel()
# Do nothing if no change
- #if CurrentChannel == DesiredChannel: return CurrentChannel
+ # if CurrentChannel == DesiredChannel: return CurrentChannel
# Build a list of used Channels out of parent's Children
AllChannels = self.GetAllChannels()
@@ -511,7 +511,7 @@
def CTNRemove(self):
# Fetch the confnode
- #CTNInstance = self.GetChildByName(CTNName)
+ # CTNInstance = self.GetChildByName(CTNName)
# Ask to his parent to remove it
self.CTNParent._doRemoveChild(self)