PLCControler.py
changeset 1831 56b48961cc68
parent 1785 0ff2a45dcefa
child 1832 0f1081928d65
--- a/PLCControler.py	Fri Sep 22 20:12:22 2017 +0300
+++ b/PLCControler.py	Thu Sep 28 12:20:40 2017 +0300
@@ -169,7 +169,7 @@
         return _VariableInfos(*[getattr(self, attr) for attr in self.__slots__])
 
 
-class VariablesInfosFactory:
+class VariablesInfosFactory(object):
 
     def __init__(self, variables):
         self.Variables = variables
@@ -242,7 +242,7 @@
         return _VariableTreeItem(*[getattr(self, attr) for attr in self.__slots__])
 
 
-class VariablesTreeInfosFactory:
+class VariablesTreeInfosFactory(object):
 
     def __init__(self):
         self.Root = None
@@ -264,7 +264,7 @@
                     [_BoolValue] * 2, args) + [[]])))
 
 
-class InstancesPathFactory:
+class InstancesPathFactory(object):
     """Helpers object for generating instances path list"""
     def __init__(self, instances):
         self.Instances = instances
@@ -273,7 +273,7 @@
         self.Instances.append(args[0][0])
 
 
-class InstanceTagName:
+class InstanceTagName(object):
     """Helpers object for generating instance tagname"""
 
     def __init__(self, controller):
@@ -387,7 +387,7 @@
         return _ActionInfos(*[getattr(self, attr) for attr in self.__slots__])
 
 
-class BlockInstanceFactory:
+class BlockInstanceFactory(object):
 
     def __init__(self, block_instances):
         self.BlockInstances = block_instances
@@ -461,7 +461,7 @@
 UNDO_BUFFER_LENGTH = 20
 
 
-class UndoBuffer:
+class UndoBuffer(object):
     """
     Undo Buffer for PLCOpenEditor
     Class implementing a buffer of changes made on the current editing model
@@ -544,7 +544,7 @@
         return self.LastSave == self.CurrentIndex
 
 
-class PLCControler:
+class PLCControler(object):
     """
     Controler for PLCOpenEditor
     Class which controls the operations made on the plcopen model and answers to view requests