instead of passing caller_cred for tracability, now only the hrn of the initial calle...
[sfa.git] / sfa / methods / remove.py
index 0321bdb..fb8f820 100644 (file)
@@ -29,12 +29,13 @@ class remove(Method):
         Parameter(str, "Credential string"),
         Parameter(str, "Record type"),
         Parameter(str, "Human readable name (hrn) of record to be removed"),
-        Parameter(str, "Request hash")
+        Mixed(Parameter(str, "Request hash"),
+              Parameter(None, "Request hash not specified"))
         ]
 
     returns = Parameter(int, "1 if successful")
     
-    def call(self, cred, type, hrn, request_hash, caller_cred=None):
+    def call(self, cred, type, hrn, request_hash=None, caller_cred=None):
 
         if caller_cred==None:
             caller_cred=cred