import traceback
import types
from sfa.util.faults import *
-from sfa.util.xrn import urn_to_hrn
+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
returns = [SfaRecord]
def call(self, xrns, creds):
+ type = None
if not isinstance(xrns, types.ListType):
+ type = Xrn(xrns).get_type()
xrns=[xrns]
hrns = [urn_to_hrn(xrn)[0] for xrn in xrns]
-
#find valid credentials
valid_creds = self.api.auth.checkCredentials(creds, 'resolve')
# send the call to the right manager
manager = self.api.get_interface_manager()
- return manager.resolve(self.api, xrns)
+ return manager.resolve(self.api, xrns, type)