X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_trusted_certs.py;h=7a4e1c549c6e725310db9d22839cbffa2eeee10c;hb=0988a22d73fd502b090614825fe6fd4e50d48bb2;hp=334734b2f2596d2f883ea69e179786d80c98bd41;hpb=4126e6565c7266066cb34bc1f696ccef243f3271;p=sfa.git diff --git a/sfa/methods/get_trusted_certs.py b/sfa/methods/get_trusted_certs.py index 334734b2..7a4e1c54 100644 --- a/sfa/methods/get_trusted_certs.py +++ b/sfa/methods/get_trusted_certs.py @@ -1,12 +1,10 @@ - -### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/reset_slices.py $ - -from sfa.util.faults import * from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed + from sfa.trust.auth import Auth from sfa.trust.credential import Credential +from sfa.storage.parameter import Parameter, Mixed + class get_trusted_certs(Method): """ @param cred credential string specifying the rights of the caller @@ -20,13 +18,13 @@ class get_trusted_certs(Method): Parameter(None, "Credential not specified")) ] - returns = Parameter([str], "List of GID strings") + returns = Parameter(type([str]), "List of GID strings") def call(self, cred = None): # If cred is not specified just return the gid for this interface. # This is true when when a peer is attempting to initiate federation # with this interface - print cred + self.api.logger.debug("get_trusted_certs: %r"%cred) if not cred: gid_strings = [] for gid in self.api.auth.trusted_cert_list: