← Back to team overview

indiv-screenlets-dev team mailing list archive

[Bug 716179] Re: [ClearWeather] screenlet does not remember ZIP from previous session

 

I spent some time on this and note that "session" of the screenlet
remembers previous ZIP code alright if you "Quit" the screenlet
instance. The screenlet ofcourse will not remember any previous values
if you "Delete" the screenlet instance since the session is removed from
/tmp/screenlets/screenlets.username.running

It is suggested that you change the default ZIP value in ClearWeather.py
to desired setting if you want to set to a different ZIP after deleting
the screenlet instance.


** Changed in: indiv-screenlets
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/716179

Title:
  [ClearWeather] screenlet does not remember ZIP from previous session

Status in Screenlets — individual widgets development:
  Invalid

Bug description:
  In short:
        The applet don't remember the ZIP code from session to session.
        Please check line 95 in ClearWeatherScreenlet.py file:

  self.add_option(StringOption(_('Weather'), 'ZIP', #<<< don't translate this ZIP string
   str(self.ZIP), _('ZIP'), _('The ZIP code to be monitored taken from Weather.com')), realtime=False)



References