changeset 417 | 218142afdb53 |
parent 394 | 2e9fc0ad6095 |
child 427 | 22d16c457d87 |
--- 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)