Example #1
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'mac_address', config, str) #mac address string
     # the following paramters are ignored
     get_attribute(self, 'parity', config, int_to_parity)
     get_attribute(self, 'flow_control', config, int_to_flowctl)
     get_attributes(self, ('baud', 'bits', 'stop_bits',
                           'debug', 'dump_cpl'), config, str)
     get_attribute(self, 'custom_baud', config, int)
     get_attribute(self, 'lock_directory', config)
     return config
Example #2
0
    def configuration(self):
        config = CompositeNode.configuration(self)
        get_attribute(self, 'dev', config)
        get_attribute(self, 'parity', config, int_to_parity)
        get_attribute(self, 'flow_control', config, int_to_flowctl)
        get_attributes(self,
                       ('baud', 'bits', 'stop_bits', 'debug', 'dump_cpl'),
                       config, str)
        get_attribute(self, 'custom_baud', config, int)
        get_attribute(self, 'lock_directory', config)

        get_attribute(self, 'VTIME', config, int)
        get_attribute(self, 'VMIN', config, int)

        if 0:  # we don't need to see this stuff in the Node Browser Bug 6066
            get_attribute(self, 'VINTR', config, str)
            get_attribute(self, 'VQUIT', config, str)
            get_attribute(self, 'VERASE', config, str)
            get_attribute(self, 'VKILL', config, str)
            get_attribute(self, 'VEOF', config, str)
            get_attribute(self, 'VSWTC', config, str)
            get_attribute(self, 'VSTART', config, str)
            get_attribute(self, 'VSTOP', config, str)
            get_attribute(self, 'VSUSP', config, str)
            get_attribute(self, 'VEOL', config, str)
            get_attribute(self, 'VREPRINT', config, str)
            get_attribute(self, 'VDISCARD', config, str)
            get_attribute(self, 'VWERASE', config, str)
            get_attribute(self, 'VLNEXT', config, str)
            get_attribute(self, 'VEOL2', config, str)
            get_attribute(self, 'cc17', config, str)
            get_attribute(self, 'cc18', config, str)
            get_attribute(self, 'cc19', config, str)
            get_attribute(self, 'cc20', config, str)
            get_attribute(self, 'cc21', config, str)
            get_attribute(self, 'cc22', config, str)
            get_attribute(self, 'cc23', config, str)
            get_attribute(self, 'cc24', config, str)
            get_attribute(self, 'cc25', config, str)
            get_attribute(self, 'cc26', config, str)
            get_attribute(self, 'cc27', config, str)
            get_attribute(self, 'cc28', config, str)
            get_attribute(self, 'cc29', config, str)
            get_attribute(self, 'cc30', config, str)
            get_attribute(self, 'cc31', config, str)
        return config
Example #3
0
    def configuration(self):
        config = CompositeNode.configuration(self)
        get_attribute(self, 'dev', config)
        get_attribute(self, 'parity', config, int_to_parity)
        get_attribute(self, 'flow_control', config, int_to_flowctl)
        get_attributes(self, ('baud', 'bits', 'stop_bits',
                              'debug', 'dump_cpl'), config, str)
        get_attribute(self, 'custom_baud', config, int)
        get_attribute(self, 'lock_directory', config)

        get_attribute(self, 'VTIME', config, int)
        get_attribute(self, 'VMIN', config, int)
        get_attribute(self, 'raw_mode', config, str)
        if 0:  # we don't need to see this stuff in the Node Browser Bug 6066
            get_attribute(self, 'VINTR', config, str)
            get_attribute(self, 'VQUIT', config, str)
            get_attribute(self, 'VERASE', config, str)
            get_attribute(self, 'VKILL', config, str)
            get_attribute(self, 'VEOF', config, str)
            get_attribute(self, 'VSWTC', config, str)
            get_attribute(self, 'VSTART', config, str)
            get_attribute(self, 'VSTOP', config, str)
            get_attribute(self, 'VSUSP', config, str)
            get_attribute(self, 'VEOL', config, str)
            get_attribute(self, 'VREPRINT', config, str)
            get_attribute(self, 'VDISCARD', config, str)
            get_attribute(self, 'VWERASE', config, str)
            get_attribute(self, 'VLNEXT', config, str)
            get_attribute(self, 'VEOL2', config, str)
            get_attribute(self, 'cc17', config, str)
            get_attribute(self, 'cc18', config, str)
            get_attribute(self, 'cc19', config, str)
            get_attribute(self, 'cc20', config, str)
            get_attribute(self, 'cc21', config, str)
            get_attribute(self, 'cc22', config, str)
            get_attribute(self, 'cc23', config, str)
            get_attribute(self, 'cc24', config, str)
            get_attribute(self, 'cc25', config, str)
            get_attribute(self, 'cc26', config, str)
            get_attribute(self, 'cc27', config, str)
            get_attribute(self, 'cc28', config, str)
            get_attribute(self, 'cc29', config, str)
            get_attribute(self, 'cc30', config, str)
            get_attribute(self, 'cc31', config, str)
        return config
Example #4
0
    def configuration(self):
        config = CompositeNode.configuration(self)
        get_attribute(self, "dev", config)
        get_attribute(self, "parity", config, int_to_parity)
        get_attribute(self, "flow_control", config, int_to_flowctl)
        get_attributes(self, ("baud", "bits", "stop_bits", "debug", "dump_cpl"), config, str)
        get_attribute(self, "custom_baud", config, int)
        get_attribute(self, "lock_directory", config)

        get_attribute(self, "VTIME", config, int)
        get_attribute(self, "VMIN", config, int)

        if 0:  # we don't need to see this stuff in the Node Browser Bug 6066
            get_attribute(self, "VINTR", config, str)
            get_attribute(self, "VQUIT", config, str)
            get_attribute(self, "VERASE", config, str)
            get_attribute(self, "VKILL", config, str)
            get_attribute(self, "VEOF", config, str)
            get_attribute(self, "VSWTC", config, str)
            get_attribute(self, "VSTART", config, str)
            get_attribute(self, "VSTOP", config, str)
            get_attribute(self, "VSUSP", config, str)
            get_attribute(self, "VEOL", config, str)
            get_attribute(self, "VREPRINT", config, str)
            get_attribute(self, "VDISCARD", config, str)
            get_attribute(self, "VWERASE", config, str)
            get_attribute(self, "VLNEXT", config, str)
            get_attribute(self, "VEOL2", config, str)
            get_attribute(self, "cc17", config, str)
            get_attribute(self, "cc18", config, str)
            get_attribute(self, "cc19", config, str)
            get_attribute(self, "cc20", config, str)
            get_attribute(self, "cc21", config, str)
            get_attribute(self, "cc22", config, str)
            get_attribute(self, "cc23", config, str)
            get_attribute(self, "cc24", config, str)
            get_attribute(self, "cc25", config, str)
            get_attribute(self, "cc26", config, str)
            get_attribute(self, "cc27", config, str)
            get_attribute(self, "cc28", config, str)
            get_attribute(self, "cc29", config, str)
            get_attribute(self, "cc30", config, str)
            get_attribute(self, "cc31", config, str)
        return config
Example #5
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'unit', config, str)
     get_attributes(self, ['min', 'max'], config, str)
     return config
Example #6
0
 def configuration(self):
     config = CompositeNode.configuration(self)
     get_attribute(self, 'unit', config, str)
     get_attributes(self, ['min', 'max'], config, str)
     return config