PLCGenerator.py
changeset 501 edfa63d3c26d
parent 499 cecb4369fa42
child 507 42150e041dbe
equal deleted inserted replaced
500:b3499ff87178 501:edfa63d3c26d
   924                 else:
   924                 else:
   925                     return [("(", ())] + JoinList([(" OR ", ())], vars) + [(")", ())]
   925                     return [("(", ())] + JoinList([(" OR ", ())], vars) + [(")", ())]
   926         elif type(paths) == ListType:
   926         elif type(paths) == ListType:
   927             vars = [self.ComputePaths(path) for path in paths]
   927             vars = [self.ComputePaths(path) for path in paths]
   928             return JoinList([(" AND ", ())], vars)
   928             return JoinList([(" AND ", ())], vars)
       
   929         elif paths is None:
       
   930             return [("TRUE", ())]
   929         else:
   931         else:
   930             return eval(paths)
   932             return eval(paths)
   931 
   933 
   932     def ComputeExpression(self, body, connections, order = False):
   934     def ComputeExpression(self, body, connections, order = False):
   933         paths = self.GeneratePaths(connections, body, order)
   935         paths = self.GeneratePaths(connections, body, order)