Location instance has no attribute 'location_code'

Bug #913610 reported by Alexey Kotlyarov
42
This bug affects 10 people
Affects Status Importance Assigned to Milestone
indicator-weather (Ubuntu)
Confirmed
Undecided
Unassigned

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)

Revision history for this message
Alexey Kotlyarov (koterpillar) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-weather (Ubuntu):
status: New → Confirmed
Revision history for this message
Ken Sharp (kennybobs) wrote :

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

summary: - Adding East Melbourne gives AttributeError
+ Location instance has no attribute 'location_code'
tags: added: precise
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.