/usr/lib/python2.6/site-packages/swiftclient
Edit: /usr/lib/python2.6/site-packages/swiftclient/command_helpers.pyc (6692B)
Ñò
;vVc @ s_ d d k l Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d d
„ Z
d S( iÿÿÿÿ( t prt_bytess x-account-storage-policy-c
C sN g } | i ƒ } | d d j o) | i d | i f d | i f g ƒ n t | i d d ƒ ƒ } t | i d d ƒ | d ƒ i ƒ } t | i d d ƒ | d ƒ i ƒ } | i d
| i i d d ƒ d f d
| f d | f d | f g ƒ t ƒ } xg | i
ƒ D]Y \ } } | i ƒ i t
ƒ o7 | i d d ƒ d i d d ƒ d }
| i |
ƒ qqWxÜ | D]Ô } t
| d } | | j o6 | i d | d t | | | d ƒ i ƒ f ƒ n | i d | d t | i t
| d d ƒ | d ƒ i ƒ f d | d t | i t
| d d ƒ | d ƒ i ƒ f f ƒ qlW| | f S( Nt verbosei t
StorageURLs
Auth Tokens x-account-container-counti s x-account-object-countt humans x-account-bytes-usedt Accountt /iÿÿÿÿt
Containerst Objectst Bytest -i i s -container-counts Containers in policy "t "s Objects in policy "s
-object-counts Bytes in policy "s -bytes-used( t head_accountt extendt urlt tokent intt getR t lstript rsplitt sett itemst lowert
startswitht POLICY_HEADER_PREFIXt splitt addt append(
t connt optionsR t headerst container_countt object_countt
bytes_usedt policiest
header_keyt header_valuet policy_namet policyt container_count_header( ( sG /tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/command_helpers.pyt stat_account sV
&
c
C s© g } xA | i ƒ D]3 \ } } | i ƒ i t ƒ o | i | ƒ q q W| i t | d d d d d d d d g | ƒƒ t d „ | Dƒ ƒ } | i | d
| ƒd S( Nt meta_prefixs x-account-meta-t exclude_headerss content-lengtht dates x-account-container-counts x-account-object-counts x-account-bytes-usedc s s% x | ] \ } } t | ƒ Vq Wd S( N( t len( t .0t itemt value( ( sG /tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/command_helpers.pys
Y s t offset( R R R R R R t headers_to_itemst maxt print_items( R R t output_managert exclude_policy_headersR" R# R/ ( ( sG /tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/command_helpers.pyt print_account_statsJ s
c C sK | i | ƒ } g } | d d j o9 d | i | f } | i d | f d | i f g ƒ n t | i d d ƒ | d ƒ i ƒ } t | i d d ƒ | d ƒ i ƒ } | i d
| i i d d ƒ d f d
| f d | f d | f d | i d d ƒ f d | i d d ƒ f d | i d d ƒ f d | i d d ƒ f g ƒ | | f S( NR i s %s/%st URLs
Auth Tokens x-container-object-counti R s x-container-bytes-usedR R iÿÿÿÿt ContainerR R s Read ACLs x-container-readt s Write ACLs x-container-writes Sync Tos x-container-sync-tos Sync Keys x-container-sync-key( t head_containerR
R R R R R R ( R R t containerR R t pathR R ( ( sG /tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/command_helpers.pyt stat_container] s, c C sL | i t | d d d d ƒƒ t d „ | Dƒ ƒ } | i | d
| ƒd S( NR( s x-container-meta-R) s content-lengthR* s x-container-object-counts x-container-bytes-useds x-container-reads x-container-writes x-container-sync-tos x-container-sync-keyc s s% x | ] \ } } t | ƒ Vq Wd S( N( R+ ( R, R- R. ( ( sG /tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/command_helpers.pys ‡ s R/ ( s content-lengths dates x-container-object-counts x-container-bytes-useds x-container-reads x-container-writes x-container-sync-tos x-container-sync-key( R R0 R1 R2 ( R R R3 R/ ( ( sG /tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/command_helpers.pyt print_container_statsx s
c C s | i | | ƒ } g } | d d j o<