Package gen :: Package lib :: Module url :: Class Url
[frames] | no frames]

Class Url

source code


Contains information related to internet Uniform Resource Locators, allowing gramps to store information about internet resources.

Instance Methods
 
__init__(self, source=None)
Create a new URL instance, copying from the source if present.
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
 
set_path(self, path)
Set the URL path.
source code
 
get_path(self)
Return the URL path.
source code
 
set_description(self, description)
Set the description of the URL.
source code
 
get_description(self)
Return the description of the URL.
source code
 
set_type(self, the_type) source code
str
get_type(self)
Returns: the descriptive type of the Url
source code
 
are_equal(self, other)
Deprecated - use is_equal instead.
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 privacybase.PrivacyBase: get_privacy, set_privacy

Method Details

__init__(self, source=None)
(Constructor)

source code 

Create a new URL instance, copying from the source if present.

Parameters:
  • source - Object used to initialize the new object
Overrides: privacybase.PrivacyBase.__init__

serialize(self)

source code 

Convert the object to a serialized tuple of data.

Overrides: privacybase.PrivacyBase.serialize
(inherited documentation)

unserialize(self, data)

source code 

Convert a serialized tuple of data to an object.

Overrides: privacybase.PrivacyBase.unserialize
(inherited documentation)

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: baseobj.BaseObject.get_text_data_list

set_type(self, the_type)

source code 
Parameters:
  • the_type (str) - descriptive type of the Url

get_type(self)

source code 
Returns: str
the descriptive type of the Url