# HG changeset patch # User b.taylor@willowglen.ca # Date 1251916686 21600 # Node ID 218142afdb537591685af074ed6cae59d3b00e4b # Parent 897ba122460e22defc3287b64c6e843bb46620c8 fix renaming variables (broken by pouInstance.type -> pouInstance.typeName) diff -r 897ba122460e -r 218142afdb53 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)