objdictgen/node.py
changeset 245 d43ebbed895f
parent 239 f45fd4cd3832
child 258 8f7725451453
equal deleted inserted replaced
244:da4245399655 245:d43ebbed895f
   671                     result.update(self.ParamsDictionary[index][subIndex])
   671                     result.update(self.ParamsDictionary[index][subIndex])
   672                 return result
   672                 return result
   673         return None
   673         return None
   674 
   674 
   675     def HasEntryCallbacks(self, index):
   675     def HasEntryCallbacks(self, index):
   676         if not getattr(self, "ParamsDictionary", False):
   676         entry_infos = self.GetEntryInfos(index)
   677             self.ParamsDictionary = {}
   677         if entry_infos and "callback" in entry_infos:
   678         if index in self.Dictionary and index in self.ParamsDictionary and "callback" in self.ParamsDictionary[index]:
   678             return entry_infos["callback"]
   679             return self.ParamsDictionary[index]["callback"]
   679         else:
       
   680             if not getattr(self, "ParamsDictionary", False):
       
   681                 self.ParamsDictionary = {}
       
   682             if index in self.Dictionary and index in self.ParamsDictionary and "callback" in self.ParamsDictionary[index]:
       
   683                 return self.ParamsDictionary[index]["callback"]
   680         return False
   684         return False
   681 
   685 
   682     """
   686     """
   683     Check if an entry exists in the User Mapping Dictionary and returns the answer.
   687     Check if an entry exists in the User Mapping Dictionary and returns the answer.
   684     """
   688     """