Example #1
0
    def data(self, value):
        """Set data value. Inputs are converted into target format.
        """
        if self.data_type and value is not None:
            value = convert(self.data_type, value)

        DataHandler.data.fset(self, value)
Example #2
0
    def data(self, value):
        """Set data value. Inputs are converted into target format.
        """
        if self.data_type and value is not None:
            value = convert(self.data_type, value)

        DataHandler.data.fset(self, value)
Example #3
0
    def set_data(self, data):
        """Set data value. input data are converted into target format
        """

        if self.data_type:
            data = convert(self.data_type, data)

        IOHandler.set_data(self, data)
Example #4
0
    def set_data(self, data):
        """Set data value. input data are converted into target format
        """

        if self.data_type:
            data = convert(self.data_type, data)

        IOHandler.set_data(self, data)
Example #5
0
 def test_data_type(self):
     self.assertEqual(convert(self.simple_handler.data_type, '1'), 1)
Example #6
0
 def test_data_type(self):
     self.assertEqual(convert(self.simple_handler.data_type, '1'), 1)