/usr/lib/python2.6/site-packages/keystoneauth1/loading
NameSizeModeActions
_plugins/-0755rm
base.py39530644editdlrm
base.pyc46070644editdlrm
cli.py39900644editdlrm
cli.pyc36900644editdlrm
conf.py47770644editdlrm
conf.pyc41860644editdlrm
identity.py61480644editdlrm
identity.pyc66280644editdlrm
opts.py33080644editdlrm
opts.pyc33800644editdlrm
session.py101540644editdlrm
session.pyc94600644editdlrm
__init__.py21320644editdlrm
__init__.pyc13820644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/loading/cli.pyc (3690B)
Ņō DVc@srddkZddkZddklZddklZddgZd„Zei ƒdd„ƒZ d„Z dS( i˙˙˙˙N(t_utils(tbasetregister_argparse_argumentstload_from_argparse_argumentsc CsSxL|iƒD]>}|id|id|id|idd|i|iŒq WdS(Ntdefaulttmetavarthelptdestsos_%s(t get_optionst add_argumenttargparse_defaultRRRt argparse_args(tparsertplugintopt((s@/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/cli.pyt#_register_plugin_argparse_argumentss     c Csūtidtƒ}tiidtiid|ƒƒ}x6||fD](}|iddddd|d d ƒqCW|i|ƒ\}}|ipdSt |it i ƒod }|i} n d |i}t i |iƒ} |id |ƒ} t| | ƒ| S(sRegister CLI options needed to create a plugin. The function inspects the provided arguments so that it can also register the options required for that specific plugin if available. :param argparse.ArgumentParser: the parser to attach argparse options to. :param list argv: the arguments provided to the appliation. :param str/class default: a default plugin name or a plugin object to use if one isn't specified by the CLI. default: None. :returns: The plugin class that will be loaded or None if not provided. :rtype: :py:class:`keystonauth.auth.BaseAuthPlugin` :raises keystonauth.exceptions.NoMatchingPlugin: if a plugin cannot be created. tadd_helpt OS_AUTH_TYPEtOS_AUTH_PLUGINs--os-auth-types--os-auth-pluginRsRRsAuthentication type to usesDefault Authentication optionss"Options specific to the %s plugin.sAuthentication OptionsN(targparsetArgumentParsertFalsetostenvirontgetR tparse_known_argst os_auth_typetNonet isinstanceRt BaseLoadertget_plugin_loadertadd_argument_groupR( R targvRt in_parsert env_plugintptoptionst_argstmsgR tgroup((s@/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/cli.pyR!s*        cKs´|ipdSt|itƒo |i}nti|iƒ}|iƒ}xW|D]O}t|d|iƒ}|dj o|i|ƒ}n|i |i|ƒqTW|i |S(sôRetrieve the created plugin from the completed argparse results. Loads and creates the auth plugin from the information parsed from the command line by argparse. :param Namespace namespace: The result from CLI parsing. :returns: An auth plugin, or None if a name is not provided. :rtype: :py:class:`keystonauth.auth.BaseAuthPlugin` :raises keystonauth.exceptions.NoMatchingPlugin: if a plugin cannot be created. sos_%sN( RRRttypeRRRtgetattrRt setdefaulttload_from_options(t namespacetkwargsR t plugin_optsRtval((s@/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/cli.pyRNs    ( RRt keystoneauth1Rtutilstkeystoneauth1.loadingRt__all__Rt positionalRRR(((s@/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/cli.pyt s    ,