GData.DocumentsQuery¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Specifies whether the query should search for an exact title match. |
||
r/w |
Specifies the ID of the folder in which to search. |
||
r/w |
A shortcut to request all documents that have been deleted. |
||
r/w |
Specifies if the request also returns folders. |
||
r/w |
A title (or title fragment) to be searched for. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.DocumentsQuery(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.DocumentsQuery
structure are private and should never be accessed directly.New in version 0.4.0.
- classmethod new(q)¶
- Parameters:
- Returns:
a new
GData.DocumentsQuery
- Return type:
Creates a new
GData.DocumentsQuery
with itsGData.Query
:q
property set to q.New in version 0.4.0.
- classmethod new_with_limits(q, start_index, max_results)¶
- Parameters:
- Returns:
a new
GData.DocumentsQuery
- Return type:
Creates a new
GData.DocumentsQuery
with itsGData.Query
:q
property set to q, and the limits start_index and max_results applied.New in version 0.4.0.
- add_collaborator(email_address)¶
- Parameters:
email_address (
str
) – the e-mail address of the collaborator to add
Add email_address as a
GData.GDEmailAddress
to the list of collaborators whose edited documents will be queried.New in version 0.4.0.
- add_reader(email_address)¶
- Parameters:
email_address (
str
) – the e-mail address of the reader to add
Add email_address as a
GData.GDEmailAddress
to the list of readers, the documents readable by whom will be queried.New in version 0.4.0.
- get_collaborator_addresses()¶
- Returns:
a list of
GData.GDEmailAddress
es of the collaborators concerned by the query, orNone
- Return type:
Gets a list of
GData.GDEmailAddress
es of the document collaborators whose documents will be queried.New in version 0.4.0.
- get_exact_title()¶
- Returns:
True
if the query matches the exact title of documents withGData.DocumentsQuery
:title
,False
otherwise- Return type:
Gets the
GData.DocumentsQuery
:exact-title
property.New in version 0.4.0.
- get_folder_id()¶
-
Gets the
GData.DocumentsQuery
:folder-id
property.New in version 0.4.0.
- get_reader_addresses()¶
- Returns:
a list of
GData.GDEmailAddress
es of the readers concerned by the query, orNone
- Return type:
Gets a list of
GData.GDEmailAddress
es of the document readers whose documents will be queried.New in version 0.4.0.
- get_title()¶
-
Gets the
GData.DocumentsQuery
:title
property.New in version 0.4.0.
- set_folder_id(folder_id)¶
-
Sets the
GData.DocumentsQuery
:folder-id
property to folder_id.Set folder_id to
None
to unset the property in the query URI.New in version 0.4.0.
- set_show_deleted(show_deleted)¶
- Parameters:
show_deleted (
bool
) –True
if the request should return deleted entries,False
otherwise
Sets the #GDataDocumentsQuery:show_deleted property to show_deleted.
New in version 0.4.0.
- set_show_folders(show_folders)¶
-
Sets the
GData.DocumentsQuery
:show-folders
property to show_folders.New in version 0.4.0.
- set_title(title, exact_title)¶
- Parameters:
Sets the
GData.DocumentsQuery
:title
property to title.Set title to
None
to unset the property in the query URI.New in version 0.4.0.
- show_deleted()¶
-
Gets the #GDataDocumentsQuery:show_deleted property.
New in version 0.4.0.
- show_folders()¶
-
Gets the
GData.DocumentsQuery
:show-folders
property.New in version 0.4.0.
Property Details¶
- GData.DocumentsQuery.props.exact_title¶
-
Specifies whether the query should search for an exact title match for the
GData.DocumentsQuery
:title
parameter.New in version 0.4.0.
- GData.DocumentsQuery.props.folder_id¶
-
Specifies the ID of the folder in which to search.
New in version 0.4.0.
- GData.DocumentsQuery.props.show_deleted¶
-
A shortcut to request all documents that have been deleted.
New in version 0.4.0.
- GData.DocumentsQuery.props.show_folders¶
-
Specifies if the request also returns folders.
New in version 0.4.0.
- GData.DocumentsQuery.props.title¶
-
A title (or title fragment) to be searched for. If
GData.DocumentsQuery
:exact-title
isTrue
, an exact title match will be searched for, otherwise substring matches will also be returned.New in version 0.4.0.