/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/_discover.pyc (10929B)
Ñò ðsN(tpoptNonet setdefaultR(R@RR6tinfoRR&RR8R:tsort( R3tkwargstdataRRt version_strRCtversion_numbertlinkRDR((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pyt version_data¸sH    cKsOt|ƒ}|i|}x-t|ƒD]}t||dƒo|Sq(WdS(sÌReturn endpoint data for a version. :param tuple version: The version is always a minimum version in the same major release as there should be no compatibility issues with using a version newer than the one asked for. :returns: the endpoint data for a URL that matches the required version (the format is described in version_data) or None if no match. :rtype: dict R N(R&RStreversedR+RJ(R3R RNRSRO((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pytdata_forós   cKs&|i||}|o |dSdS(saGet the endpoint url for a version. :param tuple version: The version is always a minimum version in the same major release as there should be no compatibility issues with using a version newer than the one asked for. :returns: The url for the specified version or None if no match. :rtype: str RN(RURJ(R3R RNRO((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pyturl_fors (R-scurrents supported(s deprecated(R1N(t__name__t __module__R9R;R<Rt positionalRJR4R'R(R@RSRURV(((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pyR,…s ' ; t _VersionHackscBs,eZdZd„Zdd„Zd„ZRS(s¢A container to abstract the list of version hacks. This could be done as simply a dictionary but is abstracted like this to make for easier testing. cCs h|_dS(N(t_discovery_data(R3((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pyR4stcCs,|ii|gƒ}|i||fƒdS(sßAdd a new hack for a service type. :param str service_type: The service_type in the catalog. :param re.RegexObject old: The pattern to use. :param str new: What to replace the pattern with. N(R[RKR:(R3t service_typetoldtnewthacks((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pytadd_discover_hack scCsTxM|ii|gƒD]6\}}|i||ƒ\}}|djo|SqW|S(s6Apply the catalog hacks and figure out an unversioned endpoint. :param str service_type: the service_type to look up. :param str url: The original url that came from a service_catalog. :returns: Either the unversioned url or the one from the catalog to try. i(R[R tsubn(R3R]RR^R_t new_stringtnumber_of_subs_made((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pytget_discover_hack*s    (RWRXt__doc__R4RaRe(((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pyRZs  tidentitys/v2.0/?$t/cCsti||ƒS(sFApply the catalog hacks and figure out an unversioned endpoint. This function is internal to keystoneclient. :param str service_type: the service_type to look up. :param str url: The original url that came from a service_catalog. :returns: Either the unversioned url or the one from the catalog to try. (t_VERSION_HACKSRe(R]R((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pytget_catalog_discover_hack?s (RftloggingtretkeystoneclientRtkeystoneclient.i18nRRRRt getLoggerRWR6RYRJRR&R+tobjectR,RZRiRatcompileRj(((sG/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/_discover.pyts   % ! ‘%