GData.Author

g GData.Author GData.Author GData.Comparable GData.Comparable GData.Comparable->GData.Author GData.Parsable GData.Parsable GData.Parsable->GData.Author 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, uri, email_address)

get_email_address ()

get_name ()

get_uri ()

set_email_address (email_address)

set_name (name)

set_uri (uri)

Virtual Methods

Inherited:

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

Properties

Inherited:

GData.Parsable (1)

Name

Type

Flags

Short Description

email-address

str

r/w

An e-mail address associated with the person.

name

str

r/w

A human-readable name for the person.

uri

str

r/w

An IRI associated with the person.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Parsable

r

Class Details

class GData.Author(**kwargs)
Bases:

GData.Parsable, GData.Comparable

Abstract:

No

Structure:

GData.AuthorClass

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

classmethod new(name, uri, email_address)
Parameters:
  • name (str) – the author’s name

  • uri (str or None) – an IRI describing the author, or None

  • email_address (str or None) – the author’s e-mail address, or None

Returns:

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

Return type:

GData.Author

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

name must be non-None and non-empty.

get_email_address()
Returns:

the author’s e-mail address, or None

Return type:

str

Gets the GData.Author :email-address property. If the e-mail address is non-None, it will be non-empty.

New in version 0.4.0.

get_name()
Returns:

the author’s name

Return type:

str

Gets the GData.Author :name property. The name will always be a non-None, non-empty string.

New in version 0.4.0.

get_uri()
Returns:

the author’s URI, or None

Return type:

str

Gets the GData.Author :uri property. If the URI is non-None, it will be non-empty.

New in version 0.4.0.

set_email_address(email_address)
Parameters:

email_address (str or None) – the new e-mail address for the author, or None

Sets the GData.Author :email-address property to email_address. email_address must be None or non-empty.

Set email_address to None to unset the property in the author.

New in version 0.4.0.

set_name(name)
Parameters:

name (str) – the new name for the author

Sets the GData.Author :name property to name. name must be non-None and non-empty.

New in version 0.4.0.

set_uri(uri)
Parameters:

uri (str or None) – the new URI for the author, or None

Sets the GData.Author :uri property to uri. uri must be None or non-empty.

Set uri to None to unset the property in the author.

New in version 0.4.0.

Property Details

GData.Author.props.email_address
Name:

email-address

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

An e-mail address associated with the person.

For more information, see the

Atom specification.

New in version 0.4.0.

GData.Author.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A human-readable name for the person.

For more information, see the

Atom specification.

New in version 0.4.0.

GData.Author.props.uri
Name:

uri

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

An IRI associated with the person.

For more information, see the

Atom specification.

New in version 0.4.0.