(request,
                           dashboard_entry,
                           delete_original_entry=True,
                           clone_data=True)
return True
Cut ``dash.models.DashboardEntry`` to clipboard.

    :param django.http.HttpRequest request:
    :param dash.models.DashboardEntry dashboard_entry:
    :param bool delete_original_entry: If set to True, original entry is
        deleted; kept otherwise.
    :param bool clone_data: If set to Ture, plugin data is cloned.
    :return bool: True on success. False otherwise.
Cut ``dash.models.DashboardEntry`` to clipboard.
Cut dash . models . DashboardEntry to clipboard .
def cut_entry_to_clipboard(request,
                           dashboard_entry,
                           delete_original_entry=True,
                           clone_data=True):
    """Cut ``dash.models.DashboardEntry`` to clipboard.

    :param django.http.HttpRequest request:
    :param dash.models.DashboardEntry dashboard_entry:
    :param bool delete_original_entry: If set to True, original entry is
        deleted; kept otherwise.
    :param bool clone_data: If set to Ture, plugin data is cloned.
    :return bool: True on success. False otherwise.
    """
    layout_uid = dashboard_entry.layout_uid
    plugin_uid = dashboard_entry.plugin_uid

    if clone_data:
        # plugin = dashboard_entry.get_plugin(request=request)

        # Getting cloned plugin data
        # plugin_data = plugin._clone_plugin_data(dashboard_entry)
        plugin_data = clone_plugin_data(dashboard_entry, request=request)

        # If none returned, using the still the current one (not cloned, which
        # is dangerous). Possible TODO for later.
        if plugin_data is None:
            plugin_data = dashboard_entry.plugin_data
    else:
        plugin_data = dashboard_entry.plugin_data

    save_plugin_data_to_clipboard(
        request=request,
        layout_uid=layout_uid,
        plugin_uid=plugin_uid,
        plugin_data=plugin_data
    )

    if delete_original_entry:
        dashboard_entry.delete()

    return True
def cut_entry_to_clipboard ( request , dashboard_entry , delete_original_entry = True , clone_data = True ) : layout_uid = dashboard_entry . layout_uid plugin_uid = dashboard_entry . plugin_uid if clone_data : # plugin = dashboard_entry.get_plugin(request=request) # Getting cloned plugin data # plugin_data = plugin._clone_plugin_data(dashboard_entry) plugin_data = clone_plugin_data ( dashboard_entry , request = request ) # If none returned, using the still the current one (not cloned, which # is dangerous). Possible TODO for later. if plugin_data is None : plugin_data = dashboard_entry . plugin_data else : plugin_data = dashboard_entry . plugin_data save_plugin_data_to_clipboard ( request = request , layout_uid = layout_uid , plugin_uid = plugin_uid , plugin_data = plugin_data ) if delete_original_entry : dashboard_entry . delete ( ) return True