Skip to content

Commit

Permalink
translate realtime flag keyword to fcp parameter in put()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratchet committed Apr 25, 2011
1 parent ce748e3 commit 6d5ea19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fcp/node.py
Expand Up @@ -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
Expand Down Expand Up @@ -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"))

Expand Down

0 comments on commit 6d5ea19

Please sign in to comment.