comment in GetPersons
[plcapi.git] / PLC / Methods / AddRoleToPerson.py
index c276056..1e47033 100644 (file)
@@ -1,4 +1,3 @@
-# $Id#
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -9,7 +8,7 @@ from PLC.Roles import Role, Roles
 class AddRoleToPerson(Method):
     """
     Grants the specified role to the person.
 class AddRoleToPerson(Method):
     """
     Grants the specified role to the person.
-    
+
     PIs can only grant the tech and user roles to users and techs at
     their sites. Admins can grant any role to any user.
 
     PIs can only grant the tech and user roles to users and techs at
     their sites. Admins can grant any role to any user.
 
@@ -59,9 +58,9 @@ class AddRoleToPerson(Method):
         if role['role_id'] not in person['role_ids']:
             person.add_role(role)
 
         if role['role_id'] not in person['role_ids']:
             person.add_role(role)
 
-       self.event_objects = {'Person': [person['person_id']],
-                             'Role': [role['role_id']]}
-       self.message = "Role %d granted to person %d" % \
+        self.event_objects = {'Person': [person['person_id']],
+                              'Role': [role['role_id']]}
+        self.message = "Role %d granted to person %d" % \
                        (role['role_id'], person['person_id'])
 
         return 1
                        (role['role_id'], person['person_id'])
 
         return 1