(self, update={})
return json.dumps(data)
Get the cloned plugin data and returns it in a JSON dumped format.

        :param dict update:
        :return string: JSON dumped string of the cloned plugin data.

        :example:

        In the ``get_cloned_plugin_data`` method of your plugin, do as follows:

        >>> def clone_plugin_data(self, dashboard_entry):
        >>>     cloned_image = clone_file(self.data.image, relative_path=True)
        >>>     return self.get_cloned_plugin_data(
        >>>         update={'image': cloned_image}
        >>>     )
Get the cloned plugin data and returns it in a JSON dumped format.
Get the cloned plugin data and returns it in a JSON dumped format .
def get_cloned_plugin_data(self, update={}):
        """Get the cloned plugin data and returns it in a JSON dumped format.

        :param dict update:
        :return string: JSON dumped string of the cloned plugin data.

        :example:

        In the ``get_cloned_plugin_data`` method of your plugin, do as follows:

        >>> def clone_plugin_data(self, dashboard_entry):
        >>>     cloned_image = clone_file(self.data.image, relative_path=True)
        >>>     return self.get_cloned_plugin_data(
        >>>         update={'image': cloned_image}
        >>>     )
        """
        form = self.get_form()

        cloned_data = copy.copy(self.data)
        data = {}

        for field, default_value in form.plugin_data_fields:
            data.update({field: getattr(cloned_data, field, '')})

        for prop, value in update.items():
            data.update({prop: value})

        return json.dumps(data)
def get_cloned_plugin_data ( self , update = { } ) : form = self . get_form ( ) cloned_data = copy . copy ( self . data ) data = { } for field , default_value in form . plugin_data_fields : data . update ( { field : getattr ( cloned_data , field , '' ) } ) for prop , value in update . items ( ) : data . update ( { prop : value } ) return json . dumps ( data )