← Back to team overview

desktop-packages team mailing list archive

[Bug 913610] Re: Location instance has no attribute 'location_code'

 

Still occurs in 12.04.5 which contains the patch from Bug #821233 so it
can not be a duplicate of that issue.

** Summary changed:

- Adding East Melbourne gives AttributeError
+ Location instance has no attribute 'location_code'

** Tags added: precise

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to indicator-weather in Ubuntu.
https://bugs.launchpad.net/bugs/913610

Title:
  Location instance has no attribute 'location_code'

Status in indicator-weather package in Ubuntu:
  Confirmed

Bug description:
  When adding East Melbourne as a location, "Apply" buttons seemingly
  does nothing; there is an AttributeError in the console output.

  How to reproduce:
  1. Go to Preferences, Locations, select Add.
  2. Search for "East Melbourne".
  3. Select "East Melbourne, Victoria, Australia", select Next.
  4. Enter any name for it, select Next.
  5. Select Apply.

  Expected results:
  East Melbourne is added as a location.

  Actual results:
  Nothing happens when Apply button is pressed. In the console, the following output is produced:

  Traceback (most recent call last):
    File "/usr/bin/indicator-weather", line 1882, in on_apply
      (location_code, location_details) = self.location.export_location_details()
    File "/usr/bin/indicator-weather", line 405, in export_location_details
      return (self.location_code, self.location_details)
  AttributeError: Location instance has no attribute 'location_code'

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: indicator-weather 11.05.31-0ubuntu2.1
  ProcVersionSignature: Ubuntu 3.0.0-15.24-generic-pae 3.0.13
  Uname: Linux 3.0.0-15-generic-pae i686
  NonfreeKernelModules: fglrx
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  Date: Mon Jan  9 13:28:51 2012
  InstallationMedia: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release i386 (20110211.1)
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_AU.UTF-8
   SHELL=/bin/bash
  SourcePackage: indicator-weather
  UpgradeStatus: Upgraded to oneiric on 2011-10-16 (84 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/913610/+subscriptions