5.1.4 ContactField Object

A ContactField represents a field of a Contact at a certain index. A ContactField has attributes, some of which can be modified. If the parent Contact has not been locked for editing, modifications are committed immediately to the database. If the parent Contact has been locked, the changes are committed only when commit is called on the Contact.

class ContactField
ContactField objects have the following attributes:

label

The user-visible label of this field. Read-write.

value

The value of this field. Read-write.

type

The type of this field. Read-only.

location

The location of this field. This can be 'none', 'work', or 'home'.

schema

A dictionary that contains some properties of this field. The contents of this dictionary correspond to those returned by the ContactDb method field_types.

See About this document... for information on suggesting changes.