X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_gids.py;h=1273402d4679259e0ed785b0393b3927140af575;hb=11d02cbfd5e91784119bb9377fceb4fa6adae621;hp=51590870cbd4c75c56334bed736aa8b526c05df7;hpb=3d7237fa0b5f2b4a60cb97c7fb3b6aecfd94558a;p=sfa.git diff --git a/sfa/methods/get_gids.py b/sfa/methods/get_gids.py index 51590870..1273402d 100644 --- a/sfa/methods/get_gids.py +++ b/sfa/methods/get_gids.py @@ -27,13 +27,13 @@ class get_gids(Method): accepts = [ Parameter(str, "Certificate string"), - Mixed(Parameter(str, "Human readable name (hrn)"), - Parameter(type([str]), "List of Human readable names (hrn)")) + Mixed(Parameter(str, "Human readable name (hrn or xrn)"), + Parameter(type([str]), "List of Human readable names (hrn or xrn)")) ] returns = [Parameter(dict, "Dictionary of gids keyed on hrn")] - def call(self, cred, hrns): + def call(self, cred, xrns): # validate the credential self.api.auth.check(cred, 'getgids') user_cred = Credential(string=cred) @@ -44,7 +44,7 @@ class get_gids(Method): mgr_type = self.api.config.SFA_REGISTRY_TYPE manager_module = manager_base + ".registry_manager_%s" % mgr_type manager = __import__(manager_module, fromlist=[manager_base]) - records = manager.resolve(self.api, hrns, None, origin_hrn=origin_hrn) + records = manager.resolve(self.api, xrns, None, origin_hrn=origin_hrn) if not records: raise RecordNotFound(hrns)