Exemple #1
0
 def device_name_factory(self, dev_name_list):
     """Builds list of device names to use when no Database is being used
     
     :param dev_name_list: list to be filled with device names
     :type dev_name_list: seq<obj:`list`\>"""
     tango_class = self.get_name()
     devices = NO_DB_MAP.get(tango_class, ())
     for dev_info in devices:
         dev_name_list.append(dev_info[1])
Exemple #2
0
    def device_name_factory(self, dev_name_list):
        """Builds list of device names to use when no Database is being used

        :param dev_name_list: list to be filled with device names
        :type dev_name_list: seq<obj:`list`\>"""
        tango_class = self.get_name()
        devices = NO_DB_MAP.get(tango_class, ())
        for dev_info in devices:
            dev_name_list.append(dev_info[1])
Exemple #3
0
 def _get_nodb_device_info(self):
     """Internal method. Returns the device info when tango database is not
     being used (example: in demos)"""
     name = self.get_name()
     tango_class = self.get_device_class().get_name()
     devices = NO_DB_MAP.get(tango_class, ())
     for dev_info in devices:
         if dev_info[1] == name:
             return dev_info
Exemple #4
0
 def _get_nodb_device_info(self):
     """Internal method. Returns the device info when tango database is not
     being used (example: in demos)"""
     name = self.get_name()
     tango_class = self.get_device_class().get_name()
     devices = NO_DB_MAP.get(tango_class, ())
     for dev_info in devices:
         if dev_info[1] == name:
             return dev_info