trimmed useless imports, unstarred all imports
[sfa.git] / sfa / methods / GetGids.py
index 37ad796..e50f940 100644 (file)
@@ -1,9 +1,6 @@
-from sfa.util.faults import *
+from sfa.util.faults import RecordNotFound
 from sfa.util.method import Method
 from sfa.util.parameter import Parameter, Mixed
-from sfa.trust.auth import Auth
-from sfa.trust.gid import GID
-from sfa.trust.certificate import Certificate
 from sfa.trust.credential import Credential
 
 class GetGids(Method):
@@ -30,15 +27,15 @@ class GetGids(Method):
     def call(self, xrns, creds):
         # validate the credential
         valid_creds = self.api.auth.checkCredentials(creds, 'getgids')
+        # xxxpylintxxx origin_hrn is unused..
         origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
         
         # resolve the record
         manager = self.api.get_interface_manager()
         records = manager.resolve(self.api, xrns, full = False)
         if not records:
-            raise RecordNotFound(hrns)
+            raise RecordNotFound(xrns)
 
-        gids = []
         allowed_fields =  ['hrn', 'type', 'gid']
         for record in records:
             for key in record.keys():