/usr/lib/python2.6/site-packages/keystoneauth1
NameSizeModeActions
access/-0755rm
exceptions/-0755rm
extras/-0755rm
fixture/-0755rm
hacking/-0755rm
identity/-0755rm
loading/-0755rm
tests/-0755rm
adapter.py82660644editdlrm
adapter.pyc89020644editdlrm
discover.py123720644editdlrm
discover.pyc120440644editdlrm
plugin.py78220644editdlrm
plugin.pyc83050644editdlrm
session.py305020644editdlrm
session.pyc263890644editdlrm
token_endpoint.py13630644editdlrm
token_endpoint.pyc14490644editdlrm
_utils.py71270644editdlrm
_utils.pyc80590644editdlrm
__init__.py00644editdlrm
__init__.pyc1480644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/session.pyc (26389B)
Ñò DVc@sgddkZddkZddkZddkZddkZddkZddkZddkZddkZddk Z ddk l Z ddk l Zddk lZyddkZWnej o eZnXyddkiZWnej o eZnXdZeieƒZdeifd„ƒYZdefd „ƒYZd eiifd „ƒYZ dS( iÿÿÿÿN(turllib(t_utils(t exceptionst keystoneauth1t _JSONEncodercBseZd„ZRS(cCs}t|tiƒo |iƒSt|tiƒoti|ƒSto!t|tiƒoti|ƒSt t |ƒi |ƒS(N( t isinstancetdatetimet isoformattuuidtUUIDtsixt text_typetnetaddrt IPAddresstsuperRtdefault(tselfto((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/session.pyR.s (t__name__t __module__R(((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/session.pyR,stSessioncBs‘eZdZdZd ZdZeidƒddde ddded„ƒZ d „Z e d „ƒZ eiƒdddded „ƒZeiƒddddded „ƒZeiƒdddddddde e e dd ed„ƒZdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Z RS(!sµMaintains client communication state and common functionality. As much as possible the parameters to this class reflect and are passed directly to the requests library. :param auth: An authentication plugin to authenticate the session with. (optional, defaults to None) :type auth: :py:class:`keystonauth.auth.base.BaseAuthPlugin` :param requests.Session session: A requests session object that can be used for issuing requests. (optional) :param string original_ip: The original IP of the requesting user which will be sent to identity service in a 'Forwarded' header. (optional) :param verify: The verification arguments to pass to requests. These are of the same form as requests expects, so True or False to verify (or not) against system certificates or a path to a bundle or CA certs to check against or None for requests to attempt to locate and use certificates. (optional, defaults to True) :param cert: A client certificate to pass to requests. These are of the same form as requests expects. Either a single filename containing both the certificate and key or a tuple containing the path to the certificate then a path to the key. (optional) :param float timeout: A timeout to pass to requests. This should be a numerical value indicating some amount (or fraction) of seconds or 0 for no timeout. (optional, defaults to 0) :param string user_agent: A User-Agent header string to use for the request. If not provided a default is used. (optional, defaults to 'keystoneauth1') :param int/bool redirect: Controls the maximum number of redirections that can be followed by a request. Either an integer for a specific count or True/False for forever/never. (optional, default to 30) i-i.i/i1i3iic CsÍ|p=tiƒ}x.|iiƒD]} |i| tƒƒq#Wn||_||_||_||_ ||_ d|_ ||_ |dj ot|ƒ|_ n|dj o ||_ntƒ|_dS(N(trequestsRtadapterstkeystmounttTCPKeepAliveAdaptertauthtsessiont original_iptverifytcerttNonettimeouttredirecttfloatt user_agentRt_json( RRRRRRR R#R!tscheme((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/session.pyt__init__ds"           cCsšy€ti|ƒ}d|jo0d|djod|dd<|ii|ƒSd|djod|dd<|ii|ƒSWntj onX|S(Nttokentcatalogs tserviceCatalogtaccess(tjsontloadsR$tencodet Exception(Rtbodytdata((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/session.pyt_remove_service_catalogscCsfd}|diƒ|joEtiƒ}|i|didƒƒ|iƒ}|dd|fS|S( s(Redacts the secure headers to be logged.t authorizations x-auth-tokensx-subject-tokeniisutf-8s{SHA1}%s(s authorizations x-auth-tokensx-subject-token(tlowerthashlibtsha1tupdateR-t hexdigest(theadertsecure_headerst token_hashert token_hash((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/session.pyt_process_header’s  c Css|itiƒpdSdg}|itjo|idƒn/t|itiƒo|id|iƒn|o|i d|gƒn|i|ƒ|o8x5ti |ƒD] }|id|i |ƒƒq²Wn|o|i i |ƒ}n|o[t|tiƒo3y|idƒ}WqDtj o d}qDXn|id|ƒn|id i|ƒƒdS( NsREQ: curl -g -is --insecures --cacert "%s"s-Xs -H "%s: %s"tasciis s-d '%s't (t isEnabledFortloggingtDEBUGRtFalsetappendRR t string_typestextendt iteritemsR<R$R-t binary_typetdecodetUnicodeDecodeErrortdebugtjoin( RturltmethodR0R+theaderstloggert string_partsR8((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/session.pyt_http_log_requestžs2   c Cs%|itiƒpdS|dj oI|p |i}n|p |i}n|p|i|iƒ}qnn|o|ii |ƒ}ndg}|o|i d|ƒn|o8x5t i |ƒD] }|i d|i |ƒƒqÇWn|o|i d|ƒn|idi|ƒƒdS(NsRESP:s[%s]s%s: %ss RESP BODY: %s R>(R?R@RARt status_codeRNR1ttextR$R-RCR RFR<RJRK( RtresponseR+RRRNRSRORPR8((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/session.pyt_http_log_responseÅs*    "ic KsÎ|idtƒƒ}|djot| p|iƒ}n|oF|i| ƒ}|djod}ti|ƒ‚n|i|ƒnt o|it i ƒƒnt i i |ƒipqd}|o |}n|o|i| |}n|ptiƒ‚nd|idƒ|idƒf}n|io|id|iƒn|idj o|id|iƒn|o||d s6             ÿÿŠ