From 6d5ea1949c30e934000ca52b98f66a4655700ba2 Mon Sep 17 00:00:00 2001 From: Ratchet Date: Mon, 25 Apr 2011 20:20:22 +0200 Subject: [PATCH] translate realtime flag keyword to fcp parameter in put() --- fcp/node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fcp/node.py b/fcp/node.py index eabb346..90ffb36 100644 --- a/fcp/node.py +++ b/fcp/node.py @@ -578,6 +578,7 @@ def put(self, uri="CHK@", **kw): - maxretries - maximum number of retries, default 3 - priority - the PriorityClass for retrieval, default 3, may be between 0 (highest) to 6 (lowest) + - realtime true/false - sets the RealTimeRequest flag. - timeout - timeout for completion, in seconds, default one year @@ -668,6 +669,7 @@ def put(self, uri="CHK@", **kw): opts['Verbosity'] = kw.get('Verbosity', 0) opts['MaxRetries'] = kw.get("maxretries", -1) opts['PriorityClass'] = kw.get("priority", 3) + opts['RealTimeFlag'] = toBool(kw.get("realtime", "false")) opts['GetCHKOnly'] = chkOnly opts['DontCompress'] = toBool(kw.get("nocompress", "false"))