Package conduit :: Package modules :: Module TestModule :: Class TestDataType
[hide private]

Class TestDataType

source code


Instance Methods [hide private]
 
__init__(self, Integer, mtime=DEFAULT_MTIME, hash=DEFAULT_HASH)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
__getstate__(self)
Store the object state in a dict for pickling
source code
 
__setstate__(self, data)
Set object state from dict (after unpickling)
source code
 
get_hash(self) source code
 
get_snippet(self)
Returns a small representation of the data that may be shown to the user.
source code
 
compare(self, B)
Comparison function to be overridden by datatypes who support two way synchronisation.
source code

Inherited from datatypes.DataType.DataType: get_UID, get_mtime, get_open_URI, get_rid, get_tags, get_type, set_UID, set_mtime, set_open_URI, set_tags

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

Class Variables [hide private]
string _name_ = "test_type"
The name of the type
Instance Variables [hide private]

Inherited from datatypes.DataType.DataType: UID, URI

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, Integer, mtime=DEFAULT_MTIME, hash=DEFAULT_HASH)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: datatypes.DataType.DataType.__init__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__getstate__(self)

source code 
Store the object state in a dict for pickling
Overrides: datatypes.DataType.DataType.__getstate__
(inherited documentation)

__setstate__(self, data)

source code 
Set object state from dict (after unpickling)
Overrides: datatypes.DataType.DataType.__setstate__
(inherited documentation)

get_hash(self)

source code 
Overrides: datatypes.DataType.DataType.get_hash

get_snippet(self)

source code 
Returns a small representation of the data that may be shown to the user. Derived types may override this function.
Overrides: datatypes.DataType.DataType.get_snippet
(inherited documentation)

compare(self, B)

source code 

Comparison function to be overridden by datatypes who support two way synchronisation.

This funcion should compare self with B. All answers are from the perspective of the me (the instance)
Overrides: datatypes.DataType.DataType.compare
(inherited documentation)