Ñò ÒR4Sc @s}dZddkZddkZyddkTeZWnej o eZnXddki i Z dei fd„ƒYZ dS(s½module describing a user packaging object This module contains the UserAction class, which represents a user packaging object. This contains the attributes necessary to create a new user.iÿÿÿÿN(t*t UserActioncBs´eZdZgZdZdZeZei eZ ddddddd d gZ d „Z d „Z ed „Zed„Zd„Zd„Zd„Zd„Zdd„Zd„ZRS(s+Class representing a user packaging object.tusertusernametpasswordtlastchgtmintmaxtexpiretflagtwarntinactivecCs(t|tƒo t|ƒSt|gƒS(N(t isinstancetlisttset(tselftitem((s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pytas_set;s cCsõ|iiƒ}xß|D]×}||jo||ijp"||jo||||joqn|djo)||djp||djoqn|djo||||ôs  RR]R6RR2RRs*LK*Rs sc3sYxR|]K}ˆ|ˆ|jo0tdƒh|d6ˆ|d6ˆ|d6VqqWdS(s/%(entry)s: '%(found)s' should be '%(expected)s'tentrytfoundtexpectedN(RE(R^ta(R/t should_be(s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pys s (s*LK*sNP(R8RR1RBRCtEACCEStappendRERLRtsortedR=tdictR;t iteritemsRR<t setdefaulttextend( RRXtargsterrorstwarningstinfoRR,R-R.RVtpwdefvalR_((ReR/s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pytverifyÑsX "     c CsøtpdS|iiƒ}t|dtƒ}z¹yxt|iƒ}t|ƒ}|i|iƒ|i |idƒ|i |idtƒ|i ƒ|i ƒ|i ƒWn:t j o.}|i d|idfjo‚qånXWd|iƒXdS(s)client-side method that removes this userNR*Ri(R8R)RR R9R!R"t removevalueRt removeuserR@RARLRmRO(RRPR+R,R-R.RV((s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pytremoves$   cCsdd|iddfgS(swGenerates the indices needed by the search dictionary. See generic.py for a more detailed explanation.RtnameRN(RR7(R((s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pytgenerate_indices7scCs,tii|d|ddd dddƒdS(sJPerforms additional validation of action attributes that for performance or other reasons cannot or should not be done during Action object creation. An ActionError exception (or subclass of) will be raised if any attributes are not valid. This is primarily intended for use during publication or during error handling to provide additional diagonostics. 'fmri' is an optional package FMRI (object or string) indicating what package contained this action. R5t numeric_attrsR6RRRR R RR t single_attrsRRs gcos-fieldshome-dirs login-shellRtrequired_attrsN(suidslastchgsminsmaxswarnR Rsflag(spasswordsuidsgroups gcos-fieldshome-dirs login-shellsftpuserslastchgsminsmaxswarnR Rsflag(sgroup(tgenerictActiont _validate(RR5((s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pyRM=s cCs7tt|iiddƒƒt|iiddƒƒƒS(sÉArrange for user actions to be installed in uid order. This will only hold true for actions installed at one time, but that's generally what we need on initial install.R6i(tcmpR%RR(Rtother((s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pytcompareQsN(t__name__t __module__t__doc__t __slots__Rvtkey_attrR9tglobally_identicalR{t _orderdictt ordinalityRRRtFalseR1RYR\RrRuRwR7RMR€(((s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pyR+s&        U  I   (RƒRCR{t pkg.cfgfilesR9R8t ImportErrorR‰tpkg.client.api_errorstclientt api_errorsRFR|R(((s6/usr/lib/python2.6/vendor-packages/pkg/actions/user.pyts