Mercurial > libervia-backend
diff sat/plugins/plugin_misc_upload.py @ 2867:3cac3d050046
plugin upload: minor fixes in some docstring length
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 22 Mar 2019 19:26:09 +0100 |
parents | a97a5c73594d |
children | ab2696e34d29 |
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_upload.py Fri Mar 22 19:26:08 2019 +0100 +++ b/sat/plugins/plugin_misc_upload.py Fri Mar 22 19:26:09 2019 +0100 @@ -84,7 +84,8 @@ """Send a file using best available method parameters are the same as for [upload] - @return (dict): action dictionary, with progress id in case of success, else xmlui message + @return (dict): action dictionary, with progress id in case of success, else xmlui + message """ def uploadCb(data): @@ -123,8 +124,8 @@ - ignore_tls_errors(bool): True to ignore SSL/TLS certificate verification used only if HTTPS transport is needed @param profile: %(doc_profile)s - @return (tuple[unicode,D(unicode)]): progress_id and a Deferred which fire download URL - when upload is finished + @return (tuple[unicode,D(unicode)]): progress_id and a Deferred which fire + download URL when upload is finished """ if options is None: options = {} @@ -153,12 +154,13 @@ @param method_name(unicode): short name for the method, must be unique @param available_cb(callable): method to call to check if this method is usable the callback must take two arguments: upload_jid (can be None) and profile - the callback must return the first entity found (being upload_jid or one of its components) + the callback must return the first entity found (being upload_jid or one of its + components) exceptions.NotFound must be raised if no entity has been found @param upload_cb(callable): method to upload a file must have the same signature as [fileUpload] - must return a tuple with progress_id and a Deferred which fire download URL when - upload is finished + must return a tuple with progress_id and a Deferred which fire download URL + when upload is finished @param priority(int): pririoty of this method, the higher available will be used """ assert method_name