comparison sat/plugins/plugin_misc_file.py @ 4042:877145b4ba01

core: don't use `meta_` prefix anymore for `action_extra` in `action_new` signal.
author Goffi <goffi@goffi.org>
date Mon, 15 May 2023 16:20:50 +0200
parents 524856bd7b19
children
comparison
equal deleted inserted replaced
4041:2594e1951cf7 4042:877145b4ba01
269 overwrite = await xml_tools.defer_confirm( 269 overwrite = await xml_tools.defer_confirm(
270 self.host, 270 self.host,
271 _(CONFIRM_OVERWRITE).format(file_path), 271 _(CONFIRM_OVERWRITE).format(file_path),
272 _(CONFIRM_OVERWRITE_TITLE), 272 _(CONFIRM_OVERWRITE_TITLE),
273 action_extra={ 273 action_extra={
274 "meta_from_jid": peer_jid.full(), 274 "from_jid": peer_jid.full(),
275 "meta_type": C.META_TYPE_OVERWRITE, 275 "type": C.META_TYPE_OVERWRITE,
276 "meta_progress_id": file_data[PROGRESS_ID_KEY], 276 "progress_id": file_data[PROGRESS_ID_KEY],
277 }, 277 },
278 security_limit=SECURITY_LIMIT, 278 security_limit=SECURITY_LIMIT,
279 profile=client.profile, 279 profile=client.profile,
280 ) 280 )
281 281
329 _(CONFIRM).format(peer=peer_jid.full(), **file_data), 329 _(CONFIRM).format(peer=peer_jid.full(), **file_data),
330 _(CONFIRM_TITLE), 330 _(CONFIRM_TITLE),
331 type_=C.XMLUI_DIALOG_FILE, 331 type_=C.XMLUI_DIALOG_FILE,
332 options={C.XMLUI_DATA_FILETYPE: C.XMLUI_DATA_FILETYPE_DIR}, 332 options={C.XMLUI_DATA_FILETYPE: C.XMLUI_DATA_FILETYPE_DIR},
333 action_extra={ 333 action_extra={
334 "meta_from_jid": peer_jid.full(), 334 "from_jid": peer_jid.full(),
335 "meta_type": C.META_TYPE_FILE, 335 "type": C.META_TYPE_FILE,
336 "meta_progress_id": file_data[PROGRESS_ID_KEY], 336 "progress_id": file_data[PROGRESS_ID_KEY],
337 }, 337 },
338 security_limit=SECURITY_LIMIT, 338 security_limit=SECURITY_LIMIT,
339 profile=client.profile, 339 profile=client.profile,
340 ) 340 )
341 341