fixed up the names of new site names/slices to be more PLC compatible
[sfa.git] / sfa / methods / get_slices.py
1 ### $Id$
2 ### $URL$
3
4 from sfa.util.faults import *
5 from sfa.util.method import Method
6 from sfa.util.parameter import Parameter, Mixed
7 from sfa.methods.ListSlices import ListSlices
8
9 class get_slices(ListSlices):
10     """
11     Deprecated. Use ListSlices instead.
12     Get a list of instantiated slices at this authority.      
13
14     @param cred credential string specifying the rights of the caller
15     @return list of human readable slice names (hrn).  
16     """
17
18     interfaces = ['aggregate', 'slicemgr', 'component']
19     
20     accepts = [
21         Parameter(str, "Credential string"),
22         Mixed(Parameter(str, "Human readable name of the original caller"),
23               Parameter(None, "Origin hrn not specified"))
24         ]
25
26     returns = [Parameter(str, "Human readable slice name (hrn)")]
27     
28     def call(self, cred, origin_hrn=None):
29
30         return ListSlices.call(self, cred)