X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FResolve.py;h=7abc6cdacc077186d33e03579a1d1c380d58f073;hb=5822ffb68c0d4cc5e29ec945e0dc21125294463f;hp=49104b28c96e802a78008c6732cf4a05637db029;hpb=16f1cef61dd1ed7d91837dee7d384b020004dab5;p=sfa.git diff --git a/sfa/methods/Resolve.py b/sfa/methods/Resolve.py index 49104b28..7abc6cda 100644 --- a/sfa/methods/Resolve.py +++ b/sfa/methods/Resolve.py @@ -1,13 +1,11 @@ -### $Id: resolve.py 17157 2010-02-21 04:19:34Z tmack $ -### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/resolve.py $ -import traceback import types -from sfa.util.faults import * + from sfa.util.xrn import Xrn, urn_to_hrn from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed + from sfa.trust.credential import Credential -from sfa.util.record import SfaRecord + +from sfa.storage.parameter import Parameter, Mixed class Resolve(Method): """ @@ -27,7 +25,8 @@ class Resolve(Method): Parameter(list, "List of credentials)")) ] - returns = [SfaRecord] + # xxx used to be [SfaRecord] + returns = [Parameter(dict, "registry record")] def call(self, xrns, creds): type = None @@ -43,8 +42,5 @@ class Resolve(Method): self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrns, self.name)) # send the call to the right manager - manager = self.api.get_interface_manager() - return manager.resolve(self.api, xrns, type) - - + return self.api.manager.Resolve(self.api, xrns, type)