Permalink
Browse files

translate realtime flag keyword to fcp parameter in put()

  • Loading branch information...
Ratchet committed Apr 25, 2011
1 parent ce748e3 commit 6d5ea1949c30e934000ca52b98f66a4655700ba2
Showing with 2 additions and 0 deletions.
  1. +2 −0 fcp/node.py
View
@@ -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"))

0 comments on commit 6d5ea19

Please sign in to comment.