GData.Entry¶
- Subclasses:
GData.AccessRule
,GData.CalendarCalendar
,GData.CalendarEvent
,GData.Comment
,GData.ContactsContact
,GData.ContactsGroup
,GData.DocumentsDrive
,GData.DocumentsEntry
,GData.FreebaseResult
,GData.PicasaWebAlbum
,GData.PicasaWebFile
,GData.PicasaWebUser
,GData.TasksTask
,GData.TasksTasklist
,GData.YouTubeVideo
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The content of the entry. |
||
r/w |
A URI pointing to the location of the content of the entry. |
||
r/w/co |
An identifier for a particular version of the entry. |
||
r/w/co |
A permanent, universally unique identifier for the entry, in IRI form. |
||
r |
Whether the entry has been inserted on the server. |
||
r |
The date and time the entry was first published or made available. |
||
r/w |
The ownership rights pertaining to the entry. |
||
r/w |
A short summary, abstract, or excerpt of the entry. |
||
r/w |
A human-readable title for the entry. |
||
r |
The date and time when the entry was most recently updated significantly. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.Entry(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.Entry
structure are private and should never be accessed directly.- classmethod new(id)¶
- Parameters:
- Returns:
a new
GData.Entry
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.Entry
with the given ID and default properties.
- add_author(author)¶
- Parameters:
author (
GData.Author
) – aGData.Author
to add
Adds author to the list of authors in the given
GData.Entry
and increments its reference count.Duplicate authors will not be added to the list.
- add_category(category)¶
- Parameters:
category (
GData.Category
) – aGData.Category
to add
Adds category to the list of categories in the given
GData.Entry
, and increments its reference count.Duplicate categories will not be added to the list.
- add_link(_link)¶
- Parameters:
_link (
GData.Link
) – aGData.Link
to add
Adds _link to the list of links in the given
GData.Entry
and increments its reference count.Duplicate links will not be added to the list.
- get_authors()¶
- Returns:
a
GLib.List
ofGData.Authors
- Return type:
Gets a list of the
GData.Authors
for this entry.New in version 0.7.0.
- get_categories()¶
- Returns:
a
GLib.List
ofGData.Categorys
- Return type:
Gets a list of the
GData.Categorys
containing this entry.New in version 0.2.0.
- get_content()¶
-
Returns the textual content in this entry. If the content in this entry is pointed to by a URI,
None
will be returned; the content URI will be returned byGData.Entry.get_content_uri
().
- get_content_uri()¶
-
Returns a URI pointing to the content of this entry. If the content in this entry is stored directly,
None
will be returned; the content will be returned byGData.Entry.get_content
().New in version 0.7.0.
- get_etag()¶
-
Returns the ETag of the entry; a unique identifier for each version of the entry. For more information, see the
online documentation. The ETag will never be empty; it’s either
None
or a valid ETag.New in version 0.2.0.
- get_id()¶
-
Returns the URN ID of the entry; a unique and permanent identifier for the object the entry represents.
The ID may be
None
if and only if theGData.Entry
has been newly created, and hasn’t yet been inserted on the server.
- get_published()¶
- Returns:
the UNIX timestamp for the original publish time of the entry
- Return type:
Gets the time the entry was originally published.
- get_rights()¶
- Returns:
the entry’s rights information
- Return type:
Returns the rights pertaining to the entry, or
None
if not set.New in version 0.5.0.
- get_summary()¶
-
Returns the summary of the entry.
New in version 0.4.0.
- get_title()¶
- Returns:
the entry’s title
- Return type:
Returns the title of the entry. This will never be
None
, but may be an empty string.
- get_updated()¶
- Returns:
the UNIX timestamp for the last update of the entry
- Return type:
Gets the time the entry was last updated.
- is_inserted()¶
-
Returns whether the entry is marked as having been inserted on (uploaded to) the server already.
- look_up_link(rel)¶
- Parameters:
rel (
str
) – the value of the rel attribute of the desired link- Returns:
a
GData.Link
, orNone
if one was not found- Return type:
Looks up a link by relation type from the list of links in the entry. If the link has one of the standard Atom relation types, use one of the defined rel values, instead of a static string. e.g.
GData.LINK_EDIT
orGData.LINK_SELF
.In the rare event of requiring a list of links with the same rel value, use
GData.Entry.look_up_links
().New in version 0.1.1.
- look_up_links(rel)¶
- Parameters:
rel (
str
) – the value of the rel attribute of the desired links- Returns:
a
GLib.List
ofGData.Links
, orNone
if none were found; free the list with g_list_free()- Return type:
Looks up a list of links by relation type from the list of links in the entry. If the links have one of the standard Atom relation types, use one of the defined rel values, instead of a static string. e.g.
GData.LINK_EDIT
orGData.LINK_SELF
.If you will only use the first link found, consider calling
GData.Entry.look_up_link
() instead.New in version 0.4.0.
- remove_link(_link)¶
- Parameters:
_link (
GData.Link
) – aGData.Link
to remove- Returns:
True
if _link was found in theGData.Entry
and removed,False
if it was not found- Return type:
Removes _link from the list of links in the given
GData.Entry
and decrements its reference count (since theGData.Entry
held a reference to it while it was in the list).New in version 0.10.0.
- set_content(content)¶
-
Sets the entry’s content to content. This unsets
GData.Entry
:content-uri
.
- set_content_uri(content_uri)¶
-
Sets the URI pointing to the entry’s content to content. This unsets
GData.Entry
:content
.New in version 0.7.0.
- set_rights(rights)¶
-
Sets the rights for this entry.
New in version 0.5.0.
- set_summary(summary)¶
-
Sets the summary of the entry.
New in version 0.4.0.
Property Details¶
- GData.Entry.props.content¶
-
The content of the entry. This is mutually exclusive with
GData.Entry
:content
.For more information, see the Atom specification.
- GData.Entry.props.content_uri¶
-
A URI pointing to the location of the content of the entry. This is mutually exclusive with
GData.Entry
:content
.For more information, see the
New in version 0.7.0.
- GData.Entry.props.etag¶
- Name:
etag
- Type:
- Default Value:
- Flags:
An identifier for a particular version of the entry. This changes every time the entry on the server changes, and can be used for conditional retrieval and locking.
For more information, see the GData specification.
New in version 0.2.0.
- GData.Entry.props.id¶
- Name:
id
- Type:
- Default Value:
- Flags:
A permanent, universally unique identifier for the entry, in IRI form. This is
None
for new entries (i.e. ones which haven’t yet been inserted on the server, created withGData.Entry.new
()), and a non-empty IRI string for all other entries.For more information, see the Atom specification.
- GData.Entry.props.is_inserted¶
-
Whether the entry has been inserted on the server. This is
False
for entries which have just been created usingGData.Entry.new
() andTrue
for entries returned from the server by queries. It is set toTrue
when an entry is inserted usingGData.Service.insert_entry
().
- GData.Entry.props.published¶
-
The date and time the entry was first published or made available.
For more information, see the Atom specification.
- GData.Entry.props.rights¶
-
The ownership rights pertaining to the entry.
For more information, see the Atom specification.
New in version 0.5.0.
- GData.Entry.props.summary¶
-
A short summary, abstract, or excerpt of the entry.
For more information, see the Atom specification.
New in version 0.4.0.
- GData.Entry.props.title¶
-
A human-readable title for the entry.
For more information, see the Atom specification.
- GData.Entry.props.updated¶
-
The date and time when the entry was most recently updated significantly.
For more information, see the Atom specification.