/usr/lib/python2.6/site-packages/openstackclient/identity/v2_0
Edit: /usr/lib/python2.6/site-packages/openstackclient/identity/v2_0/user.pyc (10207B)
Ñò
;vVc @ sÿ d Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z d d k l Z d d k
l Z d d k l
Z
d e i f d
„ ƒ YZ d e i f d „ ƒ YZ d
e i f d „ ƒ YZ d e i f d „ ƒ YZ d e i f d „ ƒ YZ d S( s) Identity v2.0 User action implementationsiÿÿÿÿN( t command( t lister( t show( t
exceptions( t utils( t _t
CreateUserc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Create new users .CreateUserc C s& t t | ƒ i | ƒ } | i d d d d t d ƒ ƒ| i d d d d t d ƒ ƒ| i d d d
d t d ƒ ƒ| i d d
d d d d t d ƒ ƒ| i d d d d t d ƒ ƒ| i ƒ } | i d d d d t d ƒ ƒ| i d d d d t d ƒ ƒ| i d d d d t d ƒ ƒ| S( Nt namet metavars
t helps
New user names --projects s Default project (name or ID)s
--passwords
s Set user passwords --password-promptt destt password_promptt actiont
store_trues! Prompt interactively for passwords --emails s Set user email addresss --enables Enable user (default)s --disables Disable users --or-shows Return existing user( t superR t
get_parsert add_argumentR t add_mutually_exclusive_group( t selft prog_namet parsert enable_group( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/user.pyR # sH
c C sr | i i i } | i o t i | i | i ƒ i } n d } t } | i
o
t } n | i o t i
| i i ƒ | _ n y1 | i i | i | i | i d | d | ƒ} WnZ t i j
oK } | i o2 t i | i | i ƒ } | i i d | i ƒ q| ‚ n Xd | i j o' | i i h | i i d ƒ d 6ƒ n h } | i | i ƒ t t t i | ƒ ƒ Œ S( Nt tenant_idt enableds Returning existing user %st tenantIdt
project_id( t appt client_managert identityt projectR t
find_resourcet tenantst idt Nonet Truet disablet FalseR t get_passwordt stdint passwordt userst createR t emailt ksc_exct Conflictt or_showt logt infot _infot updatet popt zipt sortedt sixt iteritems( R t parsed_argst identity_clientR R t usert eR/ ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/user.pyt take_actionQ s>
(
t __name__t
__module__t __doc__t loggingt getLoggerR. R R t
log_methodR; ( ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/user.pyR s .t
DeleteUserc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Delete user(s)s .DeleteUserc C sA t t | ƒ i | ƒ } | i d d d d d d t d ƒ ƒ| S( NR( R s t nargst +R s User(s) to delete (name or ID)( R RB R R R ( R R R ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/user.pyR ‡ s
c C sO | i i i } x9 | i D]. } t i | i | ƒ } | i i | i ƒ q Wd S( N( R R R R( R R t deleteR ( R R7 R8 R9 t user_obj( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/user.pyR; ‘ s
(
R<