/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/base.pyc (20741B)
Ñò 7s (tdicttsixt iteritems(tkwargs((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyt filter_none5scs"tiˆƒ‡fd†ƒ}|S(Ncsxh}xbti|ƒD]Q\}}|djoqnt|ƒ}||jod|}n|||R)R@R,RtClientExceptionRR+(R!R/R&R0tmethodRtmethodsR2((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyt_updateßs N(t__name__t __module__t__doc__R R+RtpropertyR%R6R7R:tFalseR=R;R?RARCRJ(((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyROs    tManagerWithFindcBs2eZdZeid„ƒZd„Zd„ZRS(s5Manager with additional `find()`/`findall()` methods.cCsdS(N((R!((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pytlistóscKsˆ|i|}t|ƒ}|djo:tdƒh|iid6|d6}tid|ƒ‚n#|djo ti‚n |dSdS(s¨Find a single item with attributes matching ``**kwargs``. This isn't very efficient: it loads the entire list then filters on the Python side. is No %(name)s matching %(kwargs)s.tnameRi”iN(tfindalltlenRR+RKRtNotFoundt NoUniqueMatch(R!Rtrltnumtmsg((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pytfind÷s     c sxg}|iƒ}x_|iƒD]Q‰y2t‡fd†|Dƒƒo|iˆƒnWqtj o qqXqW|S(s¤Find all items with attributes matching ``**kwargs``. This isn't very efficient: it loads the entire list then filters on the Python side. c3s.x'|] \}}tˆ|ƒ|jVqWdS(N(tgetattr(R tattrtvalue(R(sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pys s (titemsRQtalltappendR(R!Rtfoundtsearches((RsB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyRS s   (RKRLRMtabctabstractmethodRQRZRS(((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyRPïs t CrudManagercBs¹eZdZd Zd Zd Zd d„Zed„ƒZ ed„ƒZ ed„ƒZ d„Z d„Z eed„ƒZed„ƒZed „ƒZed „ƒZed „ƒZRS( s Base manager class for manipulating Keystone entities. Children of this class are expected to define a `collection_key` and `key`. - `collection_key`: Usually a plural noun by convention (e.g. `entities`); used to refer collections in both URL's (e.g. `/v3/entities`) and JSON objects containing a list of member resources (e.g. `{'entities': [{}, {}, {}]}`). - `key`: Usually a singular noun by convention (e.g. `entity`); used to refer to an individual member of the collection. cCs©|djo h}n|iddƒp|ipd}|d|i7}|id|idƒ}|dj o|d|7}n|idƒo||d7}n|S(sRBuilds a resource URL for the given kwargs. Given an example collection where `collection_key = 'entities'` and `key = 'entity'`, the following URL's could be generated. By default, the URL will represent a collection of entities, e.g.:: /entities If kwargs contains an `entity_id`, then the URL will represent a specific member, e.g.:: /entities/{entity_id} If a `base_url` is provided, the generated URL will be appended to it. If a 'tail' is provided, it will be appended to the end of the URL. tbase_urlts/%ss%s_idttailN(R tpopRftcollection_keyRR*(R!tdict_args_in_outR/t entity_id((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyt build_url.s  # cKs2|id|ƒ}|i|h||i6|iƒS(NRk(RmR=R(R!RR/((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pytcreateRs  cKs|i|id|ƒ|iƒS(NRk(R7RmR(R!R((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyR*ZscKs|i|id|ƒƒS(NRk(R:Rm(R!R((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyR8`scCs |odtii|ƒSdS(Ns?%sRg(Rtparset urlencode(R!tparams((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyt _build_querydscCs|oddi|ƒSdS(s Builds a query that does not include values, just keys. The Identity API has some calls that define queries without values, this can not be accomplished by using urllib.parse.urlencode(). This method builds a query using only the keys. s?%st&Rg(tjoin(R!t params_list((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pytbuild_key_only_querygscKsÄd|iƒjottdƒƒ‚n|id|ƒ}y>|i|ƒ}dh|d6|d6}|i||iƒSWnDtij o5|o$|i||idht i d6ƒS‚nXdS( NRsˆlist() got an unexpected keyword argument 'id'. To retrieve a single object using a globally unique identifier, try using get() instead.Rks%(url)s%(query)sR/tquerytendpoint_filtert interface( tkeysR-RRmRrR6RjRt EmptyCatalogRtAUTH_INTERFACE(R!tfallback_to_authRR/Rwt url_query((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyRQps" cKs|i|id|ƒddƒS(NRkRHRD(RJRm(R!R((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyR>ŽscKs8|id|ƒ}|i|h||i6|iddƒS(NRkRHRF(RmRJR(R!RR/((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pytupdate”s   cKs|i|id|ƒƒS(NRk(RCRm(R!R((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyRBžscKsÁ|id|ƒ}|i|ƒ}|idh|d6|d6|iƒ}t|ƒ}|djo:tdƒh|iid6|d6}ti d |ƒ‚n#|d jo ti ‚n |dSd S( s9Find a single item with attributes matching ``**kwargs``.Rks%(url)s%(query)sR/Rwis No %(name)s matching %(kwargs)s.RRRi”iN( RmRrR6RjRTRR+RKRRURV(R!RR/RwRWRXRY((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyRZ£s      N(RKRLRMR RjRRfRmRRnR*R8RrRvRORQR>RRBRZ(((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyRes   $   tResourcecBs†eZdZeZdZed„Zd„Zed„ƒZ d„Z d„Z d„Z d„Z d „Zd „Zd „Zd „ZRS( sqBase class for OpenStack resources (tenant, user, etc.). This is pretty much just a bag for attributes. RRcCs,||_||_|i|ƒ||_dS(sÐPopulate and bind to a manager. :param manager: BaseManager object :param info: dictionary representing resource attributes :param loaded: prevent lazy-loading if set to True N(tmanagert_infot _add_detailst_loaded(R!RtinfoR(((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyRÄs   csRtd„ˆiiƒDƒƒ}di‡fd†|Dƒƒ}dˆii|fS(Ncss;x4|]-}|ddjo|djo |VqqWdS(iRRN((R R ((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pys Ñs s, c3s,x%|]}d|tˆ|ƒfVqWdS(s%s=%sN(R[(R R (R!(sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pys Ôs s<%s %s>(tsortedt__dict__RzRtt __class__RK(R!treprkeysR…((R!sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pyt__repr__Ðs cCsB|io4t||idƒ}|dj oti|ƒSndS(sAHuman-readable ID which can be used for bash completion. N(tHUMAN_IDR[t NAME_ATTRR Rtto_slug(R!RR((sB/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/base.pythuman_id×s   cCs[xTti|ƒD]C\}}y!t|||ƒ||i|s$         -ž