GData.PicasaWebQuery¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
A comma-separated list of image sizes (width in pixels) to return. |
||
r/w |
A location to search for photos, e.g. “London”. |
||
r/w |
A tag which returned results must contain. |
||
r/w |
A comma-separated list of thumbnail width (in pixels) to return. |
||
r/w |
Specifies which albums should be listed, in terms of their visibility. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.PicasaWebQuery(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.PicasaWebQuery
structure are private and should never be accessed directly.New in version 0.4.0.
- classmethod new(q)¶
- Parameters:
- Returns:
a new
GData.PicasaWebQuery
- Return type:
Creates a new
GData.PicasaWebQuery
with itsGData.Query
:q
property set to q.Note that when querying for albums with
GData.PicasaWebService.query_all_albums
(), the q parameter cannot be used.New in version 0.4.0.
- classmethod new_with_limits(q, start_index, max_results)¶
- Parameters:
- Returns:
a new
GData.PicasaWebQuery
- Return type:
Creates a
GData.PicasaWebQuery
with itsGData.Query
:q
property set to q, returning max_results starting from the start_index th result.Note that when querying for albums with
GData.PicasaWebService.query_all_albums
(), the q parameter cannot be used.This is useful for paging through results, but the result set between separate queries may change. So, if you use this to request the next ten results after a previous query, it may include some of the previously returned results if their order changed, or omit ones that would have otherwise been found in a earlier but larger query.
New in version 0.6.0.
- get_bounding_box()¶
- Returns:
- Return type:
Gets the latitudes and longitudes of a bounding box, inside which all the results must lie.
New in version 0.4.0.
- get_image_size()¶
-
Gets the
GData.PicasaWebQuery
:image-size
property.New in version 0.4.0.
- get_location()¶
-
Gets the
GData.PicasaWebQuery
:location
property.New in version 0.4.0.
- get_tag()¶
-
Gets the
GData.PicasaWebQuery
:tag
property.New in version 0.4.0.
- get_thumbnail_size()¶
-
Gets the
GData.PicasaWebQuery
:thumbnail-size
property.New in version 0.4.0.
- get_visibility()¶
- Returns:
the visibility of the objects to retrieve, or 0 to retrieve all objects
- Return type:
Gets the
GData.PicasaWebQuery
:visibility
property.New in version 0.4.0.
- set_bounding_box(north, east, south, west)¶
- Parameters:
Sets a bounding box, inside which all the returned results must lie.
Set north, east, south and west to 0 to unset the property.
New in version 0.4.0.
- set_image_size(image_size)¶
-
Sets the
GData.PicasaWebQuery
:image-size
property to image_size. Valid sizes are described in theonline documentation. Set image_size to
None
to unset the property.New in version 0.4.0.
- set_location(location)¶
-
Sets the
GData.PicasaWebQuery
:location
property to location.Set location to
None
to unset the property.New in version 0.4.0.
- set_tag(tag)¶
-
Sets the
GData.PicasaWebQuery
:tag
property to tag.Set tag to
None
to unset the property.New in version 0.4.0.
- set_thumbnail_size(thumbnail_size)¶
- Parameters:
thumbnail_size (
str
orNone
) – a comma-separated list of thumbnail sizes to retrieve, orNone
Sets the
GData.PicasaWebQuery
:thumbnail-size
property to thumbnail_size.Set thumbnail_size to
None
to unset the property.New in version 0.4.0.
- set_visibility(visibility)¶
- Parameters:
visibility (
GData.PicasaWebVisibility
) – the visibility of the objects to retrieve, or 0 to retrieve all objects
Sets the
GData.PicasaWebQuery
:visibility
property to visibility.New in version 0.4.0.
Property Details¶
- GData.PicasaWebQuery.props.image_size¶
-
A comma-separated list of image sizes (width in pixels) to return. Only certain sizes are allowed, and whether the image should be cropped or scaled can be specified; for more information, see the
New in version 0.4.0.
- GData.PicasaWebQuery.props.location¶
-
A location to search for photos, e.g. “London”.
New in version 0.4.0.
- GData.PicasaWebQuery.props.tag¶
-
A tag which returned results must contain.
New in version 0.4.0.
- GData.PicasaWebQuery.props.thumbnail_size¶
-
A comma-separated list of thumbnail widths (in pixels) to return. Only certain sizes are allowed, and whether the thumbnail should be cropped or scaled can be specified; for more information, see the
New in version 0.4.0.
- GData.PicasaWebQuery.props.visibility¶
-
Specifies which albums should be listed, in terms of their visibility (
GData.PicasaWebAlbum
:visibility
).Set the property to 0 to list all albums, regardless of their visibility. Otherwise, use values from
GData.PicasaWebVisibility
.For more information, see the online documentation.
New in version 0.4.0.