cairo-clock : don't search for Locations.xml on Debian

Bug #321275 reported by Julien Lavergne
2
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Medium
onox

Bug Description

On Debian, there is no Location.xml. The applet should avoid crashing if it doesn't find the file, or search in the Location.*.xml.gz instead.

Tags: cairo-clock

Related branches

Revision history for this message
onox (onox) wrote :

Could you explain how it crashes and when it crashes exactly?

Changed in awn-extras:
assignee: nobody → onox
status: New → Incomplete
Revision history for this message
Julien Lavergne (gilir) wrote :

Click on "Add" in the location preferences, and crash :
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/cairo-clock/locations.py", line 297, in clicked_add_location_button_cb
    self.__search_window = LocationSearchWindow(self.__prefs, add_row, self.contains_city_timezone)
  File "/usr/share/avant-window-navigator/applets/cairo-clock/locations.py", line 355, in __init__
    self.parse_locations()
  File "/usr/share/avant-window-navigator/applets/cairo-clock/locations.py", line 452, in parse_locations
    parse(locations_file, handler)
  File "/usr/lib/python2.5/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 102, in parse
    source = saxutils.prepare_input_source(source)
  File "/usr/lib/python2.5/xml/sax/saxutils.py", line 298, in prepare_input_source
    f = urllib.urlopen(source.getSystemId())
  File "/usr/lib/python2.5/urllib.py", line 82, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.5/urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.5/urllib.py", line 459, in open_file
    return self.open_local_file(url)
  File "/usr/lib/python2.5/urllib.py", line 473, in open_local_file
    raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory: '/usr/share/libgweather/Locations.xml'

Revision history for this message
Julien Lavergne (gilir) wrote :

correction, it doesn't crash, but the click on "Add" didn't do anything except the traceback.

onox (onox)
Changed in awn-extras:
milestone: none → 0.3.2
status: Incomplete → Confirmed
Revision history for this message
onox (onox) wrote :

Fixed in revision 1033.

Changed in awn-extras:
status: Confirmed → Fix Committed
importance: Undecided → Medium
onox (onox)
Changed in awn-extras:
status: Fix Committed → Fix Released
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.