a little nicer wrt pep8
[sfa.git] / sfa / methods / ResolveGENI.py
1 from sfa.util.method import Method
2
3 from sfa.storage.parameter import Parameter
4
5
6 class ResolveGENI(Method):
7     """
8     Lookup a URN and return information about the corresponding object.
9     @param urn
10     """
11
12     interfaces = ['registry']
13     accepts = [
14         Parameter(str, "URN"),
15         Parameter(type([str]), "List of credentials"),
16     ]
17     returns = Parameter(bool, "Success or Failure")
18
19     def call(self, xrn):
20         return self.api.manager.Resolve(self.api, xrn, '')