Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2010-12-06 17:37:14 +0300
committerDenis Fomin <fominde@gmail.com>2010-12-06 17:37:14 +0300
commit4fcf603aae7c6c0c8aa2f23fefafa64f879043c0 (patch)
treec7043b3c290f3d25df19a52e2a6b1d894e430e30 /set_location
parent1e9d3b284be971965b91194aae18192bd3b60829 (diff)
coding style
Diffstat (limited to 'set_location')
-rw-r--r--set_location/set_location.py33
1 files changed, 17 insertions, 16 deletions
diff --git a/set_location/set_location.py b/set_location/set_location.py
index 5c1ae9d..735f5bb 100644
--- a/set_location/set_location.py
+++ b/set_location/set_location.py
@@ -22,28 +22,29 @@ try:
except:
pass
+
class SetLocationPlugin(GajimPlugin):
@log_calls('SetLocationPlugin')
def init(self):
self.config_dialog = SetLocationPluginConfigDialog(self)
self.config_default_values = {
- 'alt': (1609,''),
+ 'alt': (1609, ''),
'area': ('Central Park', ''),
- 'building': ('The Empire State Building',''),
+ 'building': ('The Empire State Building', ''),
'country': ('United States', ''),
- 'countrycode' : ('US', ''),
- 'description' : ('Bill\'s house', ''),
- 'floor' : ('102', ''),
- 'lat' : (39.75, ''),
- 'locality' : ('New York City', ''),
- 'lon' : (-104.99, ''),
- 'postalcode' : ('10027', ''),
- 'region' : ('New York', ''),
- 'room' : ('Observatory', ''),
- 'street' : ('34th and Broadway', ''),
- 'text' : ('Northwest corner of the lobby', ''),
- 'uri' : ('http://beta.plazes.com/plazes/1940:jabber_inc', ''),
- 'presets': ({'default': {}}, ''),}
+ 'countrycode': ('US', ''),
+ 'description': ('Bill\'s house', ''),
+ 'floor': ('102', ''),
+ 'lat': (39.75, ''),
+ 'locality': ('New York City', ''),
+ 'lon': (-104.99, ''),
+ 'postalcode': ('10027', ''),
+ 'region': ('New York', ''),
+ 'room': ('Observatory', ''),
+ 'street': ('34th and Broadway', ''),
+ 'text': ('Northwest corner of the lobby', ''),
+ 'uri': ('http://beta.plazes.com/plazes/1940:jabber_inc', ''),
+ 'presets': ({'default': {}}, ''), }
@log_calls('SetLocationPlugin')
def activate(self):
@@ -165,7 +166,7 @@ class SetLocationPluginConfigDialog(GajimPluginConfigDialog):
try:
lat = float(self.xml.get_object('lat').get_text())
lon = float(self.xml.get_object('lon').get_text())
- except ValueError,e:
+ except ValueError, e:
return
if not -85 < lat < 85 or not -180 < lon < 180:
return