Ñò Ë Rc @s dZddkZddkZgZeiedƒD]2Zeidƒoedjoeed q6q6[ZhZ hZ xûeD]óZ e de e feƒeƒe gƒZeieeiƒZgZeD]?Zdied iidƒd ƒe joeed qÒqÒ[ZxZeD]RZeed ƒoee eitdƒh|id6|id6|id6|d6|id 6Std ƒh|id6|id6|d6|id 6S( Nt it^RsaMalformed action in package '%(fmri)s' at position: %(pos)d: %(error)s: %(action)s %(marker)stposRtmarkerterrorsKMalformed action at position: %(pos)d: %(error)s: %(action)s %(marker)s(RRRRRRR(RR((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR|s     (R R R R(((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyRus tActionDataErrorcBs eZdZd„Zd„ZRS(sYUsed to indicate that a file-related error occuring during action initialization.cOs3ti|ƒ|d|_|iddƒ|_dS(Nitpath(RR RtgetRR(RRtkwargs((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR Žs  cCs t|iƒS(N(RR(R((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR“s(R R R R R(((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyRŠs tInvalidActionErrorcBs eZdZd„Zd„ZRS(srUsed to indicate that attributes provided were invalid, or required attributes were missing for an action.cGs+ti|ƒ|d|_|d|_dS(Nii(RR RR(RR((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR ›s  cCsot|dƒo=|idj o-tdƒh|id6|id6|id6Stdƒh|id6|id6S(NRs9invalid action in package %(fmri)s: %(action)s: %(error)sRRs'invalid action, '%(action)s': %(error)s(RRRRRR(R((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR s     (R R R R R(((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR"—s tMissingKeyAttributeErrorcBseZdZd„ZRS(s;Used to indicate that an action's key attribute is missing.cGs/ti|t|dƒtdƒ|dƒdS(Nis)no value specified for key attribute '%s'i(R"R RR(RR((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR ¬s(R R R R (((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR#©stKeyAttributeMultiValueErrorcBseZdZd„ZRS(s}Used to indicate that an action's key attribute was specified multiple times for an action that expects it only once.cGs/ti|t|dƒtdƒ|dƒdS(Nis'%s attribute may only be specified oncei(R"R RR(RR((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR µs(R R R R (((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR$±stInvalidPathAttributeErrorcBseZdZd„ZRS(sfUsed to indicate that an action's path attribute value was either empty, '/', or not a string.cGs'ti|t|dƒtdƒƒdS(NisEmpty or invalid path attribute(R"R RR(RR((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR ¾s(R R R R (((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR%ºstInvalidActionAttributesErrorcBs#eZdZdd„Zd„ZRS(sAUsed to indicate that one or more action attributes were invalid.cCs,ti|ƒ||_||_||_dS(s­'act' is an Action (object or string). 'errors' is a list of tuples of the form (name, error) where 'name' is the action attribute name, and 'error' is a string indicating what attribute is invalid and why. 'fmri' is an optional package FMRI (object or string) indicating what package contained the actions with invalid attributes.N(RR RterrorsR(RtactR'R((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR Æs   cCsodid„|iDƒƒ}|io*tdƒh|id6|id6|d6Stdƒh|id6|d6S(Ns cssx|]\}}|VqWdS(N((t.0Rterr((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pys ×s sXThe action '%(action)s' in package '%(fmri)s' has invalid attribute(s): %(act_errors)sRRt act_errorssBThe action '%(action)s' has invalid attribute(s): %(act_errors)s(tjoinR'RRR(RR+((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyRÖs     N(R R R RR R(((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyR&Ãs (tfromstrcCstd|ƒiS(s”Create an attribute dict given a string w/ key=value pairs. Raises MalformedActionError if the attributes have syntactic problems. s unknown %s(R-tattrs(tstring((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyt attrsfromstræsc Cs…|tjo,td|di|ƒfiƒ|ƒ‚nd}|djo|idƒ}nh}y xg}|D]}||iddƒqv~D]ê\}} | djp |djoj|i|ƒd} di|| ƒ} di|| ƒ} td || | ft | ƒdd |ƒ‚n||jo| |||o7t t dƒh|d6di|ƒd6d|ƒ‚nb| oH|oAt t dƒh|d6did „|Dƒƒd 6d|ƒ‚n|p |}n|i|ƒ||fS( s¿Sets the data field of an action using the information in the payload and returns the actual path used to set the data and the source used to find the data (this may be a path or a bundle object). The "payload" parameter is the representation of the data to assign to the action's data field. It can either be NOHASH or a path to the file. The "action" parameter is the action to modify. The "basedirs" parameter contains the directories to examine to find the payload in. The "bundles" parameter contains a list of bundle objects to find the payload in. "basedirs" and/or "bundles" must be specified. tNOHASHRspkg.sizesVAction payload '%(name)s' was not found in any of the provided locations: %(basedirs)sRs R6sSAction payload '%(name)s' was not found in any of the provided sources: %(sources)scssx|]}|iVqWdS(N(tfilename(R)tb((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pys “s tsourcesN(NN(RtosRtsepR.tKeyErrorR%tlstripR,tisfilet get_actionR5RRtset_data( tpayloadRR6tbundlestfilepathR5tused_srcRtbdtnpathtbundleR(((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyRBQsV        !     (0R tinspectRWREtlistdirt__path__tftendswitht__all__R7t payload_typestmodnamet __import__R tglobalstlocalstmodulet getmemberstisclasstnvlistt_[2]tcR,R R:tclassestclsRRRt ExceptionRR RRR"R#R$R%R&t_actionsR-R0RRPtTrueRRRB(((s:/usr/lib/python2.6/vendor-packages/pkg/actions/__init__.pyt,sH  5 B    ! M