Bugs in configuration_ressource fixed
authorlbessard
Fri, 07 Mar 2008 09:16:54 +0100
changeset 187 183486133b96
parent 186 fa7c2e4774be
child 188 d64037e17075
Bugs in configuration_ressource fixed
plcopen/plcopen.py
--- a/plcopen/plcopen.py	Thu Mar 06 14:22:36 2008 +0100
+++ b/plcopen/plcopen.py	Fri Mar 07 09:16:54 2008 +0100
@@ -328,9 +328,9 @@
 cls = PLCOpenClasses.get("configuration_resource", None)
 if cls:
     def updateElementName(self, old_name, new_name):
-        for instance in self.getPouInstance():
+        for instance in self.getpouInstance():
             instance.updateElementName(old_name, new_name)
-        for task in self.getTask():
+        for task in self.gettask():
             task.updateElementName(old_name, new_name)
     setattr(cls, "updateElementName", updateElementName)
 
@@ -339,7 +339,7 @@
     def updateElementName(self, old_name, new_name):
         if self.single == old_name:
             self.single = new_name
-        for instance in self.getPouInstance():
+        for instance in self.getpouInstance():
             instance.updateElementName(old_name, new_name)
     setattr(cls, "updateElementName", updateElementName)