Package gen :: Package lib :: Module location :: Class Location
[frames] | no frames]

Class Location

source code


Provide information about a place.

The data including city, county, state, and country. Multiple Location objects can represent the same place, since names of citys, countys, states, and even countries can change with time.

Instance Methods
 
__init__(self, source=None)
Create a Location object, copying from the source object if it exists.
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
list
get_text_data_list(self)
Return the list of all textual attributes of the object.
source code
 
is_empty(self) source code
 
set_parish(self, data)
Set the religious parish name.
source code
 
get_parish(self)
Get the religious parish name.
source code

Inherited from secondaryobj.SecondaryObject: is_equal

Inherited from baseobj.BaseObject: get_handle_referents, get_referenced_handles, get_referenced_handles_recursively, get_text_data_child_list, matches_regexp, matches_string

Inherited from locationbase.LocationBase: get_city, get_country, get_county, get_phone, get_postal_code, get_state, get_street, set_city, set_country, set_county, set_phone, set_postal_code, set_state, set_street

Method Details

__init__(self, source=None)
(Constructor)

source code 

Create a Location object, copying from the source object if it exists.

Overrides: locationbase.LocationBase.__init__

serialize(self)

source code 

Convert the object to a serialized tuple of data.

Overrides: locationbase.LocationBase.serialize

unserialize(self, data)

source code 

Convert a serialized tuple of data to an object.

Overrides: locationbase.LocationBase.unserialize

get_text_data_list(self)

source code 

Return the list of all textual attributes of the object.

Returns: list
Returns the list of all textual attributes of the object.
Overrides: locationbase.LocationBase.get_text_data_list