Example #1
0
 def _subscribe(self):
     self._infoKeeper = InfoKepper()
     self._plotKeeper = PlotInfoKeeper()
     self._subscribed = []
     self._pNames = set()
     for k, v in self.__dict__.items():
         if k != '_infoKeeper' and k != '_subscribed' and k != '_pNames':
             self._subscribeOneItem(v)
Example #2
0
 def _subscribe(self):
     self._infoKeeper = InfoKepper()
     self._subscribed = []
     self._pNames = {}
     for k, v in self.__dict__.items():
         if isinstance(v, SecurityValueHolder):
             self._subscribed.append(v)
             if not self._pNames:
                 for name in v.dependency:
                     self._pNames[name] = set(v.dependency[name])
             else:
                 for name in self._pNames:
                     if name in v.dependency:
                         self._pNames[name] = self._pNames[name].union(set(v.dependency[name]))