GData.DocumentsUploadQuery¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Whether to automatically convert uploaded documents into a standard format. |
||
r/w |
Folder to upload the document into. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.DocumentsUploadQuery(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.DocumentsUploadQuerystructure are private and should never be accessed directly.New in version 0.13.0.
- classmethod new()¶
- Returns:
a new
GData.DocumentsUploadQuery; unref withGObject.Object.unref()- Return type:
Constructs a new empty
GData.DocumentsUploadQuery.New in version 0.13.0.
- build_uri()¶
-
Builds an upload URI suitable for passing to
GData.UploadStream.new_resumable() in order to upload a document to Google Documents as described in theNew in version 0.13.0.
- get_convert()¶
-
Gets
GData.DocumentsUploadQuery:convert.New in version 0.13.0.
- get_folder()¶
- Returns:
the folder to upload into, or
None- Return type:
Gets
GData.DocumentsUploadQuery:folder.New in version 0.13.0.
- set_convert(convert)¶
- Parameters:
convert (
bool) –Trueto convert documents to common formats,Falseto upload them unmodified
Sets
GData.DocumentsUploadQuery:convertto convert.New in version 0.13.0.
- set_folder(folder)¶
- Parameters:
folder (
GData.DocumentsFolderorNone) – a new folder to upload into, orNone
Sets
GData.DocumentsUploadQuery:folderto folder.New in version 0.13.0.
Property Details¶
- GData.DocumentsUploadQuery.props.convert¶
-
Trueto automatically convert the uploaded document into a standard format (such as a text document, spreadsheet, presentation, etc.).Falseto upload the document without converting it; this allows for arbitrary files to be uploaded to Google Documents.For more information, see the
online documentation. Note that uploading with this property set to
Falsewill only have an effect when usingGData.DocumentsService.update_document_resumable() and notGData.DocumentsService.update_document(). Additionally, theGData.DocumentsDocumentpassed toGData.DocumentsService.update_document_resumable() must be aGData.DocumentsDocumentif this property isFalse, and a subclass of it otherwise.New in version 0.13.0.