PLCControler.py
changeset 1872 866fb3ab8778
parent 1852 70c1cc354a8f
child 1875 62aaabbf8812
equal deleted inserted replaced
1871:933fbe9a5e2c 1872:866fb3ab8778
   238     def __init__(self, *args):
   238     def __init__(self, *args):
   239         for attr, value in zip(self.__slots__, args):
   239         for attr, value in zip(self.__slots__, args):
   240             setattr(self, attr, value if value is not None else "")
   240             setattr(self, attr, value if value is not None else "")
   241 
   241 
   242     def copy(self):
   242     def copy(self):
   243         return _VariableTreeItem(*[getattr(self, attr) for attr in self.__slots__])
   243         return _VariablesTreeItemInfos(*[getattr(self, attr) for attr in self.__slots__])
   244 
   244 
   245 
   245 
   246 class VariablesTreeInfosFactory(object):
   246 class VariablesTreeInfosFactory(object):
   247 
   247 
   248     def __init__(self):
   248     def __init__(self):
  1590     def GetConfNodeDataTypes(self, exclude=None, only_locatables=False):
  1590     def GetConfNodeDataTypes(self, exclude=None, only_locatables=False):
  1591         return [{"name": _("%s Data Types") % confnodetypes["name"],
  1591         return [{"name": _("%s Data Types") % confnodetypes["name"],
  1592                  "list": [
  1592                  "list": [
  1593                     datatype.getname()
  1593                     datatype.getname()
  1594                     for datatype in confnodetypes["types"].getdataTypes()
  1594                     for datatype in confnodetypes["types"].getdataTypes()
  1595                     if not only_locatables or self.IsLocatableDataType(datatype, debug)]}
  1595                     if not only_locatables or self.IsLocatableDataType(datatype)]}
  1596                 for confnodetypes in self.ConfNodeTypes]
  1596                 for confnodetypes in self.ConfNodeTypes]
  1597 
  1597 
  1598     def GetVariableLocationTree(self):
  1598     def GetVariableLocationTree(self):
  1599         return []
  1599         return []
  1600 
  1600