# HG changeset patch # User Paul Boddie # Date 1330126267 -3600 # Node ID ec0dbfb80e126a71f0da7761a7e7cb18b29f4269 # Parent 150ee6859f5783deed3d20a01b0d38b50611c08c Moved the getLocationPosition function back into EventAggregator since it is mostly specific to the format of the event locations page used by that extension. diff -r 150ee6859f57 -r ec0dbfb80e12 LocationSupport.py --- a/LocationSupport.py Mon Feb 06 23:23:38 2012 +0100 +++ b/LocationSupport.py Sat Feb 25 00:31:07 2012 +0100 @@ -144,22 +144,4 @@ else: return None -def getLocationPosition(location, locations): - - """ - Attempt to return the position of the given 'location' using the 'locations' - dictionary provided. If no position can be found, return a latitude of None - and a longitude of None. - """ - - latitude, longitude = None, None - - if location is not None: - try: - latitude, longitude = map(getMapReference, locations[location].split()) - except (KeyError, ValueError): - pass - - return latitude, longitude - # vim: tabstop=4 expandtab shiftwidth=4