/usr/lib/python2.6/site-packages/openstackclient/identity/v3
Edit: /usr/lib/python2.6/site-packages/openstackclient/identity/v3/user.pyc (11962B)
Ñò
;vVc
@ s4 d Z d d k 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 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 e i f d „ ƒ YZ d S( s' Identity v3 User action implementationsiÿÿÿÿN( t command( t lister( t show( t
exceptions( t utils( t _( t commont
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 d ƒ| i d d d d d ƒ| i d d d
d d ƒt i | ƒ | i d d d
d d ƒ| i d d d d d d d ƒ| i d d d d d ƒ| i d d d d d ƒ| i ƒ } | i d d d d d ƒ| i d d d d d ƒ| i d d d d t d ƒ ƒ| S(! Nt namet metavars
t helps
New user names --domains s Default domain (name or ID)s --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
--descriptions
s User descriptions --enables Enable user (default)s --disables Disable users --or-shows Return existing user( t superR t
get_parsert add_argumentR t# add_project_domain_option_to_parsert add_mutually_exclusive_groupR ( t selft prog_namet parsert enable_group( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/user.pyR % sZ
c C s… | i i i } d } | i o" t i | | i | i ƒ i } n d } | i o t i
| | i ƒ i } n t } | i o
t
} n | i o t i | i i ƒ | _ n yI | i i d | i d | d | d | i d | i d | i d | ƒ } Wn` t i j
oQ } | i o8 t i | i | i d | ƒ} | i i d | i ƒ qY| ‚ n X| i i d
ƒ t t! t" i# | i ƒ ƒ Œ S( NR t domaint default_projectt passwordt emailt descriptiont enabledt domain_ids Returning existing user %st links($ t appt client_managert identityt Nonet projectR t find_projectt project_domaint idR t find_domaint Truet disablet FalseR R t get_passwordt stdinR t userst createR R R t ksc_exct Conflictt or_showt
find_resourcet logt infot _infot popt zipt sortedt sixt iteritems( R t parsed_argst identity_clientt
project_idR R t usert e( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/user.pyt take_action^ sB
(
t __name__t
__module__t __doc__t loggingt getLoggerR4 R R t
log_methodRA ( ( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/user.pyR s 9t
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 sT t t | ƒ i | ƒ } | i d d d d d d d ƒ| i d d d d d
ƒ| S( NR. R s t nargst +R
s User(s) to delete (name or ID)s --domains s! Domain owning (name or ID)( R RH R R ( R R R ( ( sP /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/user.pyR s c C s§ | i i i } d } | i o t i | | i ƒ } n xh | i D]] } | d j o" t i | i | d | i
ƒ} n t i | i | ƒ } | i i | i
ƒ qB Wd S( NR ( R R! R" R# R R R( R. R R3 R' t delete( R R<