Fixed indentation
authorSapan Bhatia <sapanbhatia@boring3.CS.Princeton.EDU>
Tue, 27 Jul 2010 18:59:51 +0000 (14:59 -0400)
committerSapan Bhatia <sapanbhatia@boring3.CS.Princeton.EDU>
Tue, 27 Jul 2010 18:59:51 +0000 (14:59 -0400)
PLC/Methods/AddPersonToSlice.py

index de4974b..80383d6 100644 (file)
@@ -29,14 +29,14 @@ class AddPersonToSlice(Method):
 
     def call(self, auth, person_id_or_email, slice_id_or_name):
         # Get account information
-       # SSS: Change call to Persons
+           # SSS: Change call to Persons
         persons = Persons(self.api, [person_id_or_email])
         if not persons:
             raise PLCInvalidArgument, "No such account"
         person = persons[0]
 
        
-       ### The code below will eventually turn into a big UPDATE ... WHERE
+           ### The code below will eventually turn into a big UPDATE ... WHERE
         # Get slice information
 
         slices = Slices(self.api, self.caller, [slice_id_or_name])
@@ -44,7 +44,7 @@ class AddPersonToSlice(Method):
             raise PLCInvalidArgument, "No such slice or access denied to requested slice"
         slice = slices[0]
 
-       slices.update_rows(['key':'slice_person','type':Person,'value':person)
+           slices.update_rows(['key':'slice_person','type':Person,'value':person)
        
         # Logging variables
         self.event_objects = {'Person': [person['person_id']],