PLCControler.py
changeset 421 9855343da6fc
parent 420 c08d053b74b3
child 424 d19c4a6460ab
--- a/PLCControler.py	Thu Sep 03 08:56:02 2009 -0600
+++ b/PLCControler.py	Thu Sep 03 09:37:23 2009 -0600
@@ -251,7 +251,7 @@
     def GetProjectConfigNames(self, debug = False):
         project = self.GetProject(debug)
         if project is not None:
-            return [config.getName() for config in project.getconfigurations()]
+            return [config.getname() for config in project.getconfigurations()]
         return []
     
     # Return project pou variables
@@ -734,9 +734,9 @@
     def ChangeConfigurationResourceName(self, config_name, old_name, new_name):
         if self.Project is not None:
             # Found the resource corresponding to old name and change its name to new name
-            resource = self.Project.getconfigurationResource(config_name)
+            resource = self.Project.getconfigurationResource(config_name, old_name)
             if resource is not None:
-                resource.setName(new_name)
+                resource.setname(new_name)
                 self.BufferProject()
     
     # Return the type of the pou given by its name