GData.MediaCategory

g GData.MediaCategory GData.MediaCategory GData.Parsable GData.Parsable GData.Parsable->GData.MediaCategory GObject.Object GObject.Object GObject.Object->GData.Parsable

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new (category, scheme, label)

get_category ()

get_label ()

get_scheme ()

set_category (category)

set_label (label)

set_scheme (scheme)

Virtual Methods

Inherited:

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

Properties

Inherited:

GData.Parsable (1)

Name

Type

Flags

Short Description

category

str

r/w

The category name.

label

str

r/w

A human-readable label that can be displayed in end-user applications.

scheme

str

r/w

A URI that identifies the categorization scheme.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Parsable

r

Class Details

class GData.MediaCategory(**kwargs)
Bases:

GData.Parsable

Abstract:

No

Structure:

GData.MediaCategoryClass

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

classmethod new(category, scheme, label)
Parameters:
  • category (str) – a category describing the content

  • scheme (str or None) – a URI identifying the categorisation scheme, or None

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

Returns:

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

Return type:

GData.MediaCategory

Creates a new GData.MediaCategory. More information is available in the Media RSS specification.

get_category()
Returns:

the actual category

Return type:

str

Gets the GData.MediaCategory :category property.

New in version 0.4.0.

get_label()
Returns:

the category’s label, or None

Return type:

str

Gets the GData.MediaCategory :label property.

New in version 0.4.0.

get_scheme()
Returns:

the category’s scheme, or None

Return type:

str

Gets the GData.MediaCategory :scheme property.

New in version 0.4.0.

set_category(category)
Parameters:

category (str) – the new category

Sets the GData.MediaCategory :category property to category.

New in version 0.4.0.

set_label(label)
Parameters:

label (str or None) – the category’s new label, or None

Sets the GData.MediaCategory :label property to label.

Set label to None to unset the property.

New in version 0.4.0.

set_scheme(scheme)
Parameters:

scheme (str or None) – the category’s new scheme, or None

Sets the GData.MediaCategory :scheme property to scheme.

Set scheme to None to unset the property.

New in version 0.4.0.

Property Details

GData.MediaCategory.props.category
Name:

category

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The category name.

For more information, see the Media RSS specification.

New in version 0.4.0.

GData.MediaCategory.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A human-readable label that can be displayed in end-user applications.

For more information, see the Media RSS specification.

New in version 0.4.0.

GData.MediaCategory.props.scheme
Name:

scheme

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A URI that identifies the categorization scheme.

For more information, see the Media RSS specification.

New in version 0.4.0.