Package gchecky :: Module gxml :: Class Double
[hide private]
[frames] | no frames]

Class Double

source code

object --+    
         |    
     Field --+
             |
            Double

Floating point value

Instance Methods [hide private]
 
__init__(self, path, precision=3, **kwargs)
Specify initial parameters for this field instance.
source code
 
data2str(self, data)
Override this method in subclasses
source code
 
str2data(self, text)
Override this method in subclasses
source code

Inherited from Field: __repr__, create_node_for_path, get_any_node_for_path, get_initial_value, get_nodes_for_path, get_one_node_for_path, load, save, validate

Inherited from Field (private): _traits

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods [hide private]

Inherited from Field: deconstruct_path, reconstruct_path

Instance Variables [hide private]

Inherited from Field: default, empty, path, required, save_node_and_xml, values

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, path, precision=3, **kwargs)
(Constructor)

source code 
Specify initial parameters for this field instance. The list of actual parameters depends on the subclass.
Parameters:
  • precision - Precision of the value
Overrides: Field.__init__

data2str(self, data)

source code 
Override this method in subclasses
Overrides: Field.data2str
(inherited documentation)

str2data(self, text)

source code 
Override this method in subclasses
Overrides: Field.str2data
(inherited documentation)