Ńņ ŅR4Sc @sqdZddkZyddkTeZWnej o eZnXddkii 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 GroupActioncBseZdZgZdZdZeZei eZ d„Z e d„Z d„Zd„Zd„Zd„Zd d „Zd „ZRS( sŪClass representing a group packaging object. note that grouplist members are selected via the user action, although they are stored in the /etc/group file. Use of group passwds is not supported.tgroupt groupnamecs t‡‡fd†ˆiDƒƒS(sw return a dictionary containing attrs in attr list from self.attrs; omit if no such attrs in self.attrsc3s7x0|])}|ˆjo|ˆi|fVqqWdS(N(tattrs(t.0ta(tselftattrlist(s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pys :s (tdictR(RR((RRs7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pytextract7sc Cs[tpdS|iddgƒ}t|iƒ}|i|ƒ}|o;|d|idjo|}|id|ds0   cCsE|ii}|o.||jpt‚|i||dtƒndS(NR"(RRtAssertionErrorR)tTrue(RR R!tgroups((s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pyt postinstalljs c Kspg}g}g}tp|||fSt|ƒ}|i|iƒ}td„|iƒiƒDƒƒ}d|ijod|dƒs  R R.s ss user-lists/%(entry)s: '%(found)s' should be '%(expected)s'tentrytfoundtexpectedN( RRRRR tgetdefaultvaluest iteritemstcopytupdatet setdefaulttpoptNoneR( RR(targsterrorstwarningstinfoR$R%tgrdefvalt should_beR/t_[1]R((s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pytverifyps4    PcCsxtpdSt|iƒ}|i|iƒ}d|jo:y|i|iƒWntj o }qtX|iƒndS(s*client-side method that removes this groupNs user-list(RRRRRt removevaluetKeyErrorR(RR R$R%R&((s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pytremove”s cCsdd|iddfgS(swGenerates the indices needed by the search dictionary. See generic.py for a more detailed explanation.RtnameRN(RR:(R((s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pytgenerate_indices³scCs&tii|d|ddddƒ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. Rt numeric_attrsR t single_attrsN(sgid(sgid(tgenerictActiont _validate(RR((s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pytvalidate¹s cCs7tt|iiddƒƒt|iiddƒƒƒS(sŹArrange for group actions to be installed in gid order. This will only hold true for actions installed at one time, but that's generally what we need on initial install.R i(tcmpRRtget(Rtother((s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pytcompareČsN(t__name__t __module__t__doc__t __slots__RFtkey_attrR+tglobally_identicalRJt _orderdictt ordinalityR tFalseR)R-RBRERGR:RMRQ(((s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pyR*s   ,  1   ( RTRJt pkg.cfgfilesR+Rt ImportErrorRZtpkg.client.api_errorstclientt api_errorsRRKR(((s7/usr/lib/python2.6/vendor-packages/pkg/actions/group.pyts