this doesn't looks good, but seems like giving a None hrn to checkCredentials will...
[sfa.git] / sfa / methods / GetSelfCredential.py
index fcee97c..6bdc63d 100644 (file)
@@ -8,7 +8,6 @@ from sfa.util.namespace import *
 from sfa.util.method import Method
 from sfa.util.parameter import Parameter, Mixed
 from sfa.util.record import SfaRecord
-from sfa.util.debug import log
 from sfa.trust.certificate import Certificate
 
 class GetSelfCredential(Method):
@@ -26,7 +25,8 @@ class GetSelfCredential(Method):
     accepts = [
         Parameter(str, "certificate"),
         Parameter(str, "Human readable name (hrn or urn)"),
-        Parameter(str, "Object type"),
+        Mixed(Parameter(str, "Record type"),
+              Parameter(None, "Type not specified")),
         ]
 
     returns = Parameter(str, "String representation of a credential object")