/usr/lib/python2.6/site-packages/keystoneauth1/identity/generic
NameSizeModeActions
base.py63140644editdlrm
base.pyc55120644editdlrm
password.py26970644editdlrm
password.pyc24020644editdlrm
token.py13580644editdlrm
token.pyc15620644editdlrm
__init__.py8420644editdlrm
__init__.pyc4700644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/identity/generic/base.pyc (5512B)
Ñò DVc @s«ddkZddkZddkiiiZddklZ ddkl Z ddkl Z ddk l Z e ieƒZeieiƒde ifd„ƒYƒZdS(iÿÿÿÿN(t_utils(tdiscover(t exceptions(tbasetBaseGenericPluginc Bs†eZdZdddddddddd„ Zeidd„ƒZed„ƒZ ed„ƒZ ed„ƒZ d„Z d„Z RS( sÑAn identity plugin that is not version dependant. Internally we will construct a version dependant plugin with the resolved URL and then proxy all calls from the base plugin to the versioned one. c Csstt|ƒid|ƒ|p||_|p||_||_||_||_| |_| |_ d|_ dS(Ntauth_url( tsuperRt__init__t _project_idt _project_namet_project_domain_idt_project_domain_namet _domain_idt _domain_namet _trust_idtNonet_plugin( tselfRt tenant_idt tenant_namet project_idt project_nametproject_domain_idtproject_domain_namet domain_idt domain_namettrust_id((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyR#s      cCsdS(sÉCreate a plugin from the given paramters. This function will be called multiple times with the version and url of a potential endpoint. If a plugin can be constructed that fits the params then it should return it. If not return None and then another call will be made with other available URLs. :param session: A session object. :type session: keystonauth.session.Session :param tuple version: A tuple of the API version at the URL. :param string url: The base URL for this version. :param string raw_status: The status that was in the discovery field. :returns: A plugin that can match the parameters or None if nothing. N(R(Rtsessiontversionturlt raw_status((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyt create_plugin9scCs"t|i|i|i|igƒS(s®Are there domain parameters. Domain parameters are v3 only so returns if any are set. :returns: True if a domain parameter is set, false otherwise. (tanyR R R R (R((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyt_has_domain_scopeLscCs"h|id6|id6|id6S(s)Parameters that are common to v2 plugins.RRR(RRR (R((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyt _v2_paramsWs  cCsJh|id6|id6|id6|id6|id6|id6|id6S(s)Parameters that are common to v3 plugins.RRRRRRR(RRR R R R R (R((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyt _v3_params^s      c Cs·d}y|i||idtƒ}WnÈtititifj oªti dƒt i |iƒ}|i i ƒ}|i dƒo9|iotidƒ‚n|i|d |iƒ}q˜|i dƒo|i|d|iƒ}q˜nªX|iƒ}t}xq|D]i}|d } tid| ƒo|io t}q n|i|| |d d |d ƒ}|oPq q W| o|otidƒ‚n|o|Stid ƒ‚dS(Nt authenticateds‚Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.s/v2.0s.Cannot use v2 authentication with domain scopeiis/v3iRRRs1Could not determine a suitable URL for the plugin(ii(ii(i(Rt get_discoveryRtFalseRtDiscoveryFailuret HttpErrortConnectionErrortLOGtwarningturlparsetpathtlowert startswithR!Rt version_dataRt version_matchtTrue( RRtplugintdisct url_partsR-t disc_datatv2_with_domain_scopetdataR((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyt_do_create_pluginisN      !        cKs3|ip|i|ƒ|_n|ii||S(N(RR9t get_auth_ref(RRtkwargs((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyR:¢s N(t__name__t __module__t__doc__RRtabctabstractmethodRtpropertyR!R"R#R9R:(((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyRs"   9(R?tsixtsix.moves.urllib.parsetmovesturllibtparseR,t keystoneauth1RtutilsRRtkeystoneauth1.identityRt get_loggerR<R*t add_metaclasstABCMetatBaseIdentityPluginR(((sJ/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/generic/base.pyt s