fix renaming variables (broken by pouInstance.type -> pouInstance.typeName)
authorb.taylor@willowglen.ca
Wed, 02 Sep 2009 12:38:06 -0600
changeset 417 218142afdb53
parent 416 897ba122460e
child 418 a06221a0930b
fix renaming variables (broken by pouInstance.type -> pouInstance.typeName)
plcopen/plcopen.py
--- a/plcopen/plcopen.py	Wed Sep 02 08:39:18 2009 -0600
+++ b/plcopen/plcopen.py	Wed Sep 02 12:38:06 2009 -0600
@@ -742,8 +742,8 @@
     setattr(cls, "compatibility", compatibility)
     
     def updateElementName(self, old_name, new_name):
-        if self.type == old_name:
-            self.type = new_name
+        if self.typeName == old_name:
+            self.typeName = new_name
     setattr(cls, "updateElementName", updateElementName)
 
 cls = PLCOpenClasses.get("project_types", None)