fixed up the names of new site names/slices to be more PLC compatible
[sfa.git] / sfa / methods / get_gids.py
1 from sfa.util.faults import *
2 from sfa.util.method import Method
3 from sfa.util.parameter import Parameter, Mixed
4 from sfa.methods.GetGids import GetGids
5
6 class get_gids(GetGids):
7     """
8     Deprecated. Use GetGids instead.
9
10     Get a list of record information (hrn, gid and type) for 
11     the specified hrns.
12
13     @param cred credential string 
14     @param cert certificate string 
15     @return    
16     """
17
18     interfaces = ['registry']
19     
20     accepts = [
21         Parameter(str, "Certificate string"),
22         Mixed(Parameter(str, "Human readable name (hrn or xrn)"), 
23               Parameter(type([str]), "List of Human readable names (hrn or xrn)")) 
24         ]
25
26     returns = [Parameter(dict, "Dictionary of gids keyed on hrn")]
27     
28     def call(self, cred, xrns):
29         
30         return GetGids.call(self, xrns, cred)