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.DocumentsUploadQuery
structure 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
) –True
to convert documents to common formats,False
to upload them unmodified
Sets
GData.DocumentsUploadQuery
:convert
to convert.New in version 0.13.0.
- set_folder(folder)¶
- Parameters:
folder (
GData.DocumentsFolder
orNone
) – a new folder to upload into, orNone
Sets
GData.DocumentsUploadQuery
:folder
to folder.New in version 0.13.0.
Property Details¶
- GData.DocumentsUploadQuery.props.convert¶
-
True
to automatically convert the uploaded document into a standard format (such as a text document, spreadsheet, presentation, etc.).False
to 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
False
will only have an effect when usingGData.DocumentsService.update_document_resumable
() and notGData.DocumentsService.update_document
(). Additionally, theGData.DocumentsDocument
passed toGData.DocumentsService.update_document_resumable
() must be aGData.DocumentsDocument
if this property isFalse
, and a subclass of it otherwise.New in version 0.13.0.