/usr/lib/python2.6/site-packages/keystoneclient
NameSizeModeActions
apiclient/-0755rm
auth/-0755rm
common/-0755rm
contrib/-0755rm
fixture/-0755rm
generic/-0755rm
hacking/-0755rm
locale/-0755rm
middleware/-0755rm
openstack/-0755rm
tests/-0755rm
v2_0/-0755rm
v3/-0755rm
access.py247750644editdlrm
access.pyc331160644editdlrm
adapter.py84010644editdlrm
adapter.pyc91980644editdlrm
base.py179510644editdlrm
base.pyc207410644editdlrm
baseclient.py13130644editdlrm
baseclient.pyc21330644editdlrm
client.py29130644editdlrm
client.pyc29130644editdlrm
discover.py160230644editdlrm
discover.pyc162010644editdlrm
exceptions.py149840644editdlrm
exceptions.pyc243890644editdlrm
httpclient.py385470644editdlrm
httpclient.pyc332640644editdlrm
i18n.py11620644editdlrm
i18n.pyc5580644editdlrm
service_catalog.py166100644editdlrm
service_catalog.pyc150700644editdlrm
session.py406950644editdlrm
session.pyc358510644editdlrm
shell.py195880644editdlrm
shell.pyc148680644editdlrm
utils.py115890644editdlrm
utils.pyc127330644editdlrm
_discover.py111260644editdlrm
_discover.pyc109290644editdlrm
__init__.py24350644editdlrm
__init__.pyc19940644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneclient/session.pyc (35851B)
Ñò tserviceCatalogtaccess(Rtloadstdumpst Exception(tbodytdata((sE/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/session.pyt_remove_service_catalog<sRcBsHeZdZd-Zd.ZeZdZeZe i dde i i ƒd-d-d-e d-d-d-ed „ƒZ ed „ƒZe i ƒd-d-d-ed „ƒZd „Ze i de i i ƒd-d-d-d-d-d-d-d-e e e d-d ed„ƒZdd„Zd„Zd„Zd„Zd„Zd„Zd„Zed„ƒZed„ƒZeed-d-d-d-d„ƒZd„Z d-d„Z!e"i#ddddd d!ƒd-d"„ƒZ$d-d#„Z%d-d$„Z&d-d%„Z'd-d&„Z(d-d'„Z)e i iƒd-d(„ƒZ*e i iƒd-d)„ƒZ+ed*„ƒZ,ed+„ƒZ-ed,„ƒ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:`keystoneclient.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 'python-keystoneclient') :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/i1i3iit enforcementc Cs»|p7tiƒ}x(|iD]} |i| tƒƒqWn||_||_||_||_||_ d|_ ||_ |dj ot |ƒ|_ n|dj o ||_ndS(N(trequestsRtadapterstmounttTCPKeepAliveAdaptertauthtsessiont original_iptverifytcertR ttimeouttredirectR t user_agent( tselfR)R*R+R,R-R.R0R/tscheme((sE/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/session.pyt__init__ƒs            cCsfd}|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(tlowerthashlibtsha1tupdatetencodet hexdigest(theadertsecure_headerst token_hashert token_hash((sE/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/session.pyt_process_headerœs  cCs|itiƒpdSdg}|itjo|idƒn/t|itiƒo|id|iƒn|o|i d|gƒn|i|ƒ|o8x5ti |ƒD] }|id|i |ƒƒq²Wn|o|id|ƒn|i di |ƒƒdS(NsREQ: curl -g -is --insecures --cacert "%s"s-Xs -H "%s: %s"s-d '%s't (t isEnabledFortloggingtDEBUGR,tFalsetappendt isinstancetsixt string_typestextendt iteritemsR?tdebugtjoin(R1RRR"theaderstloggert string_partsR;((sE/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/session.pyt_http_log_request¨s$   cCsº|itiƒpdSt|iƒ}dg}|id|iƒx4ti|i ƒD] }|id|i |ƒƒqWW|o|idt i |ƒƒn|i di|ƒƒdS(NsRESP:s[%s]s%s: %ss RESP BODY: %s R@(RARBRCR#ttextREt status_codeRGRJRMR?Rt mask_passwordRKRL(R1tresponseRNRQROR;((sE/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/session.pyt_http_log_responseÈs  ic KsÑ|idtƒƒ}|djot| p|iƒ}n|oL|i| ƒ}|djotdƒ}ti|ƒ‚n|i |ƒnt o|i t 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||dt OS_CACERTsjSpecify a CA bundle file to use in verifying a TLS (https) server certificate. Defaults to env[OS_CACERT].s --os-certs tOS_CERTsDefaults to env[OS_CERT].s--os-keystOS_KEYsDefaults to env[OS_KEY].s --timeoutiXttypes s!Set request timeout (in seconds).N(t add_argumentRDtostenvironRhR(tparser((sE/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/session.pytregister_cli_optionsds*     cKsb|i|d<|i|d<|io$|io|i|if|d s:             ÿÿÿR