Part of lp.services.librarian.client View In Hierarchy
Known subclasses: lp.services.librarian.client.LibrarianClient
Method | __init__ | Undocumented |
Method | addFile | Add a file to the librarian. |
Method | remoteAddFile | See IFileUploadClient . |
Method | _connect | Connect this client. |
Method | _close | Close connection |
Method | _checkError | Undocumented |
Method | _sendLine | Undocumented |
Method | _sendHeader | Undocumented |
Method | _getDatabaseName | Undocumented |
The host and port default to what is specified in the configuration
Parameters | name | Name to store the file as |
size | Size of the file | |
file | File-like object with the content in it | |
contentType | mime-type, e.g. text/plain | |
expires | Expiry time of file. See LibrarianGarbageCollection. Set to None to only expire when it is no longer referenced. | |
debugID | Optional. If set, causes extra logging for this request on the server, which will be marked with the value given. | |
allow_zero_length | If True permit zero length files. | |
Returns | aliasID as an integer | |
Raises | UploadFailed | If the server rejects the upload for some reason. |