Live log frappe.msgprint

Hello there,

when running time intensive python scripts, it would be nice if we could show the frappe.msgprint output asynchronously to the user. Just like a live ticker, so the user knows, that the script is still working.

Is that achievable?

My JS is the following:

	cur_frm.add_custom_button(__('Sync Latest'),
		function() {{
				freeze: true,
				freeze_message: "Importing Latest",
						frappe.msgprint(__("Import Completed!"))
		}, 'icon-sitemap')

You can publish like this:

and subscribe:

1 Like