GData.GDOrganization

g GData.Comparable GData.Comparable GData.GDOrganization GData.GDOrganization GData.Comparable->GData.GDOrganization GData.Parsable GData.Parsable GData.Parsable->GData.GDOrganization GObject.GInterface GObject.GInterface GObject.GInterface->GData.Comparable GObject.Object GObject.Object GObject.Object->GData.Parsable

Subclasses:

None

Methods

Inherited:

GData.Parsable (5), GObject.Object (37), GData.Comparable (1)

Structs:

GObject.ObjectClass (5)

class

new (name, title, relation_type, label, is_primary)

get_department ()

get_job_description ()

get_label ()

get_location ()

get_name ()

get_relation_type ()

get_symbol ()

get_title ()

is_primary ()

set_department (department)

set_is_primary (is_primary)

set_job_description (job_description)

set_label (label)

set_location (location)

set_name (name)

set_relation_type (relation_type)

set_symbol (symbol)

set_title (title)

Virtual Methods

Inherited:

GData.Parsable (9), GObject.Object (7), GData.Comparable (1)

Properties

Inherited:

GData.Parsable (1)

Name

Type

Flags

Short Description

department

str

r/w

Specifies a department within the organization.

is-primary

bool

r/w

Indicates which organization out of a group is primary.

job-description

str

r/w

Description of a job within the organization.

label

str

r/w

A simple string value used to name this organization.

location

GData.GDWhere

r/w

A place associated with the organization, e.g. office location.

name

str

r/w

The name of the organization.

relation-type

str

r/w

A programmatic value that identifies the type of organization.

symbol

str

r/w

Symbol of the organization.

title

str

r/w

The title of a person within the organization.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Parsable

r

Class Details

class GData.GDOrganization(**kwargs)
Bases:

GData.Parsable, GData.Comparable

Abstract:

No

Structure:

GData.GDOrganizationClass

All the fields in the GData.GDOrganization structure are private and should never be accessed directly.

New in version 0.2.0.

classmethod new(name, title, relation_type, label, is_primary)
Parameters:
  • name (str or None) – the name of the organization, or None

  • title (str or None) – the owner’s title within the organization, or None

  • relation_type (str or None) – the relationship between the organization and its owner, or None

  • label (str or None) – a human-readable label for the organization, or None

  • is_primary (bool) – True if this organization is its owner’s primary organization, False otherwise

Returns:

a new GData.GDOrganization, or None; unref with GObject.Object.unref()

Return type:

GData.GDOrganization

Creates a new GData.GDOrganization. More information is available in the GData specification.

New in version 0.2.0.

get_department()
Returns:

the department in which the person works in this organization, or None

Return type:

str

Gets the GData.GDOrganization :department property.

New in version 0.5.0.

get_job_description()
Returns:

the job description of the person in the organization, or None

Return type:

str

Gets the GData.GDOrganization :job-description property.

New in version 0.5.0.

get_label()
Returns:

the organization’s label, or None

Return type:

str

Gets the GData.GDOrganization :label property.

New in version 0.4.0.

get_location()
Returns:

the organization’s location, or None

Return type:

GData.GDWhere

Gets the GData.GDOrganization :location property.

New in version 0.6.0.

get_name()
Returns:

the organization’s name, or None

Return type:

str

Gets the GData.GDOrganization :name property.

New in version 0.4.0.

get_relation_type()
Returns:

the organization’s relation type, or None

Return type:

str

Gets the GData.GDOrganization :relation-type property.

New in version 0.4.0.

get_symbol()
Returns:

the organization’s stock symbol, or None

Return type:

str

Gets the GData.GDOrganization :symbol property.

New in version 0.5.0.

get_title()
Returns:

the organization’s title, or None

Return type:

str

Gets the GData.GDOrganization :title property.

New in version 0.4.0.

is_primary()
Returns:

True if this is the primary organization, False otherwise

Return type:

bool

Gets the GData.GDOrganization :is-primary property.

New in version 0.4.0.

set_department(department)
Parameters:

department (str or None) – the new department for the person working in the organization, or None

Sets the GData.GDOrganization :department property to department.

Set department to None to unset the property in the organization.

New in version 0.5.0.

set_is_primary(is_primary)
Parameters:

is_primary (bool) – True if this is the primary organization, False otherwise

Sets the GData.GDOrganization :is-primary property to is_primary.

New in version 0.4.0.

set_job_description(job_description)
Parameters:

job_description (str or None) – the new job description for the person in the organization, or None

Sets the GData.GDOrganization :job-description property to job_description.

Set job_description to None to unset the property in the organization.

New in version 0.5.0.

set_label(label)
Parameters:

label (str or None) – the new label for the organization, or None

Sets the GData.GDOrganization :label property to label.

Set label to None to unset the property in the organization.

New in version 0.4.0.

set_location(location)
Parameters:

location (GData.GDWhere or None) – the new location for the organization, or None

Sets the GData.GDOrganization :location property to location.

Set location to None to unset the property in the organization.

New in version 0.6.0.

set_name(name)
Parameters:

name (str or None) – the new name for the organization, or None

Sets the GData.GDOrganization :name property to name.

Set name to None to unset the property in the organization.

New in version 0.4.0.

set_relation_type(relation_type)
Parameters:

relation_type (str or None) – the new relation type for the organization, or None

Sets the GData.GDOrganization :relation-type property to relation_type.

Set relation_type to None to unset the property in the organization.

New in version 0.4.0.

set_symbol(symbol)
Parameters:

symbol (str or None) – the new stock symbol for the organization, or None

Sets the GData.GDOrganization :symbol property to symbol.

Set symbol to None to unset the property in the organization.

New in version 0.5.0.

set_title(title)
Parameters:

title (str or None) – the new title for the organization, or None

Sets the GData.GDOrganization :title property to title.

Set title to None to unset the property in the organization.

New in version 0.4.0.

Property Details

GData.GDOrganization.props.department
Name:

department

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Specifies a department within the organization.

For more information, see the

GData specification.

New in version 0.5.0.

GData.GDOrganization.props.is_primary
Name:

is-primary

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Indicates which organization out of a group is primary.

For more information, see the

GData specification.

New in version 0.4.0.

GData.GDOrganization.props.job_description
Name:

job-description

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Description of a job within the organization.

For more information, see the

GData specification.

New in version 0.5.0.

GData.GDOrganization.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A simple string value used to name this organization. It allows UIs to display a label such as “Work”, “Volunteer”, “Professional Society”, etc.

For more information, see the

GData specification.

New in version 0.4.0.

GData.GDOrganization.props.location
Name:

location

Type:

GData.GDWhere

Default Value:

None

Flags:

READABLE, WRITABLE

A place associated with the organization, e.g. office location.

For more information, see the

GData specification.

New in version 0.6.0.

GData.GDOrganization.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The name of the organization.

For more information, see the

GData specification.

New in version 0.4.0.

GData.GDOrganization.props.relation_type
Name:

relation-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A programmatic value that identifies the type of organization. For example: GData.GD_ORGANIZATION_WORK or GData.GD_ORGANIZATION_OTHER.

For more information, see the

GData specification.

New in version 0.4.0.

GData.GDOrganization.props.symbol
Name:

symbol

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Stock symbol of the organization.

For more information, see the

GData specification.

New in version 0.5.0.

GData.GDOrganization.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The title of a person within the organization.

For more information, see the

GData specification.

New in version 0.4.0.