modify list to take an hrn argument
[sfa.git] / util / geniclient.py
index accf658..f3013df 100644 (file)
@@ -165,8 +165,8 @@ class GeniClient():
     #
     # @return list of record objects
 
-    def list(self, cred):
-        result_dict_list = self.server.list(cred.save_to_string(save_parents=True))
+    def list(self, cred, auth_hrn):
+        result_dict_list = self.server.list(cred.save_to_string(save_parents=True), auth_hrn)
         result_rec_list = []
         for dict in result_dict_list:
              result_rec_list.append(GeniRecord(dict=dict))
@@ -197,13 +197,11 @@ class GeniClient():
     # then the PLC records will also be removed.
     #
     # @param cred credential object specifying rights of the caller
-    # @param record record to register. The only relevant
-    #     fields of the record are 'name' and 'type', which are used to lookup
-    #     the current copy of the record in the Geni database, to make sure
-    #     that the appopriate record is removed.
+    # @param type
+    # @param hrn
 
-    def remove(self, cred, record):
-        result = self.server.remove(cred.save_to_string(save_parents=True), record.as_dict())
+    def remove(self, cred, type, hrn):
+        result = self.server.remove(cred.save_to_string(save_parents=True), type, hrn)
         return result
 
     ##