GData.ContactsContact¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Billing information for the contact. |
||
r/w |
The contact’s birthday. |
||
r/w |
Whether the contact’s birthday includes their year of birth. |
||
r |
Whether the entry has been deleted. |
||
r/w |
The name or address of an associated directory server. |
||
r |
The last time the contact was edited. |
||
r/w |
The name to file the contact under for sorting purposes. |
||
r/w |
The gender of the contact. |
||
r/w |
The initials of the contact. |
||
r/w |
The maiden name of the contact. |
||
r/w |
A mileage associated with the contact. |
||
r/w |
The contact’s name in a structured representation. |
||
r/w |
The contact’s chosen nickname. |
||
r/w |
The contact’s occupation. |
||
r |
The ETag of the contact’s photo. |
||
r/w |
The contact’s importance. |
||
r/w |
The sensitivity of the contact’s data. |
||
r/w |
A short name for the contact. |
||
r/w |
The subject of the contact. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.ContactsContact(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.ContactsContactstructure are private and should never be accessed directly.New in version 0.2.0.
- classmethod new(id)¶
- Parameters:
- Returns:
a new
GData.ContactsContact; unref withGObject.Object.unref()- Return type:
Creates a new
GData.ContactsContactwith the given ID and default properties.New in version 0.2.0.
- add_calendar(calendar)¶
- Parameters:
calendar (
GData.GContactCalendar) – aGData.GContactCalendarto add
Adds a calendar to the contact’s list of calendars and increments its reference count.
Duplicate calendars will not be added to the list, though the same URI may appear in several
GData.GContactCalendarswith different relation types or labels.New in version 0.7.0.
- add_email_address(email_address)¶
- Parameters:
email_address (
GData.GDEmailAddress) – aGData.GDEmailAddressto add
Adds an e-mail address to the contact’s list of e-mail addresses and increments its reference count.
Note that only one e-mail address per contact may be marked as “primary”. Insertion and update operations (with
GData.ContactsService.insert_contact()) will return an error if more than one e-mail address is marked as primary.Duplicate e-mail addresses will not be added to the list.
New in version 0.2.0.
- add_event(event)¶
- Parameters:
event (
GData.GContactEvent) – aGData.GContactEventto add
Adds an event to the contact’s list of events and increments its reference count.
Duplicate events will be added to the list, and multiple events with the same event type can be added to a single contact. Though it may not make sense for some event types to be repeated, adding them is allowed.
New in version 0.7.0.
- add_external_id(external_id)¶
- Parameters:
external_id (
GData.GContactExternalID) – aGData.GContactExternalIDto add
Adds an external ID to the contact’s list of external IDs and increments its reference count.
Duplicate IDs will not be added to the list.
New in version 0.7.0.
- add_group(href)¶
- Parameters:
href (
str) – the group’s ID URI
Adds the contact to the given group. href should be a URI.
New in version 0.2.0.
- add_hobby(hobby)¶
- Parameters:
hobby (
str) – a hobby to add
Adds a hobby to the contact’s list of hobbies, copying it in the process.
Duplicate hobbies will not be added to the list.
New in version 0.7.0.
- add_im_address(im_address)¶
- Parameters:
im_address (
GData.GDIMAddress) – aGData.GDIMAddressto add
Adds an IM (instant messaging) address to the contact’s list of IM addresses and increments its reference count.
Note that only one IM address per contact may be marked as “primary”. Insertion and update operations (with
GData.ContactsService.insert_contact()) will return an error if more than one IM address is marked as primary.Duplicate IM addresses will not be added to the list.
New in version 0.2.0.
- add_jot(jot)¶
- Parameters:
jot (
GData.GContactJot) – aGData.GContactJotto add
Adds a jot to the contact’s list of jots and increments its reference count.
Duplicate jots will be added to the list, and multiple jots with the same relation type can be added to a single contact.
New in version 0.7.0.
- add_language(language)¶
- Parameters:
language (
GData.GContactLanguage) – aGData.GContactLanguageto add
Adds a language to the contact’s list of languages and increments its reference count.
Duplicate languages will not be added to the list.
New in version 0.7.0.
- add_organization(organization)¶
- Parameters:
organization (
GData.GDOrganization) – aGData.GDOrganizationto add
Adds an organization to the contact’s list of organizations (e.g. employers) and increments its reference count.
Note that only one organization per contact may be marked as “primary”. Insertion and update operations (with
GData.ContactsService.insert_contact()) will return an error if more than one organization is marked as primary.Duplicate organizations will not be added to the list.
New in version 0.2.0.
- add_phone_number(phone_number)¶
- Parameters:
phone_number (
GData.GDPhoneNumber) – aGData.GDPhoneNumberto add
Adds a phone number to the contact’s list of phone numbers and increments its reference count
Note that only one phone number per contact may be marked as “primary”. Insertion and update operations (with
GData.ContactsService.insert_contact()) will return an error if more than one phone number is marked as primary.Duplicate phone numbers will not be added to the list.
New in version 0.2.0.
- add_postal_address(postal_address)¶
- Parameters:
postal_address (
GData.GDPostalAddress) – aGData.GDPostalAddressto add
Adds a postal address to the contact’s list of postal addresses and increments its reference count.
Note that only one postal address per contact may be marked as “primary”. Insertion and update operations (with
GData.ContactsService.insert_contact()) will return an error if more than one postal address is marked as primary.Duplicate postal addresses will not be added to the list.
New in version 0.2.0.
- add_relation(relation)¶
- Parameters:
relation (
GData.GContactRelation) – aGData.GContactRelationto add
Adds a relation to the contact’s list of relations and increments its reference count.
Duplicate relations will be added to the list, and multiple relations with the same relation type can be added to a single contact. Though it may not make sense for some relation types to be repeated, adding them is allowed.
New in version 0.7.0.
- add_website(website)¶
- Parameters:
website (
GData.GContactWebsite) – aGData.GContactWebsiteto add
Adds a website to the contact’s list of websites and increments its reference count.
Duplicate websites will not be added to the list, though the same URI may appear in several
GData.GContactWebsiteswith different relation types or labels.New in version 0.7.0.
- get_billing_information()¶
-
Gets the
GData.ContactsContact:billing-informationproperty.New in version 0.7.0.
- get_birthday()¶
- Returns:
whether the contact’s birthday has the year set
- birthday:
return location for the birthday, or
None
- Return type:
Gets the
GData.ContactsContact:birthdayandGData.ContactsContact:birthday-has-yearproperties. If birthday is non-None,GData.ContactsContact:birthdayis returned in it. The function returns the value ofGData.ContactsContact:birthday-has-year, which specifies whether the year in birthday is meaningful. Contacts may not have the year of their birth set, in which case, the function would returnFalse, and the year in birthday should be ignored.New in version 0.7.0.
- get_calendars()¶
- Returns:
a
GLib.ListofGData.GContactCalendars, orNone- Return type:
Gets a list of the calendars of the contact.
New in version 0.7.0.
- get_directory_server()¶
- Returns:
the name or address of a directory server associated with the contact, or
None- Return type:
Gets the
GData.ContactsContact:directory-serverproperty.New in version 0.7.0.
- get_edited()¶
- Returns:
the UNIX timestamp for the time the contact was last edited, or -1
- Return type:
Gets the
GData.ContactsContact:editedproperty. If the property is unset, -1 will be returned.New in version 0.2.0.
- get_email_addresses()¶
- Returns:
a
GLib.ListofGData.GDEmailAddresses, orNone- Return type:
Gets a list of the e-mail addresses owned by the contact.
New in version 0.2.0.
- get_events()¶
- Returns:
a
GLib.ListofGData.GContactEvents, orNone- Return type:
Gets a list of the events of the contact.
New in version 0.7.0.
- get_extended_properties()¶
- Returns:
a
GLib.HashTableof extended properties- Return type:
Gets the full list of extended properties of the contact; a hash table mapping property name to value.
New in version 0.4.0.
- get_extended_property(name)¶
- Parameters:
name (
str) – the property name; an arbitrary, unique string- Returns:
the property’s value, or
None- Return type:
Gets the value of an extended property of the contact. Each contact can have up to 10 client-set extended properties to store data of the client’s choosing.
New in version 0.2.0.
- get_external_ids()¶
- Returns:
a
GLib.ListofGData.GContactExternalIDs, orNone- Return type:
Gets a list of the external IDs of the contact.
New in version 0.7.0.
- get_file_as()¶
-
Gets the
GData.ContactsContact:file-asproperty.New in version 0.11.0.
- get_gender()¶
-
Gets the
GData.ContactsContact:genderproperty.New in version 0.7.0.
- get_groups()¶
-
Gets a list of the groups to which the contact belongs.
New in version 0.2.0.
- get_hobbies()¶
-
Gets a list of the hobbies of the contact.
New in version 0.7.0.
- get_im_addresses()¶
- Returns:
a
GLib.ListofGData.GDIMAddresses, orNone- Return type:
Gets a list of the IM addresses owned by the contact.
New in version 0.2.0.
- get_initials()¶
-
Gets the
GData.ContactsContact:initialsproperty.New in version 0.7.0.
- get_jots()¶
- Returns:
a
GLib.ListofGData.GContactJots, orNone- Return type:
Gets a list of the jots attached to the contact.
New in version 0.7.0.
- get_languages()¶
- Returns:
a
GLib.ListofGData.GContactLanguages, orNone- Return type:
Gets a list of the languages of the contact.
New in version 0.7.0.
- get_maiden_name()¶
-
Gets the
GData.ContactsContact:maiden-nameproperty.New in version 0.7.0.
- get_mileage()¶
-
Gets the
GData.ContactsContact:mileageproperty.New in version 0.7.0.
- get_name()¶
- Returns:
the contact’s name, or
None- Return type:
Gets the
GData.ContactsContact:nameproperty.New in version 0.5.0.
- get_nickname()¶
-
Gets the
GData.ContactsContact:nicknameproperty.New in version 0.7.0.
- get_occupation()¶
-
Gets the
GData.ContactsContact:occupationproperty.New in version 0.7.0.
- get_organizations()¶
- Returns:
a
GLib.ListofGData.GDOrganizations, orNone- Return type:
Gets a list of the organizations to which the contact belongs.
New in version 0.2.0.
- get_phone_numbers()¶
- Returns:
a
GLib.ListofGData.GDPhoneNumbers, orNone- Return type:
Gets a list of the phone numbers owned by the contact.
New in version 0.2.0.
- get_photo(service, cancellable)¶
- Parameters:
service (
GData.ContactsService) – aGData.ContactsServicecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
- Return type:
Downloads and returns the contact’s photo, if they have one. If the contact doesn’t have a photo (i.e.
GData.ContactsContact.get_photo_etag() returnsNone),Noneis returned, but no error is set in error.If cancellable is not
None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the errorGio.IOErrorEnum.CANCELLEDwill be returned.If there is an error getting the photo, a
GData.ServiceError.PROTOCOL_ERRORerror will be returned.New in version 0.8.0.
- get_photo_async(service, cancellable, callback, *user_data)¶
- Parameters:
service (
GData.ContactsService) – aGData.ContactsServicecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the photo has been retrieved, orNoneuser_data (
objectorNone) – data to pass to the callback function
Downloads and returns the contact’s photo, if they have one, asynchronously. self and service are both reffed when this function is called, so can safely be unreffed after this function returns.
When the operation is finished, callback will be called. You can then call
GData.ContactsContact.get_photo_finish() to get the results of the operation.For more details, see
GData.ContactsContact.get_photo(), which is the synchronous version of this function.If cancellable is not
None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the errorGio.IOErrorEnum.CANCELLEDwill be returned byGData.ContactsContact.get_photo_finish().If there is an error getting the photo, a
GData.ServiceError.PROTOCOL_ERRORerror will be returned byGData.ContactsContact.get_photo_finish().New in version 0.8.0.
- get_photo_etag()¶
-
Returns the ETag for the contact’s attached photo, if it exists. If it does exist, the contact’s photo can be retrieved using
GData.ContactsContact.get_photo(). If it doesn’t exist,Nonewill be returned, and the contact doesn’t have a photo (so callingGData.ContactsContact.get_photo() will also returnNone)New in version 0.9.0.
- get_photo_finish(async_result)¶
- Parameters:
async_result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
- Return type:
Finishes an asynchronous contact photo retrieval operation started with
GData.ContactsContact.get_photo_async(). If the contact doesn’t have a photo (i.e.GData.ContactsContact.get_photo_etag() returnsNone),Noneis returned, but no error is set in error.If there is an error getting the photo, a
GData.ServiceError.PROTOCOL_ERRORerror will be returned. length will be set to0 and content_type will be set to
None.New in version 0.8.0.
- get_postal_addresses()¶
- Returns:
a
GLib.ListofGData.GDPostalAddresses, orNone- Return type:
Gets a list of the postal addresses owned by the contact.
New in version 0.2.0.
- get_primary_calendar()¶
- Returns:
a
GData.GContactCalendar, orNone- Return type:
Gets the contact’s primary calendar, if one exists.
New in version 0.7.0.
- get_primary_email_address()¶
- Returns:
a
GData.GDEmailAddress, orNone- Return type:
Gets the contact’s primary e-mail address, if one exists.
New in version 0.2.0.
- get_primary_im_address()¶
- Returns:
a
GData.GDIMAddress, orNone- Return type:
Gets the contact’s primary IM address, if one exists.
New in version 0.2.0.
- get_primary_organization()¶
- Returns:
a
GData.GDOrganization, orNone- Return type:
Gets the contact’s primary organization, if one exists.
New in version 0.2.0.
- get_primary_phone_number()¶
- Returns:
a
GData.GDPhoneNumber, orNone- Return type:
Gets the contact’s primary phone number, if one exists.
New in version 0.2.0.
- get_primary_postal_address()¶
- Returns:
a
GData.GDPostalAddress, orNone- Return type:
Gets the contact’s primary postal address, if one exists.
New in version 0.2.0.
- get_primary_website()¶
- Returns:
a
GData.GContactWebsite, orNone- Return type:
Gets the contact’s primary website, if one exists.
New in version 0.7.0.
- get_priority()¶
-
Gets the
GData.ContactsContact:priorityproperty.New in version 0.7.0.
- get_relations()¶
- Returns:
a
GLib.ListofGData.GContactRelations, orNone- Return type:
Gets a list of the relations of the contact.
New in version 0.7.0.
- get_sensitivity()¶
-
Gets the
GData.ContactsContact:sensitivityproperty.New in version 0.7.0.
- get_short_name()¶
-
Gets the
GData.ContactsContact:short-nameproperty.New in version 0.7.0.
- get_subject()¶
-
Gets the
GData.ContactsContact:subjectproperty.New in version 0.7.0.
- get_user_defined_field(name)¶
- Parameters:
name (
str) – the field name; an arbitrary, case-sensitive, unique string- Returns:
the field’s value, or
None- Return type:
Gets the value of a user-defined field of the contact. User-defined fields are settable by the user through the Google Contacts web interface, in contrast to extended properties, which are visible and settable only through the
GLib.Datainterface.The name of the field may not be
None, but may be an empty string.New in version 0.7.0.
- get_user_defined_fields()¶
- Returns:
a
GLib.HashTableof user-defined fields- Return type:
Gets the full list of user-defined fields of the contact; a hash table mapping field name to value.
New in version 0.7.0.
- get_websites()¶
- Returns:
a
GLib.ListofGData.GContactWebsites, orNone- Return type:
Gets a list of the websites of the contact.
New in version 0.7.0.
- is_deleted()¶
-
Returns whether the contact has recently been deleted. This will always return
FalseunlessGData.ContactsQuery:show-deletedhas been set toTruefor the query which returned the contact; then this function will returnTrueonly if the contact has been deleted.If a contact has been deleted, no other information is available about it. This is designed to allow contacts to be deleted from local address books using incremental updates from the server (e.g. with
GData.Query:updated-minandGData.ContactsQuery:show-deleted).New in version 0.2.0.
- is_group_deleted(href)¶
- Parameters:
href (
str) – the group’s ID URI- Returns:
Trueif the contact has recently been removed from the group,Falseotherwise- Return type:
Returns whether the contact has recently been removed from the given group on the server. This will always return
FalseunlessGData.ContactsQuery:show-deletedhas been set toTruefor the query which returned the contact.If you’ve just removed a contact from a group locally using
GData.ContactsContact.remove_group(),Falsewill still be returned by this function, as the change hasn’t been sent to the server.New in version 0.2.0.
- remove_all_calendars()¶
Removes all calendars from the contact.
New in version 0.7.0.
- remove_all_email_addresses()¶
Removes all e-mail addresses from the contact.
New in version 0.4.0.
- remove_all_events()¶
Removes all events from the contact.
New in version 0.7.0.
- remove_all_external_ids()¶
Removes all external IDs from the contact.
New in version 0.7.0.
- remove_all_hobbies()¶
Removes all hobbies from the contact.
New in version 0.7.0.
- remove_all_im_addresses()¶
Removes all IM addresses from the contact.
New in version 0.4.0.
- remove_all_jots()¶
Removes all jots from the contact.
New in version 0.7.0.
- remove_all_languages()¶
Removes all languages from the contact.
New in version 0.7.0.
- remove_all_organizations()¶
Removes all organizations from the contact.
New in version 0.4.0.
- remove_all_phone_numbers()¶
Removes all phone numbers from the contact.
New in version 0.4.0.
- remove_all_postal_addresses()¶
Removes all postal addresses from the contact.
New in version 0.4.0.
- remove_all_relations()¶
Removes all relations from the contact.
New in version 0.7.0.
- remove_all_websites()¶
Removes all websites from the contact.
New in version 0.7.0.
- remove_group(href)¶
- Parameters:
href (
str) – the group’s ID URI
Removes the contact from the given group. href should be a URI.
New in version 0.2.0.
- set_billing_information(billing_information)¶
- Parameters:
billing_information (
strorNone) – the new billing information for the contact, orNone
Sets the
GData.ContactsContact:billing-informationproperty to billing_information.If billing_information is
None, the contact’s billing information will be removed.New in version 0.7.0.
- set_birthday(birthday, birthday_has_year)¶
- Parameters:
Sets the
GData.ContactsContact:birthdayproperty to birthday and theGData.ContactsContact:birthday-has-yearproperty to birthday_has_year. SeeGData.ContactsContact.get_birthday() for an explanation of the interaction between these two properties.If birthday is
None, the contact’s birthday will be removed.New in version 0.7.0.
- set_directory_server(directory_server)¶
- Parameters:
directory_server (
strorNone) – the new name or address of a directory server associated with the contact, orNone
Sets the
GData.ContactsContact:directory-serverproperty to directory_server.If directory_server is
None, the contact’s directory server will be removed.New in version 0.7.0.
- set_extended_property(name, value)¶
- Parameters:
- Returns:
Trueif the property was updated or deleted successfully,Falseotherwise- Return type:
Sets the value of a contact’s extended property. Extended property names are unique (but of the client’s choosing), and reusing the same property name will result in the old value of that property being overwritten.
To unset a property, set value to
Noneor an empty string.A contact may have up to 10 extended properties, and each should be reasonably small (i.e. not a photo or ringtone). For more information, see the online documentation.
Falsewill be returned if you attempt to add more than 10 extended properties.New in version 0.2.0.
- set_file_as(file_as)¶
-
Sets the
GData.ContactsContact:file-asproperty to file_as.If file_as is
None, the contact will be filed under their full name.New in version 0.7.0.
- set_gender(gender)¶
-
Sets the
GData.ContactsContact:genderproperty to gender.If gender is
None, the contact’s gender will be removed.New in version 0.7.0.
- set_initials(initials)¶
-
Sets the
GData.ContactsContact:initialsproperty to initials.If initials is
None, the contact’s initials will be removed.New in version 0.7.0.
- set_maiden_name(maiden_name)¶
-
Sets the
GData.ContactsContact:maiden-nameproperty to maiden_name.If maiden_name is
None, the contact’s maiden name will be removed.New in version 0.7.0.
- set_mileage(mileage)¶
-
Sets the
GData.ContactsContact:mileageproperty to mileage.If mileage is
None, the contact’s mileage will be removed.New in version 0.7.0.
- set_name(name)¶
- Parameters:
name (
GData.GDName) – the newGData.GDName
Sets the
GData.ContactsContact:nameproperty to name, and increments its reference count.name must not be
None, though all its properties may beNone.New in version 0.7.0.
- set_nickname(nickname)¶
-
Sets the
GData.ContactsContact:nicknameproperty to nickname.If nickname is
None, the contact’s nickname will be removed.New in version 0.7.0.
- set_occupation(occupation)¶
-
Sets the
GData.ContactsContact:occupationproperty to occupation.If occupation is
None, the contact’s occupation will be removed.New in version 0.7.0.
- set_photo(service, data, length, content_type, cancellable)¶
- Parameters:
service (
GData.ContactsService) – aGData.ContactsServicelength (
int) – the image length, in bytescontent_type (
strorNone) – the content type of the image, orNonecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
- Return type:
Sets the contact’s photo to data or, if data is
None, deletes the contact’s photo. content_type must be specified if data is non-None.If cancellable is not
None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the errorGio.IOErrorEnum.CANCELLEDwill be returned.If there is an error setting the photo, a
GData.ServiceError.PROTOCOL_ERRORerror will be returned.New in version 0.8.0.
- set_photo_async(service, data, length, content_type, cancellable, callback, *user_data)¶
- Parameters:
service (
GData.ContactsService) – aGData.ContactsServicelength (
int) – the image length, in bytescontent_type (
strorNone) – the content type of the image, orNonecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the photo has been set, orNoneuser_data (
objectorNone) – data to pass to the callback function
Sets the contact’s photo to data or, if data is
None, deletes the contact’s photo. content_type must be specified if data is non-None. self, service, data and content_type are all reffed and copied when this function is called, so can safely be unreffed after this function returns.When the operation is finished, callback will be called. You can then call
GData.ContactsContact.set_photo_finish() to get the results of the operation.For more details, see
GData.ContactsContact.set_photo(), which is the synchronous version of this function.If cancellable is not
None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the errorGio.IOErrorEnum.CANCELLEDwill be returned byGData.ContactsContact.set_photo_finish().If there is an error setting the photo, a
GData.ServiceError.PROTOCOL_ERRORerror will be returned byGData.ContactsContact.set_photo_finish().New in version 0.8.0.
- set_photo_finish(async_result)¶
- Parameters:
async_result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
- Return type:
Finishes an asynchronous contact photo setting operation started with
GData.ContactsContact.set_photo_async().If there is an error setting the photo, a
GData.ServiceError.PROTOCOL_ERRORerror will be returned.New in version 0.8.0.
- set_priority(priority)¶
-
Sets the
GData.ContactsContact:priorityproperty to priority.If priority is
None, the contact’s priority will be removed.New in version 0.7.0.
- set_sensitivity(sensitivity)¶
-
Sets the
GData.ContactsContact:sensitivityproperty to sensitivity.If sensitivity is
None, the contact’s sensitivity will be removed.New in version 0.7.0.
- set_short_name(short_name)¶
-
Sets the
GData.ContactsContact:short-nameproperty to short_name.If short_name is
None, the contact’s short name will be removed.New in version 0.7.0.
- set_subject(subject)¶
-
Sets the
GData.ContactsContact:subjectproperty to subject.If subject is
None, the contact’s subject will be removed.New in version 0.7.0.
- set_user_defined_field(name, value)¶
- Parameters:
Sets the value of a contact’s user-defined field. User-defined field names are unique (but of the client’s choosing), and reusing the same field name will result in the old value of that field being overwritten.
The name of the field may not be
None, but may be an empty string.To unset a field, set value to
None.New in version 0.7.0.
Property Details¶
- GData.ContactsContact.props.billing_information¶
-
Billing information for the contact, such as their billing name and address.
New in version 0.7.0.
- GData.ContactsContact.props.birthday¶
-
The contact’s birthday.
New in version 0.7.0.
- GData.ContactsContact.props.birthday_has_year¶
-
Whether the contact’s birthday includes their year of birth.
New in version 0.7.0.
- GData.ContactsContact.props.deleted¶
-
Whether the entry has been deleted.
New in version 0.2.0.
- GData.ContactsContact.props.directory_server¶
-
The name or address of a directory server associated with the contact.
New in version 0.7.0.
- GData.ContactsContact.props.edited¶
-
The last time the contact was edited. If the contact has not been edited yet, the content indicates the time it was created.
For more information, see the Atom Publishing Protocol specification.
New in version 0.2.0.
- GData.ContactsContact.props.file_as¶
-
The name to file the contact under for sorting purposes.
New in version 0.11.0.
- GData.ContactsContact.props.gender¶
-
The gender of the contact. For example:
GData.CONTACTS_GENDER_MALEorGData.CONTACTS_GENDER_FEMALE.New in version 0.7.0.
- GData.ContactsContact.props.initials¶
-
The initials of the contact.
New in version 0.7.0.
- GData.ContactsContact.props.maiden_name¶
-
The maiden name of the contact.
New in version 0.7.0.
- GData.ContactsContact.props.mileage¶
-
A mileage associated with the contact, such as one for reimbursement purposes. It can be in any format.
New in version 0.7.0.
- GData.ContactsContact.props.name¶
- Name:
name- Type:
- Default Value:
- Flags:
The contact’s name in a structured representation.
New in version 0.5.0.
- GData.ContactsContact.props.nickname¶
-
The contact’s chosen nickname.
New in version 0.7.0.
- GData.ContactsContact.props.occupation¶
-
The contact’s occupation.
New in version 0.7.0.
- GData.ContactsContact.props.photo_etag¶
-
The ETag of the contact’s photo, if the contact has a photo;
Noneotherwise.New in version 0.9.0.
- GData.ContactsContact.props.priority¶
-
The contact’s importance. For example:
GData.CONTACTS_PRIORITY_NORMALorGData.CONTACTS_PRIORITY_HIGH.New in version 0.7.0.
- GData.ContactsContact.props.sensitivity¶
-
The sensitivity of the contact’s data. For example:
GData.CONTACTS_SENSITIVITY_NORMALorGData.CONTACTS_SENSITIVITY_PRIVATE.New in version 0.7.0.
- GData.ContactsContact.props.short_name¶
-
A short name for the contact. This should be used for contracted versions of the contact’s actual name, whereas
GData.ContactsContact:nicknameshould be used for nicknames.New in version 0.7.0.