- Change .py files to use 4-space indents and no hard tab characters.
[plcapi.git] / PLC / Methods / UpdateAddress.py
index bee780f..4150972 100644 (file)
@@ -1,4 +1,5 @@
 # $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -46,10 +47,10 @@ class UpdateAddress(Method):
 
         address.update(address_fields)
         address.sync()
-       
-       # Logging variables
-       self.event_objects = {'Address': [address['address_id']]}
-       self.message = 'Address %d updated: %s' % \
-               (address['address_id'], ", ".join(address_fields.keys()))
-        
-       return 1
+
+        # Logging variables
+        self.event_objects = {'Address': [address['address_id']]}
+        self.message = 'Address %d updated: %s' % \
+                (address['address_id'], ", ".join(address_fields.keys()))
+
+        return 1