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.DocumentsQuerystructure 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.DocumentsQuerywith itsGData.Query:qproperty 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.DocumentsQuerywith itsGData.Query:qproperty 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.GDEmailAddressto 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.GDEmailAddressto 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.GDEmailAddresses of the collaborators concerned by the query, orNone- Return type:
Gets a list of
GData.GDEmailAddresses of the document collaborators whose documents will be queried.New in version 0.4.0.
- get_exact_title()¶
- Returns:
Trueif the query matches the exact title of documents withGData.DocumentsQuery:title,Falseotherwise- Return type:
Gets the
GData.DocumentsQuery:exact-titleproperty.New in version 0.4.0.
- get_folder_id()¶
-
Gets the
GData.DocumentsQuery:folder-idproperty.New in version 0.4.0.
- get_reader_addresses()¶
- Returns:
a list of
GData.GDEmailAddresses of the readers concerned by the query, orNone- Return type:
Gets a list of
GData.GDEmailAddresses of the document readers whose documents will be queried.New in version 0.4.0.
- get_title()¶
-
Gets the
GData.DocumentsQuery:titleproperty.New in version 0.4.0.
- set_folder_id(folder_id)¶
-
Sets the
GData.DocumentsQuery:folder-idproperty to folder_id.Set folder_id to
Noneto unset the property in the query URI.New in version 0.4.0.
- set_show_deleted(show_deleted)¶
- Parameters:
show_deleted (
bool) –Trueif the request should return deleted entries,Falseotherwise
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-foldersproperty to show_folders.New in version 0.4.0.
- set_title(title, exact_title)¶
- Parameters:
Sets the
GData.DocumentsQuery:titleproperty to title.Set title to
Noneto 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-foldersproperty.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:titleparameter.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-titleisTrue, an exact title match will be searched for, otherwise substring matches will also be returned.New in version 0.4.0.