GData.PicasaWebAlbum¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The ID of the album. |
||
r |
The number of bytes consumed by this album and its contents. |
||
r |
The number of comments on the album. |
||
r |
The time this album was last edited. |
||
r/w |
Whether commenting is enabled for this album. |
||
r/w |
The location as a latitude coordinate associated with this album. |
||
r/w |
The user-specified location associated with the album. |
||
r/w |
The location as a longitude coordinate associated with this album. |
||
r |
The user’s nickname. |
||
r |
The number of photos and videos in the album. |
||
r |
The number of files spaces still free for uploads. |
||
[ |
r/w |
A |
|
r/w |
The timestamp of when the album occurred, settable by the user. |
||
r |
The username of the album owner. |
||
r/w |
The visibility (or access rights) of the album. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.PicasaWebAlbum(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.PicasaWebAlbum
structure are private and should never be accessed directly.New in version 0.4.0.
- classmethod new(id)¶
- Parameters:
- Returns:
a new
GData.PicasaWebAlbum
, orNone
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.PicasaWebAlbum
with the given ID and default properties. id is the ID which would be returned byGData.Entry.get_id
(), notGData.PicasaWebAlbum.get_id
().If id is not
None
and can’t be parsed to extract an album ID,None
will be returned.New in version 0.4.0.
- get_bytes_used()¶
- Returns:
the number of bytes used by the album and its contents, or -1
- Return type:
Gets the
GData.PicasaWebAlbum
:bytes-used
property. It will return -1 if the current authenticated user is not the owner of the album.New in version 0.4.0.
- get_comment_count()¶
- Returns:
the number of comments on the album
- Return type:
Gets the
GData.PicasaWebAlbum
:comment-count
property.New in version 0.4.0.
- get_contents()¶
- Returns:
a
GLib.List
ofGData.MediaContent
items- Return type:
Returns a list of media content, such as the cover image for the album.
New in version 0.4.0.
- get_coordinates()¶
- Returns:
- Return type:
Gets the
GData.PicasaWebAlbum
:latitude
andGData.PicasaWebAlbum
:longitude
properties, setting the out parameters to them. If either latitude or longitude isNone
, that parameter will not be set. If the coordinates are unset, latitude and longitude will be set toGObject.G_MAXDOUBLE
.New in version 0.5.0.
- get_edited()¶
- Returns:
the UNIX timestamp for the time the album was last edited, or -1
- Return type:
Gets the
GData.PicasaWebAlbum
:edited
property. If the property is unset, -1 will be returned.New in version 0.4.0.
- get_id()¶
- Returns:
the album’s ID
- Return type:
Gets the
GData.PicasaWebAlbum
:album-id
property.New in version 0.7.0.
- get_location()¶
-
Gets the
GData.PicasaWebAlbum
:location
property.New in version 0.4.0.
- get_nickname()¶
- Returns:
the album owner’s nickname
- Return type:
Gets the
GData.PicasaWebAlbum
:nickname
property.New in version 0.4.0.
- get_num_photos()¶
- Returns:
the number of photos currently in the album
- Return type:
Gets the
GData.PicasaWebAlbum
:num-photos
property.New in version 0.4.0.
- get_num_photos_remaining()¶
- Returns:
the number of photos that can still be uploaded to the album
- Return type:
Gets the
GData.PicasaWebAlbum
:num-photos-remaining
property.New in version 0.4.0.
- get_tags()¶
- Returns:
a
None
-terminated array of tags associated with all the photos in the album, orNone
- Return type:
[
str
]
Gets the
GData.PicasaWebAlbum
:tags
property.New in version 0.4.0.
- get_thumbnails()¶
- Returns:
a
GLib.List
ofGData.MediaThumbnails
, orNone
- Return type:
Returns a list of thumbnails, often at different sizes, for this album.
New in version 0.4.0.
- get_timestamp()¶
- Returns:
the UNIX timestamp for the timestamp property in milliseconds, or -1
- Return type:
Gets the
GData.PicasaWebAlbum
:timestamp
property. This value usually holds either the date that best corresponds to the album of photos, or to the day it was uploaded. It’s a UNIX timestamp in milliseconds (not seconds) since the epoch. If the property is unset, -1 will be returned.New in version 0.4.0.
- get_user()¶
- Returns:
the album owner’s username
- Return type:
Gets the
GData.PicasaWebAlbum
:user
property.New in version 0.4.0.
- get_visibility()¶
- Returns:
the album’s visibility level
- Return type:
Gets the
GData.PicasaWebAlbum
:visibility
property.New in version 0.4.0.
- is_commenting_enabled()¶
-
Gets the
GData.PicasaWebAlbum
:is-commenting-enabled
property.New in version 0.4.0.
- set_coordinates(latitude, longitude)¶
- Parameters:
latitude (
float
) – the album’s new latitude coordinate, orGObject.G_MAXDOUBLE
longitude (
float
) – the album’s new longitude coordinate, orGObject.G_MAXDOUBLE
Sets the
GData.PicasaWebAlbum
:latitude
andGData.PicasaWebAlbum
:longitude
properties to latitude and longitude respectively.New in version 0.5.0.
- set_is_commenting_enabled(is_commenting_enabled)¶
- Parameters:
is_commenting_enabled (
bool
) –True
if commenting should be enabled for the album,False
otherwise
Sets the
GData.PicasaWebAlbum
:is-commenting-enabled
property to is_commenting_enabled.New in version 0.4.0.
- set_location(location)¶
-
Sets the
GData.PicasaWebAlbum
:location
property to location.Set location to
None
to unset the property.New in version 0.4.0.
- set_tags(tags)¶
-
Sets the
GData.PicasaWebAlbum
:tags
property to tags.Set tags to
None
to unset the album’s tag list.New in version 0.4.0.
- set_timestamp(timestamp)¶
- Parameters:
timestamp (
int
) – a UNIX timestamp, or -1
Sets the
GData.PicasaWebAlbum
:timestamp
property from timestamp. This should be a UNIX timestamp in milliseconds (not seconds) since the epoch.Set timestamp to -1 to unset the property.
New in version 0.4.0.
- set_visibility(visibility)¶
- Parameters:
visibility (
GData.PicasaWebVisibility
) – the new album visibility level
Sets the
GData.PicasaWebAlbum
:visibility
property to visibility.New in version 0.4.0.
Property Details¶
- GData.PicasaWebAlbum.props.album_id¶
- Name:
album-id
- Type:
- Default Value:
- Flags:
The ID of the album. This is a substring of the ID returned by
GData.Entry.get_id
() forGData.PicasaWebAlbums
; for example, ifGData.Entry.get_id
() returned “http://picasaweb.google.com/data/entry/user/libgdata.picasaweb/albumid/5328889949261497249” for a particularGData.PicasaWebAlbum
, theGData.PicasaWebAlbum
:album-id
property would be “5328889949261497249”.For more information, see the gphoto specification.
New in version 0.7.0.
- GData.PicasaWebAlbum.props.bytes_used¶
- Name:
bytes-used
- Type:
- Default Value:
-1
- Flags:
The number of bytes consumed by this album and its contents. Note that this is only set if the authenticated user is the owner of the album; it’s otherwise -1.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.comment_count¶
-
The number of comments on the album.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.edited¶
-
The time this album was last edited. If the album has not been edited yet, the content indicates the time it was created.
For more information, see the Atom Publishing Protocol specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.is_commenting_enabled¶
-
Whether commenting is enabled for this album.
- GData.PicasaWebAlbum.props.latitude¶
-
The location as a latitude coordinate associated with this album. Valid latitudes range from -90.0 to 90.0 inclusive.
For more information, see the GeoRSS specification.
New in version 0.5.0.
- GData.PicasaWebAlbum.props.location¶
-
The user-specified location associated with the album. A place name.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.longitude¶
-
The location as a longitude coordinate associated with this album. Valid longitudes range from -180.0 to 180.0 inclusive.
For more information, see the GeoRSS specification.
New in version 0.5.0.
- GData.PicasaWebAlbum.props.nickname¶
-
The user’s nickname. This is a user-specified value that should be used when referring to the user by name.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.num_photos¶
-
The number of photos and videos in the album.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.num_photos_remaining¶
-
The number of photos and videos that can still be uploaded to this album. This doesn’t account for quota, just a hardcoded maximum number per album set by Google.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.tags¶
-
A
None
-terminated array of tags associated with the album; all the tags associated with the individual photos in the album.For more information, see the Media RSS specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.timestamp¶
-
The timestamp of when the album occurred, settable by the user. This a UNIX timestamp in milliseconds (not seconds) since the epoch.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.user¶
-
The username of the album owner.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebAlbum.props.visibility¶
- Name:
visibility
- Type:
- Default Value:
- Flags:
The visibility (or access rights) of the album.
For more information, see the gphoto specification.
New in version 0.4.0.