Package gen :: Package lib :: Module grampstype :: Class GrampsType
[frames] | no frames]

Class GrampsType

source code


Instance Methods
 
__init__(self, value=None)
Create a new type, initialize the value from one of several possible states.
source code
 
set(self, value) source code
 
set_from_xml_str(self, value)
This method sets the type instance based on the untranslated string (obtained e.g.
source code
 
xml_str(self)
Return the untranslated string (e.g.
source code
 
serialize(self)
Convert the object to a serialized tuple of data.
source code
 
unserialize(self, data)
Convert a serialized tuple of data to an object.
source code
 
__str__(self) source code
 
__int__(self) source code
 
get_map(self) source code
 
get_standard_names(self)
Return the list of localized names for all standard types.
source code
 
get_standard_xml(self)
Return the list of XML (english) names for all standard types.
source code
 
is_custom(self) source code
 
is_default(self) source code
 
get_custom(self) source code
 
__cmp__(self, value) source code
Method Details

set_from_xml_str(self, value)

source code 

This method sets the type instance based on the untranslated string (obtained e.g. from XML).

xml_str(self)

source code 

Return the untranslated string (e.g. suitable for XML) corresponding to the type.