(self, request=None)
Save plugin data.

        For showing the weather, we need an IP address. Although we don't
        make it possible for the user to specify it manually, we silently
        obtain it and save into the plugin data.
Save plugin data.
Save plugin data .
def save_plugin_data(self, request=None):
        """Save plugin data.

        For showing the weather, we need an IP address. Although we don't
        make it possible for the user to specify it manually, we silently
        obtain it and save into the plugin data.
        """
        if not self.cleaned_data.get('public_ip', None):
            try:
                self.cleaned_data['public_ip'] = get_public_ip()
            except Exception as err:
                logger.debug(err)
def save_plugin_data ( self , request = None ) : if not self . cleaned_data . get ( 'public_ip' , None ) : try : self . cleaned_data [ 'public_ip' ] = get_public_ip ( ) except Exception as err : logger . debug ( err )