ó öëm>c@s`dZddlmZddlmZddlmZddlmZdefd„ƒYZdS( sä DOM Level 2 Attribute Node WWW: http://4suite.com/4DOM e-mail: support@4suite.com Copyright (c) 2000 Fourthought Inc, USA. All Rights Reserved. See http://4suite.com/COPYRIGHT for license and copyright information iÿÿÿÿ(tNode(timplementation(tFtNode(t MutationEventtAttrcBs,eZejZejejgZd„Zd„Z d„Z d„Z d„Z d„Z d„Zd„Zd„Zd „Zd „Zd „Zd „Zd „ZejjƒZejie d6e d6e d6e d6e d6ƒejjƒZejie d6e d6ƒeed„ejejƒƒZRS(cCs3tj|||||ƒ||jd/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyRs cCs |jdS(NR(R(R ((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt _get_name scCs|jƒdkS(Nt(t _get_value(R ((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt_get_specified#scCstd„|jdƒS(NcSs ||jS(N(t nodeValue(tvaluetchild((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt(sR(treducet childNodes(R ((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyR's c CsÃ|j}||ks*t|jƒdkr¿x|jrI|j|jƒq-W|rl|j|jj|ƒƒn|j}|r¿|j dd|d|d|d|j dt j ƒ|j dƒq¿ndS( NitDOMAttrModifiedt relatedNodet prevValuetnewValuetattrNamet attrChangetDOMSubtreeModified( RtlenRt firstChildt removeChildt appendChildR tcreateTextNodeR t_4dom_fireMutationEventR Rt MODIFICATION(R Rt old_valuetowner((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt _set_value,s !     cCs|jS(N(R (R ((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt_get_ownerElement?scCs |jƒS(N(R(R ((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt_get_nodeValueDscCs|j|ƒdS(N(R*(R R((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt_set_nodeValueGscCsdt|ƒ|j|jfS(Ns-(tidR R(R ((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt__repr__Js cCsU|j||j|j|j|jƒ}x'|jD]}|j|j|ƒƒq1W|S(N(t __class__tnodeNameR RRRR$t _4dom_clone(R R)taR((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyR2Ss  cCs"|j|j|j|j|jfS(N(R R1R RR(R ((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt__getinitargs__]s cCs|jS(N(R(R ((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt __getstate__escCsY|jjt|ƒƒx<tdt|ƒƒD]%}||j|||ddƒq,WdS(Ni(RtextendtlisttrangeR!t_4dom_setHierarchyR(R tchildrenti((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt __setstate__hscCs||jd/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt_4dom_setOwnerElementosR t specifiedt ownerElementRRcCs|j|ƒ S(N(thas_key(tktm((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyR„s(t__name__t __module__RtATTRIBUTE_NODEtnodeTypet TEXT_NODEtENTITY_REFERENCE_NODEt_allowedChildrenRRRRR*R+R,R-R/R2R4R5R<R=Rt_readComputedAttrstcopytupdatet_writeComputedAttrstfiltert_readOnlyAttrstkeys(((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyRs<                   N( t__doc__txml.domRtDOMImplementationRRtEventRR(((s>/opt/freeware/lib/python2.7/site-packages/_xmlplus/dom/Attr.pyt s