plugin upload, XEP-0363: code modernisation + preparation for extension:
- use of async/await syntax - fileUpload's options are now serialised, allowing non string values - (XEP-0363) Slot is now a dataclass, so it can be modified by other plugins - (XEP-0363) Moved SSL related code to the new tools.web module - (XEP-0363) added `XEP-0363_upload_size` and `XEP-0363_upload` trigger points - a Deferred is not used anymore for `progress_id`, the value is directly returned
This commit is contained in:
parent
dfed376f62
commit
edbee4d719
1 changed files with 228 additions and 225 deletions
|
|
@ -478,7 +478,7 @@ class Upload(base.CommandBase):
|
|||
|
||||
options = {}
|
||||
if self.args.ignore_tls_errors:
|
||||
options["ignore_tls_errors"] = C.BOOL_TRUE
|
||||
options["ignore_tls_errors"] = True
|
||||
|
||||
path = os.path.abspath(file_)
|
||||
try:
|
||||
|
|
@ -486,7 +486,7 @@ class Upload(base.CommandBase):
|
|||
path,
|
||||
"",
|
||||
self.full_dest_jid,
|
||||
options,
|
||||
data_format.serialise(options),
|
||||
self.profile,
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue