- clean up unnecessary code
authorTony Mack <tmack@cs.princeton.edu>
Tue, 27 Feb 2007 19:08:30 +0000 (19:08 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 27 Feb 2007 19:08:30 +0000 (19:08 +0000)
PLC/Methods/AdmAddNode.py
PLC/Methods/AdmDeleteAllPersonKeys.py
PLC/Methods/AdmDeleteNode.py
PLC/Methods/AdmDeletePersonKeys.py
PLC/Methods/AdmGetNodeGroupNodes.py
PLC/Methods/AdmGetNodes.py
PLC/Methods/AdmGetPersonRoles.py
PLC/Methods/AdmIsPersonInRole.py
PLC/Methods/AdmQueryNode.py
PLC/Methods/AdmRebootNode.py
PLC/Methods/AdmUpdateNode.py

index 5ef210c..dda5c99 100644 (file)
@@ -16,8 +16,6 @@ class AdmAddNode(AddNode):
 
     status = "deprecated"
 
 
     status = "deprecated"
 
-    object_type = 'Node'
-
     node_fields = dict(filter(can_update, Node.fields.items()))
 
     accepts = [
     node_fields = dict(filter(can_update, Node.fields.items()))
 
     accepts = [
index c4800ba..9f038f9 100644 (file)
@@ -30,8 +30,6 @@ class AdmDeleteAllPersonKeys(Method):
 
     returns = Parameter(int, '1 if successful')
 
 
     returns = Parameter(int, '1 if successful')
 
-    object_type = 'Person'
-
     def call(self, auth, person_id_or_email):
         # Get account information
         persons = Persons(self.api, [person_id_or_email])
     def call(self, auth, person_id_or_email):
         # Get account information
         persons = Persons(self.api, [person_id_or_email])
index d781d61..2ec9ff1 100644 (file)
@@ -7,4 +7,3 @@ class AdmDeleteNode(DeleteNode):
 
     status = "deprecated"
 
 
     status = "deprecated"
 
-    object_type = 'Node'
index f23a472..fd24eef 100644 (file)
@@ -29,8 +29,6 @@ class AdmDeletePersonKeys(Method):
 
     returns = Parameter(int, '1 if successful')
 
 
     returns = Parameter(int, '1 if successful')
 
-    object_type = 'Person'
-
     def call(self, auth, person_id_or_email, key_ids):
         # Get account information
         persons = Persons(self.api, [person_id_or_email])
     def call(self, auth, person_id_or_email, key_ids):
         # Get account information
         persons = Persons(self.api, [person_id_or_email])
index 857e1b5..51c392a 100644 (file)
@@ -13,8 +13,6 @@ class AdmGetNodeGroupNodes(Method):
 
     status = "deprecated"
 
 
     status = "deprecated"
 
-    object_type = 'Node'
-
     roles = ['admin', 'pi', 'user', 'tech']
 
     accepts = [
     roles = ['admin', 'pi', 'user', 'tech']
 
     accepts = [
index e8534ef..74d8489 100644 (file)
@@ -7,7 +7,5 @@ class AdmGetNodes(GetNodes):
 
     status = "deprecated"
 
 
     status = "deprecated"
 
-    object_type = 'Node'
-
     def call(self, auth, node_id_or_hostname_list = None, return_fields = None):
         return GetNodes.call(self, auth, node_id_or_hostname_list)
     def call(self, auth, node_id_or_hostname_list = None, return_fields = None):
         return GetNodes.call(self, auth, node_id_or_hostname_list)
index e05f955..024b93c 100644 (file)
@@ -33,8 +33,6 @@ class AdmGetPersonRoles(Method):
 
     returns = dict
 
 
     returns = dict
 
-    object_type = 'Person'
-
     def call(self, auth, person_id_or_email):
         # Get account information
         persons = Persons(self.api, [person_id_or_email])
     def call(self, auth, person_id_or_email):
         # Get account information
         persons = Persons(self.api, [person_id_or_email])
index b031b64..b32ab03 100644 (file)
@@ -29,8 +29,6 @@ class AdmIsPersonInRole(Method):
 
     returns = Parameter(int, "1 if account has role, 0 otherwise")
 
 
     returns = Parameter(int, "1 if account has role, 0 otherwise")
 
-    object_type = 'Person'
-
     def call(self, auth, person_id_or_email, role_id_or_name):
         # This is a totally fucked up function. I have no idea why it
         # exists or who calls it, but here is how it is supposed to
     def call(self, auth, person_id_or_email, role_id_or_name):
         # This is a totally fucked up function. I have no idea why it
         # exists or who calls it, but here is how it is supposed to
index 4c0a032..f41d04f 100644 (file)
@@ -15,8 +15,6 @@ class AdmQueryNode(Method):
 
     status = "deprecated"
 
 
     status = "deprecated"
 
-    object_type = 'Node'
-
     roles = ['admin', 'pi', 'user', 'tech']
 
     accepts = [
     roles = ['admin', 'pi', 'user', 'tech']
 
     accepts = [
index 2f8d36e..c8368e3 100644 (file)
@@ -6,5 +6,3 @@ class AdmRebootNode(RebootNode):
     """
 
     status = "deprecated"
     """
 
     status = "deprecated"
-
-    object_type = 'Node'
index d4951e9..ba4b3f1 100644 (file)
@@ -6,5 +6,3 @@ class AdmUpdateNode(UpdateNode):
     """
 
     status = "deprecated"
     """
 
     status = "deprecated"
-
-    object_type = 'Node'