Module Expr Str ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body If CompareNotEq Call NameLoad NameLoad Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Return Num Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Slice Num TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Num If CompareLt NameLoad Num body Expr Call NameLoad Str Return Num TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Num If CompareLt NameLoad Num body Expr Call NameLoad Str Return Num TryExcept body Assign NameStore Call NameLoad BinOpAdd Call NameLoad Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Num If CompareLt NameLoad Num body Expr Call NameLoad Str Return Num Assign NameStore Call AttributeLoad NameLoad attr Str Num If BoolOpOr CompareLt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num CompareNotEq SubscriptLoad NameLoad Index Num Str UnaryOpNot SubscriptLoad NameLoad Index Num UnaryOpNot SubscriptLoad NameLoad Index Num body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Return Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad attr Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad BinOpMod Str NameLoad If NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str Expr Call NameLoad Str For NameStore Call NameLoad NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Return Num decorator_list
N/A N/A 
Script for generating a form signature for use with FormPost middleware.
 __future__ print_function N/A hmac hashlib sha1 os.path basename time time main N/A N/A argv N/A N/A N/A N/A N/A len argv 7 N/A N/A prog N/A basename N/A argv N/A 0 N/A N/A print N/A Syntax: %s <path> <redirect> <max_file_size> <max_file_count> <seconds> <key> prog N/A N/A print N/A N/A print Where: N/A N/A print   <path>            The prefix to use for form uploaded N/A N/A print                     objects. For example: N/A N/A print                     /v1/account/container/object_prefix_ would N/A N/A print                     ensure all form uploads have that path N/A N/A print                     prepended to the browser-given file name. N/A N/A print   <redirect>        The URL to redirect the browser to after N/A N/A print                     the uploads have completed. N/A N/A print   <max_file_size>   The maximum file size per file uploaded. N/A N/A print   <max_file_count>  The maximum number of uploaded files N/A N/A print                     allowed. N/A N/A print   <seconds>         The number of seconds from now to allow N/A N/A print                     the form post to begin. N/A N/A print   <key>             The X-Account-Meta-Temp-URL-Key for the N/A N/A print                     account. N/A N/A print N/A N/A print Example output: N/A N/A print     Expires: 1323842228 N/A N/A print   Signature: 18de97e47345a82c4dbfb3b06a640dbb N/A N/A print N/A N/A print Sample form: N/A N/A print N/A N/A print NOTE: the <form> tag's "action" attribute does not contain the Swift cluster's hostname. N/A N/A print You should manually add it before using the form. N/A N/A print N/A N/A print <form action="/v1/a/c/o" method="POST" enctype="multipart/form-data"> N/A N/A print   <input type="hidden" name="max_file_size" value="123" /> N/A N/A print   ... more HTML ... N/A N/A print   <input type="submit" /> N/A N/A print </form> N/A 1 N/A N/A path redirect max_file_size max_file_count seconds key N/A argv N/A 1 N/A N/A N/A max_file_size N/A int max_file_size N/A N/A N/A ValueError N/A N/A max_file_size -1 N/A N/A max_file_size 0 N/A N/A N/A print Please use a <max_file_size> value greater than or equal to 0. N/A 1 N/A N/A N/A max_file_count N/A int max_file_count N/A N/A N/A ValueError N/A N/A max_file_count 0 N/A N/A max_file_count 1 N/A N/A N/A print Please use a positive <max_file_count> value. N/A 1 N/A N/A N/A expires N/A int N/A N/A time N/A int seconds N/A N/A N/A ValueError N/A N/A expires 0 N/A N/A expires 1 N/A N/A N/A print Please use a positive <seconds> value. N/A 1 N/A parts N/A N/A path split / 4 N/A N/A N/A N/A len parts 4 N/A parts N/A 0 N/A N/A parts N/A 1 v1 N/A N/A parts N/A 2 N/A N/A parts N/A 3 N/A N/A N/A print <path> must point to a container at least. N/A N/A print For example: /v1/account/container N/A N/A print          Or: /v1/account/container/object_prefix N/A 1 N/A sig N/A N/A N/A N/A hmac new key N/A %s
%s
%s
%s
%s N/A path redirect max_file_size max_file_count expires sha1 hexdigest N/A N/A print   Expires: expires N/A N/A print Signature: sig N/A N/A print N/A N/A print Sample form:
 N/A N/A print NOTE: the <form> tag's "action" attribute does not contain the Swift cluster's hostname. N/A N/A print You should manually add it before using the form.
 N/A N/A print N/A <form action="%s" method="POST" enctype="multipart/form-data"> path N/A redirect N/A N/A N/A print N/A   <input type="hidden" name="redirect" value="%s" /> redirect N/A N/A print N/A   <input type="hidden" name="max_file_size" value="%d" /> max_file_size N/A N/A print N/A   <input type="hidden" name="max_file_count" value="%d" /> max_file_count N/A N/A print N/A   <input type="hidden" name="expires" value="%d" /> expires N/A N/A print N/A   <input type="hidden" name="signature" value="%s" /> sig N/A N/A print N/A   <!-- This signature allows for at most %d files, --> max_file_count N/A N/A print   <!-- but it may also have any smaller number. --> N/A N/A print   <!-- Remove file inputs as needed. --> N/A i N/A range max_file_count N/A N/A N/A print N/A   <input type="file" name="file%d" /> i N/A N/A print   <br /> N/A N/A print   <input type="submit" /> N/A N/A print </form> N/A 0 N/A