(self, dashboard_entry)
Update plugin data.

        Should return a dictionary with the plugin data which is supposed to
        be updated.
Update plugin data.
Update plugin data .
def update_plugin_data(self, dashboard_entry):
        """Update plugin data.

        Should return a dictionary with the plugin data which is supposed to
        be updated.
        """
        try:
            bookmark = Bookmark._default_manager.get(pk=self.data.bookmark)
        except ObjectDoesNotExist:
            return

        if bookmark:
            data = {
                'bookmark': bookmark.pk,
                'title': bookmark.title,
                'url': bookmark.url,
                'external': bookmark.external,
                'image': bookmark.image
            }
            return data
def update_plugin_data ( self , dashboard_entry ) : try : bookmark = Bookmark . _default_manager . get ( pk = self . data . bookmark ) except ObjectDoesNotExist : return if bookmark : data = { 'bookmark' : bookmark . pk , 'title' : bookmark . title , 'url' : bookmark . url , 'external' : bookmark . external , 'image' : bookmark . image } return data