; > Dc @s- dkZdkZdkZdkZdkZdkZdkZdkZdk Z dk Z dk Z dk Z dk Z dkTydklZWnnXdZdZy(edededdZWn d ZnXd eifd YZd efd YZdefdYZdefdYZdZdfdYZdfdYZeZdfdYZdefdYZdefdYZ de fdYZ!de fd YZ"d!e fd"YZ#d#e fd$YZ$d%e fd&YZ%d'e fd(YZ&d)e fd*YZ'd+e fd,YZ(d-e fd.YZ)d/efd0YZ*d1efd2YZ+d3e+fd4YZ,d5efd6YZ-d7efd8YZ.d9efd:YZ/d;efd<YZ0d=efd>YZ1d?e1fd@YZ2dAefdBYZ3dCefdDYZ4dEe3fdFYZ5dGe3fdHYZ6dIefdJYZ7dKefdLYZ8dMefdNYZ9dOefdPYZ:dQefdRYZ;dSe:fdTYZ<dUefdVYZ=dWe=fdXYZ>dYefdZYZ?d[e?fd\YZ@d]efd^YZAd_eAfd`YZBdaefdbYZCdcefddYZDdeeDfdfYZEdgefdhYZFdiefdjYZGdkeGfdlYZHdmeGfdnYZIdoefdpYZJdqefdrYZKdseKfdtYZLdueKfdvYZMdwefdxYZNdyefdzYZOd{eOfd|YZPd}efd~YZQdeQfdYZRdefdYZSdefdYZTdefdYZUdefdYZVdefdYZWdeWfdYZXdefdYZYdefdYZZdefdYZ[defdYZ\defdYZ]de]fdYZ^defdYZ_de_fdYZ`de`fdYZade`fdYZbdeie_fdYZcdecfdYZdde`efdYZedfdYZfdZgdZhdZidZjd dZkdeilfdYZmdZndZodeipiqirfdYZsetdZud dZvd d d etdZwdfdYZxfhetetetetdded ZydZzdfdYZ{dfdYZ|dfdYZ}dfdYZ~dfdYZdfdYZde ifdYZdS(N(s*(sSSLs6$Id: SOAP.py,v 1.8 2004/09/30 08:09:08 jemfinch dead $s0.9.7.3sNaNsINFs-INFiisErrorcBs tZdZdZeZRS(NcCs ||_dS(N(smsgsself(sselfsmsg((s./UrbanDict/SOAP.pys__init__zscCsd|iSdS(Ns (sselfsmsg(sself((s./UrbanDict/SOAP.pys__str__|s(s__name__s __module__s__init__s__str__s__repr__(((s./UrbanDict/SOAP.pysErrorys  sRecursionErrorcBstZRS(N(s__name__s __module__(((s./UrbanDict/SOAP.pysRecursionErrorssUnknownTypeErrorcBstZRS(N(s__name__s __module__(((s./UrbanDict/SOAP.pysUnknownTypeErrorss HTTPErrorcBs tZdZdZeZRS(NcCs||_||_dS(N(scodesselfsmsg(sselfscodesmsg((s./UrbanDict/SOAP.pys__init__s cCsd|i|ifSdS(Ns(sselfscodesmsg(sself((s./UrbanDict/SOAP.pys__str__s(s__name__s __module__s__init__s__str__s__repr__(((s./UrbanDict/SOAP.pys HTTPErrors  cCs5h}x$|iD]\}}||||||<|d<|d<|d<|d<|d<|d (s__name__s __module__s_SOAPConfig__readonlysNones__init__s __setattr__(((s./UrbanDict/SOAP.pys SOAPConfigs  #sanyTypecBstZeieieieifZeededZ dZ e Z dZ dZ dZdZdZd Zd Zd Zd Zd ZdZdZdZRS(NicCs|itjo tdnt|ttfjo|\|_|_ n |i d|f\|_|_ ||_ h|_ t|_|i|_|i||_|tjo|i|ndS(Ns&anyType can't be instantiated directlyi(sselfs __class__sanyTypesErrorstypesnamesListTypes TupleTypes_nss_names _validURIsstypeds_typeds_attrssNones_caches _typeNames_types_checkValueSpacesdatas_datasattrss _setAttrs(sselfsdatasnamestypedsattrs((s./UrbanDict/SOAP.pys__init__6s     cCsF|io!d|i|it|fSnd|it|fSdS(Ns <%s %s at %d>s <%s at %d>(sselfs_names __class__sid(sself((s./UrbanDict/SOAP.pys__str__Is !cCs|SdS(N(sdata(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpacePscCst|iSdS(N(sstrsselfs_data(sself((s./UrbanDict/SOAP.pys _marshalDataSsc Cs{d}xj|iiD]Y\}}|i||d\}}||d||dt i t |df7}qW|SdS(Nsis %s%s="%s"i(sasselfs_attrssitemssattrsvaluesbuildersgennssns_mapsnssnscgisescapesstr(sselfsns_mapsbuildersasattrsvaluesnsns((s./UrbanDict/SOAP.pys _marshalAttrsVs  5cCst|ttfjot|f}nDt|tjot|}n!t|tjo tdnt |djo tdnt|dt ttfjo tdn|SdS(Nsinvalid attribute typeisinvalid attribute lengthis$invalid attribute namespace URI type( stypesattrs StringTypes UnicodeTypesNonesListTypestuples TupleTypesAttributeErrorslensNoneType(sselfsattr((s./UrbanDict/SOAP.pys_fixAttr`s    cCs0|i|}y|i|SWn tSnXdS(N(sselfs_fixAttrsattrs_attrssNone(sselfsattr((s./UrbanDict/SOAP.pys_getAttrps cCs&|i|}t||i||ddjodd|d|d|dtjp|ddfjo tdnt|_nti|||dS(Nisencodingisbase64shexsinvalid encoding( sselfs_fixAttrsattrsNonesvaluesAttributeErrors_cachesanyTypes_setAttr(sselfsattrsvalue((s./UrbanDict/SOAP.pys_setAttrs $  ( s__name__s __module__sNSsXSDsENCs _validURIssNones__init__s _marshalDatas_checkValueSpaces_setAttr(((s./UrbanDict/SOAP.pys binaryTypes  s anyURITypecBs&tZeifZdZdZRS(NcCsV|tjotd|int|ttfjotd|in|SdS(Nsmust supply initial %s valuesinvalid %s type( sdatasNones ValueErrorsselfs_typestypes StringTypes UnicodeTypesAttributeError(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaces  cCs4|itjoti|i|_n|iSdS(N(sselfs_cachesNonesurllibsquotes_data(sself((s./UrbanDict/SOAP.pys _marshalDatas(s__name__s __module__sNSsXSD3s _validURIss_checkValueSpaces _marshalData(((s./UrbanDict/SOAP.pys anyURITypes  suriTypecBstZeifZRS(N(s__name__s __module__sNSsXSDs _validURIs(((s./UrbanDict/SOAP.pysuriTypessuriReferenceTypecBstZeifZRS(N(s__name__s __module__sNSsXSD2s _validURIs(((s./UrbanDict/SOAP.pysuriReferenceTypess NOTATIONTypecBstZededZRS(NicCs:|itjo tdnti|||||dS(Ns)a NOTATION can't be instantiated directly( sselfs __class__s NOTATIONTypesErrorsanyTypes__init__sdatasnamestypedsattrs(sselfsdatasnamestypedsattrs((s./UrbanDict/SOAP.pys__init__s (s__name__s __module__sNones__init__(((s./UrbanDict/SOAP.pys NOTATIONTypess ENTITIESTypecBstZdZdZRS(NcCs|tjotd|int|ttfjo |fSnt|tt fjpt d|ot d|in|SdS(Nsmust supply initial %s valuecCst|ttfjS(N(stypesxs StringTypes UnicodeType(sx((s./UrbanDict/SOAP.pysssinvalid %s type( sdatasNones ValueErrorsselfs_typestypes StringTypes UnicodeTypesListTypes TupleTypesfiltersAttributeError(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaces  ,cCsdi|iSdS(Ns (sjoinsselfs_data(sself((s./UrbanDict/SOAP.pys _marshalDatas(s__name__s __module__s_checkValueSpaces _marshalData(((s./UrbanDict/SOAP.pys ENTITIESTypes s IDREFSTypecBstZRS(N(s__name__s __module__(((s./UrbanDict/SOAP.pys IDREFSTypess NMTOKENSTypecBstZRS(N(s__name__s __module__(((s./UrbanDict/SOAP.pys NMTOKENSTypess integerTypecBstZdZRS(NcCsV|tjotd|int|ttfjotd|in|SdS(Nsmust supply initial %s valuesinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaces  (s__name__s __module__s_checkValueSpace(((s./UrbanDict/SOAP.pys integerTypessnonPositiveIntegerTypecBs)tZeieieifZdZRS(NcCsc|tjotd|int|ttfjp |djotd|in|SdS(Nsmust supply initial %s valueisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaces  &(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysnonPositiveIntegerType ssnon_Positive_IntegerTypecBstZeifZdZRS(NcCsdSdS(Nsnon-positive-integer((sself((s./UrbanDict/SOAP.pys _typeNames(s__name__s __module__sNSsXSDs _validURIss _typeName(((s./UrbanDict/SOAP.pysnon_Positive_IntegerTypes snegativeIntegerTypecBs)tZeieieifZdZRS(NcCsc|tjotd|int|ttfjp |djotd|in|SdS(Nsmust supply initial %s valueisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpace!s  &(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysnegativeIntegerTypessnegative_IntegerTypecBstZeifZdZRS(NcCsdSdS(Nsnegative-integer((sself((s./UrbanDict/SOAP.pys _typeName-s(s__name__s __module__sNSsXSDs _validURIss _typeName(((s./UrbanDict/SOAP.pysnegative_IntegerType*s slongTypecBs)tZeieieifZdZRS(NcCsp|tjotd|int|ttfjp|djp |djotd|in|SdS(Nsmust supply initial %s valuellsinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpace3s  3(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pyslongType0ssintTypecBs)tZeieieifZdZRS(NcCsp|tjotd|int|ttfjp|djp |djotd|in|SdS(Nsmust supply initial %s valuelisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaceAs  3(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysintType>ss shortTypecBs)tZeieieifZdZRS(NcCsp|tjotd|int|ttfjp|djp |djotd|in|SdS(Nsmust supply initial %s valueiisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaceOs  3(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pys shortTypeLssbyteTypecBs)tZeieieifZdZRS(NcCsp|tjotd|int|ttfjp|djp |djotd|in|SdS(Nsmust supply initial %s valueiisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpace]s  3(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysbyteTypeZssnonNegativeIntegerTypecBs)tZeieieifZdZRS(NcCsc|tjotd|int|ttfjp |djotd|in|SdS(Nsmust supply initial %s valueisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaceks  &(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysnonNegativeIntegerTypehssnon_Negative_IntegerTypecBstZeifZdZRS(NcCsdSdS(Nsnon-negative-integer((sself((s./UrbanDict/SOAP.pys _typeNamews(s__name__s __module__sNSsXSDs _validURIss _typeName(((s./UrbanDict/SOAP.pysnon_Negative_IntegerTypets sunsignedLongTypecBs)tZeieieifZdZRS(NcCsp|tjotd|int|ttfjp|djp |djotd|in|SdS(Nsmust supply initial %s valueilsinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpace}s  3(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysunsignedLongTypezssunsignedIntTypecBs)tZeieieifZdZRS(NcCsp|tjotd|int|ttfjp|djp |djotd|in|SdS(Nsmust supply initial %s valueilsinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaces  3(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysunsignedIntTypessunsignedShortTypecBs)tZeieieifZdZRS(NcCsp|tjotd|int|ttfjp|djp |djotd|in|SdS(Nsmust supply initial %s valueiisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaces  3(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysunsignedShortTypessunsignedByteTypecBs)tZeieieifZdZRS(NcCsp|tjotd|int|ttfjp|djp |djotd|in|SdS(Nsmust supply initial %s valueiisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaces  3(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pysunsignedByteTypesspositiveIntegerTypecBs)tZeieieifZdZRS(NcCsc|tjotd|int|ttfjp |djotd|in|SdS(Nsmust supply initial %s valueisinvalid %s value(sdatasNones ValueErrorsselfs_typestypesIntTypesLongType(sselfsdata((s./UrbanDict/SOAP.pys_checkValueSpaces  &(s__name__s __module__sNSsXSD2sXSD3sENCs _validURIss_checkValueSpace(((s./UrbanDict/SOAP.pyspositiveIntegerTypesspositive_IntegerTypecBstZeifZdZRS(NcCsdSdS(Nspositive-integer((sself((s./UrbanDict/SOAP.pys _typeNames(s__name__s __module__sNSsXSDs _validURIss _typeName(((s./UrbanDict/SOAP.pyspositive_IntegerTypes s compoundTypecBshtZeededZdZdZdZdZedZded Z gd Z RS( NicCs||itjo tdnti|||||g|_ h|_ g|_ t |tjo|ii|ndS(Ns)a compound can't be instantiated directly(sselfs __class__s compoundTypesErrorsanyTypes__init__sdatasnamestypedsattrss_aslists_asdicts_keyordstypesDictTypes__dict__supdate(sselfsdatasnamestypedsattrs((s./UrbanDict/SOAP.pys__init__s    cCs3t|tjo|i|Snt||SdS(N(stypesitemsIntTypesselfs_aslistsgetattr(sselfsitem((s./UrbanDict/SOAP.pys __getitem__scCst|iSdS(N(slensselfs_aslist(sself((s./UrbanDict/SOAP.pys__len__scCsdSdS(Ni((sself((s./UrbanDict/SOAP.pys __nonzero__scCstd|iiSdS(NcCs|ddjS(Nis_(sx(sx((s./UrbanDict/SOAP.pyss(sfiltersselfs__dict__skeys(sself((s./UrbanDict/SOAP.pys_keysscCs|i}|i|oAt||tjo||g||5ss,isinvalid Array dimensionssinvalid Array offset(&sdatastypesListTypes TupleTypesErrorsUserLists__init__sselfs compoundTypesnamesattrss elemsnames _elemsnamesNonesranks_ranks _posstates_fullsasizesmapsstrssplits_dimssreverseslens_posssrangesis TypeErrorsoffsetsintsAttributeErrorsasbsjsappendscopysdeepcopy( sselfsdatasnamesattrssoffsetsranksasizes elemsnamesbsasisj((s./UrbanDict/SOAP.pys__init__sB    $ >    cCsu|io tdn|itidf}|tjo|i djo t dnd|_ yp|ddjo|ddjoDt d |dd!i d }|i t|djo|d}dgt|i}x[tt|iD]D}||i|||dss,s!invalid Array element position %ss=only elements in a sparse Array may have a position attribute(sselfs_fulls ValueErrorsattrssgetsNSsENCspossNones _posstatesAttributeErrorsmapssplitsreverseslens_dimsscurpossrangesisints Exceptionsstrs_posssdatasasvalue(sselfsnamesvaluesattrssasisposscurpos((s./UrbanDict/SOAP.pys_addItemTsj     ""            '  )c CsPdgt|i}x~tt|iD]g}|i|djo||d|tjo ||_n!y |`Wntj onXdS(N(sdetailsNonesselfsAttributeError(sselfsdetail((s./UrbanDict/SOAP.pys _setDetails    cCsd|i|ifSdS(Ns(sselfs faultcodes faultstring(sself((s./UrbanDict/SOAP.pys__repr__s(s__name__s __module__sNones__init__s _setDetails__repr__s__str__(((s./UrbanDict/SOAP.pys faultTypes  s RefHoldercBstZdZdZRS(NcCs=||_||_t||_|ii|d|_dS(Ni( snamesselfsframesparentslensposs namecountssgetssubpos(sselfsnamesframe((s./UrbanDict/SOAP.pys__init__s  cCs!d|i|it|fSdS(Ns <%s %s at %d>(sselfs __class__snamesid(sself((s./UrbanDict/SOAP.pys__repr__s(s__name__s __module__s__init__s__repr__(((s./UrbanDict/SOAP.pys RefHolders cCstidd|iSdS(Ns\s+s (sressubsssstrip(ss((s./UrbanDict/SOAP.pyscollapseWhiteSpacescCs2hdd<dd<dd<dd<d d <d d <d d<dd<dd<dd<dd<dd<dd<dd<dd<dd <d!d<d"d<d#d<d$d<d%d<d&d <}ti}d'}d}x8|t|jo$|||joPn|d7}qWd}x|t|jo||}|tijoPny||}Wn t j ot d(|nX|o"|t |d)|7}d}n |}d}|d7}q%W|o t d*nxG|t|jo3||tijot d(|n|d7}qW|SdS(+Ns0is1is2is3is4is5is6is7is8is9i sai sbi sci sdi seisfisAsBsCsDsEsFss!invalid hex string character `%s'isinvalid hex string length(sconvsstrings whitespaceswssbinsislensdataslowscsKeyErrors ValueErrorschrshigh(sdatasbinscsconvsishighswsslow((s./UrbanDict/SOAP.pysdecodeHexStringsB    cCs3d}x"|D]}|dt|7}q W|SdS(Nss%02X(shsdatasisord(sdatasish((s./UrbanDict/SOAP.pysencodeHexString s cCsA|djo0|ddjo|ddjp|ddjSdS(Niiiidi(smonthsyear(syearsmonth((s./UrbanDict/SOAP.pys leapMonth(sc Cstddfddfddfddfddff}ddddd dd ddd dd df }d d d d ddf}t|djo tdnxt|dD]x}||}t |t jo|djozyt |}Wn3tj o'|djont|}nX|||jotd||n|||(sselfs __class__snamesid(sself((s./UrbanDict/SOAP.pys__repr__s(s__name__s __module__sNones__init__sappends _placeItems__len__s__repr__(((s./UrbanDict/SOAP.pysFramejs   cCstiiii|t|_t|_h|_ t|_ d|_ |i dg|_ htiti<|_htiti<|_h|_h|_||_dS(NsEsSOAP(sxmlssaxshandlersContentHandlers__init__sselfsNonesbodysheadersattrss_datas_nextsFrames_stacksNSsXML_TsXMLs_prems_prem_rs_idss_refssruless_rules(sselfsrules((s./UrbanDict/SOAP.pys__init__s       cCs|dtjo|dddjot|ddf}n t|}|idjoz|ddjo&td|i|d|dfn|dtijo"t dti d|dfqd |_n|id jo`|dtijo|dd d fjo t|_qtd |i|dd |dn|idjoK|tid fjo t|_qtd|i|dd |dn9|idjo(td|i|dd |dnt |i djo |i }n-y|i di|d}Wn t}nXt|ttfjo |}n|itidf}|tjo\|itidf=|id }|djo#|i|| ||df}qt}n|i|i|d||i|d|_dS(Niis sEsEnvelopes)expected `SOAP-ENV:Envelope', got `%s:%s's%s:VersionMismatchs&Don't understand version `%s' EnvelopesHorBsHeadersBodys7expected `SOAP-ENV:Header' or `SOAP-ENV:Body', got `%s's:sBs"expected `SOAP-ENV:Body', got `%s'ssexpected nothing, got `%s'iis arrayType(snamesNonestuplesselfs_nextsErrors_prem_rsNSsENVs faultTypesENV_Tslens_stacks_rulessrulesstypesNoneTypesDictTypeskindsattrssgetsENCs_attrssfindsis_prems pushFramesFrames_data(sselfsnamesqnamesattrssrulessiskind((s./UrbanDict/SOAP.pysstartElementNSsH& &" + ( ((     # &cCs|ii|dS(N(sselfs_stacksappendsframe(sselfsframe((s./UrbanDict/SOAP.pys pushFramescCs|iiSdS(N(sselfs_stackspop(sself((s./UrbanDict/SOAP.pyspopFramescCs] |dtjo|dddjot|ddf\} }nt|\} }|idjo tdn|iddfjo tdn|i}|i }t}|i td foE|td f}|i i |otd |n|td f=nd}t|id jo|i tid fort|tid f}|djo|tjo td qn|djo tdn|tid f=qnxEno=|itdf}|o|ddjo tdn|itjo|iidjo tdn|d}|i i |o|i |} nRt||id} |ii |o|i|i| n| g|i|<|tdf=Pnt} |oxHtiD]=} |i | dfo!|| df} || df=qqW| tjoO| id} | djo#|i| | | | df} qst| f} qwnd}|oxQti!ti"fD]=} |i | dfo!|| df}|| df=qqW|i ti#dfo'|ti#df}|ti#df=nt$|i%ddgj}|oKt|p#|itjo|iidjo tdnt} Pqnt|idjo| |fti&dfjo$t'd||_(} d|_Pq| |fti&dfjo$t)d||_*} d|_Pqn^t|id jo |itjo7| |fti&d fjot+} d|_Pqn|i,tjo|i,} t.| t/t0fjot| f} n$t.| t1jot| } nt2| o| |i} nKt.| t3jot4d!| |fd|} n|i5|i| |} Pn| tjo |itjp| tid"fjo|i} | tjod#t|} n | d} t|i6djo|i7d}nt}|i9| |f| ||} Pnt|id joC| tjo6t|djo#|itjp|iidjo t4d!| |fd|} Pnt|djo | ti:jo1| tjo~|idi} | tjo@| did$} | djo| d| d| f} q4q8| tjo| |f} q8n| tjo<y|i5|i| |} Wqt;j o t} qXnt} | tjoE|ipd} t|djoyt$| } WqqXqnPnt4d!| |fd|} PqWt<| t=olxit>t|D]Q} |i?| }| iA|i7| ||iB| t<|to | |_Cq" q" Wn|o|idi|| |n|tjoo| |i |<|ii |oKx:|i|D]+} | iCiD| i| | iE| iF|q W|i|=q n||i tG| [^:]*):)?(?P[^[]+)(?:\[(?P,*)\])?(?:\[(?P\d+(?:,\d+)*)?\])$c Cs t|itjoti|i|_n|iti df}|t jo|ti df=yZ|ddjo|ddjo.t |dd!}|djo t qnt WqtdqXnd}y|ii|}|t jo t n|id}|d jo2tt ||||id |id |Sn|id t joKtt ||i|id |f|||id |id |Sn8tt |t |f|||id |id |SWntd |nXdS(Nsoffsetis[is]isinvalid Array offsetstypesur-typesranksasizesnssinvalid Array type `%s'(stypesselfsarrayres StringTypesrescompilesattrssgetsNSsENCsoffsetsNonesints ExceptionsAttributeErrorssearchskindsmsgroupsts arrayTypesnames elemsnamestypedArrayTypes_prem(sselfsnameskindsattrss elemsnamesmstsoffset((s./UrbanDict/SOAP.pys startArrays< "      ##sDATETIMECONSTSc BsxtZdZdZdZdZdZdZdZdZ d Z d Z d Z hd e<d e<de<de<de<de<de<de <de <de <de -?)s(?P\d{2,})s(?P\d{2})s(?P\d{2})s(?P\d{2})s(?P\d{2})s(?P\d{2})s(?P\d{2}(?:\.\d*)?)sA(?PZ)|(?P[-+])(?P\d{2}):(?P\d{2})s^\s*s\s*$ssignscenturysyearsmonthsdayshoursminutessecondstimezonesbsese%(b)s%(sign)s%(century)s%(year)s-%(month)s-%(day)sT%(hour)s:%(minute)s:%(second)s(%(timezone)s)?%(e)ss7%(b)s%(hour)s:%(minute)s:%(second)s(%(timezone)s)?%(e)ssF%(b)s%(sign)s%(century)s%(year)s-%(month)s-%(day)s(%(timezone)s)?%(e)ss,%(b)s%(sign)s%(century)s(%(timezone)s)?%(e)ss>%(b)s%(sign)s%(century)s%(year)s-%(month)s(%(timezone)s)?%(e)ss4%(b)s%(sign)s%(century)s%(year)s(%(timezone)s)?%(e)ss,%(b)s--%(month)s-%(day)s(%(timezone)s)?%(e)ss#%(b)s---%(day)s(%(timezone)s)?%(e)ss&%(b)s--%(month)s--(%(timezone)s)?%(e)ss%(b)s%(sign)s(%(century)s|-)(%(year)s|-)-(%(month)s|-)-(%(day)s|-)T(%(hour)s|-):(%(minute)s|-):(%(second)s|-)(%(timezone)s)?%(e)ss%(b)s%(sign)sP((?P\d+)Y)?((?P\d+)M)?((?P\d+)D)?((?PT)((?P\d+)H)?((?P\d+)M)?((?P\d*(?:\.\d*)?)S)?)?%(e)siii(!s__name__s __module__sSIGNres CENTURYresYEARresMONTHresDAYresHOURresMINUTEresSECONDres TIMEZONEresBOSresEOSres_DATETIMECONSTS__allressdateTimes timeInstants timePeriodstimesdatescenturys gYearMonthsgYearsyears gMonthDays recurringDatesgDays recurringDaysgMonthsmonthsrecurringInstantsdurations timeDurationsmonths(((s./UrbanDict/SOAP.pysDATETIMECONSTS s>i           cCsFd}dd}yt|i|}Wntj o tSnXt |t jo&t i |}t |i||n|i|} y| tjo tn| i} dddddd d f} t| }g}|d d fjoZ| d tjo0| dtjo| d tjo| d tjo tn| d} xtt| D]} | | | }|tjon| | d jot|}n3yt|}Wntj ot|}nX| |jo | }qn|i|q^W|t|jo tn| ddjo|| ||jo|i||dSq n|dti,jo#|dd?jot |Sq nt.d@|ddA|ddS(BNsiisintegers %s too smallis %s too largesstringsbooleans0sfalses1struesinvalid boolean valuesnansinff1.0000000000000001e+300s-infs invalid %ssdateTimesdates timeInstantstimesdecimalslanguagesQNamesNOTATIONsNMTOKENsNamesNCNamesIDsIDREFsENTITYsIDREFSsENTITIESsNMTOKENSsbase64s base64Binarys hexBinarysanyURIsnormalizedStringstokensbinarysencodingshexs"unknown or missing binary encodingsurisrecurringInstants uriReferences timePeriodscenturysyears timeDurations gYearMonths gMonthDaysgYearsgMonthsgDaysdurations recurringDatesmonths recurringDaysCDATAsunknown type `%s's:(/sdsdnnstsNSsEXSD_Lsintslensattrsslongsselfs intlimitsshas_keyslsNonesUnderflowErrors OverflowErrorsunicodesstrsstripslowersAttributeErrors floatlimitssssfloats ValueErrorstypes zerofloatres StringTypesrescompilessearchsconvertDateTimescollapseWhiteSpacessplitsXSD_Lsbase64s decodestringsdecodeHexStringsurllibsunquotesENCsXSDsesErrorsXSD2sXSD3sUnknownTypeError(sselfsdstsattrssdnnseslss((s./UrbanDict/SOAP.pys convertType@ s   ""           " ,    #(s__name__s __module__sFramesNones__init__sstartElementNSs pushFramespopFrames endElementNSs endDocumentsstartPrefixMappingsendPrefixMappings characterssarrayres startArraysDATETIMECONSTSsconvertDateTimes intlimitss floatlimitss zerofloatres convertType(((s./UrbanDict/SOAP.pys SOAPParseris&"  =       ,? '*cCsydkl}Wn tj odkl}nXtii}td|}|i |tii i }|i|tiii}|i|||itii id|i||SdS(N(sStringIOsrulesi(s cStringIOsStringIOs ImportErrorsxmlssaxs make_parsersparsers SOAPParsersrulesstssetContentHandlershandlers ErrorHandlersessetErrorHandlers xmlreaders InputSourcesinpsrcs setByteStreamsxml_strs setFeaturesfeature_namespacessparse(sxml_strsrulessesStringIOsparserstsinpsrc((s./UrbanDict/SOAP.pys _parseSOAP s   cCs2t|}|o|i|ifSn|iSdS(N(s _parseSOAPsxml_strstsattrssbody(sxml_strsattrsst((s./UrbanDict/SOAP.pys parseSOAP s c Cs't|d|} | iid}t|tdtdfjo|ddfjoNd}x5| ii i D]!}|ddjo |}qsqsWt |}n|p |p|ob|f}|o|| i f7}n|o|| if7}n|o|| if7}n|Sn|SdS(NsrulesisusResponses_(s _parseSOAPsxml_strsrulesstsbodys_aslistspstypesnames__dict__skeyssks structTypesheadersattrssret( sxml_strsheadersbodysattrssrulessnamespsksretst((s./UrbanDict/SOAP.pys parseSOAPRPC s&8 s SOAPBuilderc BstZdZdZdeiZdeiZheiei <ei ei <ei ei <eiei<eiei<eiei<eiei<eiei s$ s4%(ENV_T)s:Envelope %(ENV_T)s:encodingStyle="%(ENC)s"s isUTF-8ic Cs|tjodi|n||_||_||_||_||_||_||_ ||_ | |_ | |_ d|_ d|_d|_d|_h|_h|_d|_g|_d|_t|t |_dS(Nsii(sencodingsNonesencodesargssselfskwsenvelopesmethods namespacesheaders methodattrssuse_refssconfigsoutstcountersncountersicountersenvnssidssdepths multirefssmultiss isinstancesbodyTypesbody( sselfsargsskwsmethods namespacesheaders methodattrssenvelopesencodingsuse_refssconfig((s./UrbanDict/SOAP.pys__init__& s,                    cCsh}|ii}|io&|i|idd|t|_n|io?|id7_|i |t i d} |i d| 7_ n|io|id7_d}|io8x5|iiD] \} }|d| |f7}qWn|io|i ||i\} } nddf\} } |i d| |i| ||i|f7_ nyt|itjo|if}n |i}x'|D]} |i| d|d |qWx9|iiD](\} }|i|| d|d |qWWntj o|idjontd |id |id |id |id|id|id|i d|i!ddd|i }|i#SnnX|io/|i d| |if7_ |id8_n|ioed|_$x3|i%D](\}}|i||d|d |qW|i d| 7_ |id8_n|i oUt(d|i)i}d|i+di,dg|d|i |i-|_ n|i!tjo1|i.|i!|i |_ |i i/|i!Sn|i0|i SdS(NsHeaderstypediis <%sBody> ss %s="%s"s <%s%s%s%s%s> sns_mapsargsskwsmethods namespacesheaders methodattrssenvelopesencodingsuse_refssconfigs s cCsd|d|dfS(Ns xmlns:%s="%s"ii(sns(sns((s./UrbanDict/SOAP.pys ss (1sns_mapsselfsconfigstypedsheadersdumpsNonesbodysdepthsgennssNSsENVsbody_nssoutsmethodsas methodattrssitemssksvs namespacesmethodnssnsgenrootstypesargss TupleTypesiskwsRecursionErrorsuse_refss SOAPBuildersenvelopesencodingsbsbuildsmultiss multirefssobjstagsmapsenvnsses_env_topsjoins_env_bots _xml_enc_topsencodes_xml_top(sselfstagsns_mapstypedsargssesasbsobjsmethodnssisksnsbody_nssv((s./UrbanDict/SOAP.pysbuildC sr        2  $       :cCs|id7_d|iSdS(Nisv%d(sselfstcounter(sself((s./UrbanDict/SOAP.pysgentag scCsI|tjoddfSnt|tjo=t|djo|\}}qqt|df\}}nt}|i|o||ddfSn|i i|o2|i |}|i |<||<|ddfSn| o d|i }|i d7_ n|||<|i i o|dd||ffSndd|fSdS( Nsiis:sns%dis xmlns:%s="%s"s xmlns="%s"(snsURIsNonestypes TupleTypeslensnssns_mapshas_keysselfs_env_nssenvnssncountersconfigsbuildWithNamespacePrefix(sselfsns_mapsnsURIsns((s./UrbanDict/SOAP.pysgenns s&     cCsL|idjodSn|i|ti\}}d||i |fSdS(Niss %sroot="%d"%s( sselfsdepthsgennssns_mapsNSsENCsnssnsmultis(sselfsns_mapsnssn((s./UrbanDict/SOAP.pysgenroot scCs*|idjodSn|iit| ou|i}|it|<|d|_|idjodSn|idjo d|Sn|i i ||fnW|idjo t dn|it|}|i o |idjo d|Sn|id|||i|f7_tSdS(Nisiis id="i%d"s!Cannot serialize recursive objects<%s href="#i%d"%s/> (sselfsdepthsidsshas_keysidsobjsicountersnsuse_refss multirefssappendstagsRecursionErrorsmultissoutsgenrootsns_mapsNone(sselfsobjstagsns_mapsn((s./UrbanDict/SOAP.pyscheckref s"    %c Cs|i}|id7_t|tttfjo t dny3t |dt|i }|||||Wnrtj oft|tjo d}nt|i }|i|it||||||i|7_nX|id8_dS(Nistag must be a string or Nonesdump_sinteger(sns_mapscopysselfsdepthstypestagsNoneTypes StringTypes UnicodeTypesKeyErrorsgetattrsobjs__name__smethstypedsAttributeErrorsLongTypesobj_typesoutsdumpersNonesgenroot(sselfsobjstagstypedsns_mapsobj_typesmeth((s./UrbanDict/SOAP.pysdump s   ss;<%(tag)s%(type)s%(id)s%(attrs)s%(root)s>%(data)s c Cs|tjo|ii}n|p |i}d} } }|o|oN|i ||\} } |i ||iid}d|| || f}ny|i||} WnnXy|i} Wn |} nX| hd|<d|<d| <d|<d|<d | <SdS( Nsis %stype="%s%s"%sstagstypesdatasrootsidsattrs(snsURIsNonesselfsconfigstypesNamespaceURIstagsgentagsasnststypedsobj_typesgennssns_mapsnssschemaNamespaceURIsinssobjs _marshalAttrss _marshalDatasdatasxmlsrootattrsid(sselfsnsURIsobj_typesobjstagstypedsns_mapsrootattrsidsxmlsdatasnsasnssinsst((s./UrbanDict/SOAP.pysdumper s"  c Cst oG|tddjo d}qO|tdd jo d}qOnt|}|ddfjot|i}n|djo d}n|i|itd |||||i |7_dS( Nf1.0000000000000001e+300isINFs-INFsinfs-infsnansNaNsfloat( s good_floatsobjsfloatsstrsuppersselfsoutsdumpersNonestagstypedsns_mapsgenroot(sselfsobjstagstypedsns_map((s./UrbanDict/SOAP.pys dump_float s    c Cs|p |i}|i|||}|tjodSny|i}Wn |}nX|i |i tdt i |||||i||7_ dS(Nsstring(stagsselfsgentagscheckrefsobjsns_mapsidsNones _marshalDatasdatasoutsdumperscgisescapestypedsgenroot(sselfsobjstagstypedsns_mapsdatasid((s./UrbanDict/SOAP.pys dump_string s  "cCsX|p |i}|i||iid}|id|||i |f7_dS(Nis<%s %snull="1"%s/> ( stagsselfsgentagsgennssns_mapsconfigsschemaNamespaceURIsnssoutsgenroot(sselfsobjstagstypedsns_mapsns((s./UrbanDict/SOAP.pys dump_None0 scCsZt|tjo |i}n|}|p |i}|i|||} | t jodSny|d}d}Wnt }d}nXd}| ocx`|dD]P}t|t|jp#t|tjo|i|ijo d}PqqWnd} |o%t|t pt|tjomy|ipti}Wnti}nX|i||\} } y ti}Wn d}nX| |}qSt|toX|i|i i!|i i"} | o)|i|| \} } | |i#}q/d}qS|i||i i!dt|i$}n!|i||i i!dd}y|i%||}Wn d}nX|i|ti'\} } |i||i i*\}}|i-d|| |t.||| | | ||i/|| |f 7_-| }y |i1}Wn d}nXx$|D]}|i3||||q#W|i-d|7_-dS( Niiss SOAPStructsur-types7<%s %sarrayType="%s[%d]" %stype="%sArray"%s%s%s%s%s%s> sitems (4stypesobjs InstanceTypesdatastagsselfsgentagscheckrefsns_mapsidsNonessamplesemptys structTypes same_typesis __class__sndecls isinstancesDictTypes_nssNSsURNstnssgennssnsslasts _typenamestypenamestsanyTypes_validNamespaceURIsconfigstypesNamespaceURIsstrictNamespacess_types__name__s _marshalAttrssasENCsenssedeclsschemaNamespaceURIsinssideclsoutslensgenrootstypeds _elemsnames elemsnamesdump(sselfsobjstagstypedsns_maps elemsnamesideclsinsssamplesidsndeclsedeclsenssnssemptys same_typesdatasastnssistypenamest((s./UrbanDict/SOAP.pys dump_list6 st       ? #    -  F  c Cs|p |i}|i|||}|tjodSny|i||}Wn d}nX|i d||||i |f7_ xE|i D]7\}}|ddjo|i||d|qqW|i d|7_ dS(Nss <%s%s%s%s> is_is (stagsselfsgentagscheckrefsobjsns_mapsidsNones _marshalAttrssasoutsgenrootsitemssksvsdump( sselfsobjstagstypedsns_mapsasvsksid((s./UrbanDict/SOAP.pysdump_dictionary s  ( c Cs| o7t|to|io |i}q?|i}nt|to|i||||dSnt|t o|i |t i\} }|i |t i\}}|id|| |||i|if7_t|do|i|id||n|id|7_dSn|i|}y|i||}Wn d}nXt|to'|id||||f7_dSn|i|||} | t!jodSnt|t"od} |i$|i%i&|i%i'} | o&|i || \} } | |}n|id|| | ||f7_d}x/|i*D]!}||i,jo d}PqRqRW|oHxt-t.|i,D]*}|i|i/||i,|d|qWnLxH|i0i1D]7\}}|dd jo|i||d|qqWt|t4oCd|_5x7|i6D](\}}|i||d |d |q4Wn|id |7_nIt|tod}|o|i$|i%i&|i%i'} | oV|i || \} }|i ||i%i:\}}d || |i=||f}qn|id||| |||i>|f7_n{|id|| |f7_xH|i0i1D]7\}}|dd jo|i||d|ququW|id |7_dS(NsQ<%sFault %sroot="1"%s%s> %s %s sdetails ss<%s%s%s> s <%s%s%s%s%s> iis_stypedsns_maps s %stype="%s%s"%s%ss<%s%s%s%s%s>%s s <%s%s%s> (?stags isinstancesobjsanyTypes_namesselfsgentags arrayTypes dump_liststypedsns_maps faultTypesgennssNSsENCscnsscdeclsENVsvnssvdeclsouts faultcodes faultstringshasattrsdumpsdetailsgenrootsrs _marshalAttrssasvoidTypescheckrefsidsNones structTypesndecls_validNamespaceURIsconfigstypesNamespaceURIsstrictNamespacessnssorders_keyssis_keyordsrangeslens_aslists__dict__sitemssksvsbodyTypesmultiss multirefsstsonssondeclsschemaNamespaceURIsinssindecls_types _marshalData(sselfsobjstagstypedsns_mapsondeclscdeclsinssindeclsonssidsndeclscnssnssvnssasvdeclsisksrstsvsorder((s./UrbanDict/SOAP.pys dump_instance s +  "  ,   $ $2 (-s__name__s __module__s_xml_tops _xml_enc_topsNSs__dict__s_env_tops_env_botsENCsENC_TsENVsENV_TsXSDsXSD_TsXSD2sXSD2_TsXSD3sXSD3_TsXSIsXSI_TsXSI2sXSI2_TsXSI3sXSI3_Ts_env_nssNonesConfigs__init__sbuildsgentagsgennssgenrootscheckrefsdumpsdumpers dump_floats dump_strings dump_unicodesdump_strs dump_Nones dump_lists dump_tuplesdump_dictionarys dump_dicts dump_instance(((s./UrbanDict/SOAP.pys SOAPBuilder s.  ~' U    UsUTF-8c CsMtd|d|d|d|d|d|d|d|d | } | i SdS( Nsargsskwsmethods namespacesheaders methodattrssenvelopesencodingsconfig( s SOAPBuildersargsskwsmethods namespacesheaders methodattrssenvelopesencodingsconfigstsbuild( sargsskwsmethods namespacesheaders methodattrssenvelopesencodingsconfigst((s./UrbanDict/SOAP.pys buildSOAP scCsdtdSdS(NsSOAP.py s (actzero.com)(s __version__(((s./UrbanDict/SOAP.pys SOAPUserAgent ss SOAPAddresscBs#tZedZdZeZRS(NcCs ti|\}}|dd!djo3|tjo|d|}nd|}d}nti|\}}yt |d|}WnnX| o d}n|ddfjo t d n|djo|i o t d n||_||_||_dS( Niis//s:shttps localhost:s/shttpssunsupported SOAP protocols4SSL client not supported by this Python installation(surllibs splittypesurlsprotosurisNones splithostshostspathsintsIOErrorsconfigs SSLclientsAttributeErrorsself(sselfsurlsconfigsprotosurishostspath((s./UrbanDict/SOAP.pys__init__ s*         cCsd|iSdS(Ns%(proto)s://%(host)s%(path)s(sselfs__dict__(sself((s./UrbanDict/SOAP.pys__str__7 s(s__name__s __module__sConfigs__init__s__str__s__repr__(((s./UrbanDict/SOAP.pys SOAPAddress s s HTTPTransportcBstZdeeedZRS(NscCs.dk} t|t ot||}n|o%|} |id|i|i } n|i} |i } |idjo| i | }n| i | }|id| |id|i|idtd}|tjo|d|7}n|id||id tt||id d ||iojd } t| d | |ifGHdG|iGHdtdGHdG|GHdGt|GHd|GHt| n|i|io8d} t| |G|ddjoHnt| n|i ||i!\}}} |i%ogd} t| | i$o0d||fGHdi&t'd| i$GHnd||fGHt| n|i(oJ|i)i*}d} t| |G|ddjoHnt| n|ddfjot+||n|i( o|i)i*}n|SdS(Ns://shttpssPOSTsHosts User-agentstext/xmls; charset="%s"s Content-typesContent-lengths SOAPActions"%s"sOutgoing HTTP headerss POST %s %ssHost:sUser-agent: SOAP.py s (actzero.com)s Content-type:sContent-length:sSOAPAction: "%s"s Outgoing SOAPis sIncoming HTTP headerssHTTP/1.? %d %scCs |iS(N(sxsstrip(sx((s./UrbanDict/SOAP.pys ssHTTP/0.9 %d %ss Incoming SOAPii(,shttplibs isinstancesaddrs SOAPAddresssconfigs http_proxys real_addrsprotoshostspaths real_pathsHTTPSsrsHTTPs putrequests putheaders SOAPUserAgentstsencodingsNonesstrslensdatas soapactionsdumpHeadersOutsss debugHeaders _http_vsn_strs __version__s debugFooters endheaderss dumpSOAPOutssendsgetreplyscodesmsgsheaderss dumpHeadersInsjoinsmaps dumpSOAPInsgetfilesreads HTTPError(sselfsaddrsdatas soapactionsencodings http_proxysconfigscodesmsgs real_addrshttplibs real_pathsheaderssssrst((s./UrbanDict/SOAP.pyscall? sz                 !   (s__name__s __module__sNonesConfigscall(((s./UrbanDict/SOAP.pys HTTPTransport= ss SOAPProxyc BsitZedeeedddeed ZeeeedZdZdZdfd YZ RS( NssUTF-8ic Cs|tjodi|nt|| |_||_||_||_ ||_ ||_ ||_||_ | |_ | |_| |_dS(Ns(sencodingsNonesencodes SOAPAddresssproxysconfigsselfs namespaces soapactionsheaders methodattrss transports throw_faultssunwrap_resultss http_proxy( sselfsproxys namespaces soapactionsheaders methodattrss transportsencodings throw_faultssunwrap_resultss http_proxysconfig((s./UrbanDict/SOAP.pys__init__ s          cCsN|p|i}|p|i}|o%t|tjo|d}qUn |i}|o%t|tjo|d}qn |i }|p|i }|o%t|tjo|d}qn |i}|p|i}t d|d|d|d|d|d|d|id |i} |ii|i| |d|id |id |i}t|d d \} }y|io t| t} Wn d} nX| o | n|iowyid} xE| i i!D]4} | dd jo| d 7} t#| | }qqW| d jo |} nWq+q+Xn|ii%o| |fSn| SdS(Nisargsskwsmethods namespacesheaders methodattrssencodingsconfigs http_proxysattrsis_(&snssselfs namespacesmas methodattrsssastypes TupleTypes soapactionshdsheaders buildSOAPsargsskwsnamesencodingsconfigsms transportscallsproxys http_proxysrs parseSOAPRPCspsattrss throw_faultss isinstances faultTypes throw_structsunwrap_resultsscounts__dict__skeyssisgetattrstsreturnAllAttrs(sselfsnamesargsskwsnsssashdsmasattrss throw_structscountsismspsrst((s./UrbanDict/SOAP.pys__call sX          cCs|it|hSdS(N(sselfs_SOAPProxy__callsNonesbody(sselfsbody((s./UrbanDict/SOAP.pys _callWithBody scCs:|djo t|n|i|i|d|iSdS(Ns__del__sconfig(snamesAttributeErrorsselfs_SOAPProxy__Methods_SOAPProxy__callsconfig(sselfsname((s./UrbanDict/SOAP.pys __getattr__ s  s__MethodcBsDtZeeeeedZdZdZdZdZRS(NcCs||_||_||_||_||_ ||_ ||_|iddjo6|iddgjo|i|_q|i|_n |i|_dS(Nis_s__repr__s__str__(scallsselfs _Method__callsnames _Method__namesnss _Method__nsssas _Method__sashds _Method__hdsmas _Method__masconfigs_Method__configs__repr__s__call__s_Method__f_calls_Method__r_call(sselfscallsnamesnsssashdsmasconfig((s./UrbanDict/SOAP.pys__init__s       cCs|djo t|n|iddjo/|i|i||i|i|i|i Sn|i|id|i|f|i|i|i|i SdS(Ns__del__is_s%s.%s( snamesAttributeErrorsselfs _Method__names __class__s _Method__calls _Method__nss _Method__sas _Method__hds _Method__ma(sselfsname((s./UrbanDict/SOAP.pys __getattr__s  cOs||idjo ||_nX|idjo ||_n;|idjo ||_n|idjo ||_n|SdS(Ns_nss_sas_hds_ma(sselfs _Method__namesargss _Method__nss _Method__sas _Method__hds _Method__ma(sselfsargsskw((s./UrbanDict/SOAP.pys__f_calls    cOs2|i|i|||i|i|i|iSdS(N( sselfs _Method__calls _Method__namesargsskws _Method__nss _Method__sas _Method__hds _Method__ma(sselfsargsskw((s./UrbanDict/SOAP.pys__r_call%scCsd|it|fSdS(Ns <%s at %d>(sselfs __class__sid(sself((s./UrbanDict/SOAP.pys__repr__)s( s__name__s __module__sNonesConfigs__init__s __getattr__s_Method__f_calls_Method__r_calls__repr__(((s./UrbanDict/SOAP.pys__Method s   ( s__name__s __module__sNones HTTPTransportsConfigs__init__s_SOAPProxy__calls _callWithBodys __getattr__s_SOAPProxy__Method(((s./UrbanDict/SOAP.pys SOAPProxy s '?  s MethodSigcBs tZdddZdZRS(NicCs+||_||_||_|i|_dS(N(sfuncsselfskeywordsscontexts__name__(sselfsfuncskeywordsscontext((s./UrbanDict/SOAP.pys__init__4s   cOst|i||SdS(N(sapplysselfsfuncsargsskw(sselfsargsskw((s./UrbanDict/SOAP.pys__call__:s(s__name__s __module__s__init__s__call__(((s./UrbanDict/SOAP.pys MethodSig3ss SOAPContextcBstZdZRS(NcCsC||_||_||_||_||_||_||_dS(N(sheadersselfsbodysattrssxmldatas connections httpheaderss soapaction(sselfsheadersbodysattrssxmldatas connections httpheaderss soapaction((s./UrbanDict/SOAP.pys__init__>s      (s__name__s __module__s__init__(((s./UrbanDict/SOAP.pys SOAPContext=ss HeaderHandlercBstZdZRS(NcCsx|iiD]}|ddjoqnt||}y't|t|t i df}Wn d}nX|ot dt i d|fqqWdS(Nis_smustUnderstands%s:MustUnderstandsIDon't understand `%s' header element but mustUnderstand attribute is set.(sheaders__dict__skeyssisgetattrsdsintsattrssidsNSsENVsfaults faultTypesENV_T(sselfsheadersattrssdsisfault((s./UrbanDict/SOAP.pys__init__Ls' (s__name__s __module__s__init__(((s./UrbanDict/SOAP.pys HeaderHandlerJss SOAPServercBstZdkZdeifdYZddfeddeeedZdZd d Z d ed Z d d Z d ed Z RS(NsSOAPRequestHandlercBs,tZdZdZdZdZRS(NcCs)ddtdtiiddSdS(Ns/sSOAP.py s (Python is)(s __version__ssyssversionssplit(sself((s./UrbanDict/SOAP.pysversion_stringescCs#tiii||_|iSdS(N(s SOAPServersBaseHTTPServersBaseHTTPRequestHandlersdate_time_stringsselfs*_SOAPRequestHandler__last_date_time_string(sself((s./UrbanDict/SOAP.pysdate_time_stringjsc CsI yE|iiioLd}t||iiGHdit d|i i GHt |n|i i t|i d} |iiio8d}t|| G| ddjoHnt |nt| ddd dd d\}}} }|i} |i} |i}|i}d }|od || f} n| } y|ii i!|o|ii |i!| o|ii || }n@|ii#|}| i$d }x|D]}t'||}qWWn_t(t)dt*i+d| dt,t-i.dd!d|ii/d|ii}d}nXy|ot1||}nt3|t4ot5}|i7o/t8|| || |i9|i |i d}n|i:o^h}x*|i<D]\}}||t?|t(dhd| hd|<wsscontent-lengths Incoming SOAPisheaderisbodysattrsss%s:%ss.s %s:ClientsNo method %s founds%s %siisencodingsconfigis soapactions _SOAPContextskws %sResponsesResultsMethod %s exceptions %s:ServersMethod %s failed.sdetailisReceived fault exceptionsInternal exceptionsHTTP/0.9sOutgoing HTTP headerss s%s %d%ssServer:sDate:stext/xmls; charset="%s"s Content-typesContent-lengths Content-type:sContent-length:s Outgoing SOAP(esselfsserversconfigs dumpHeadersInsss debugHeadersraw_requestlinesstripsjoinsmapsheaderss debugFootersrfilesreadsintsdatas dumpSOAPIns parseSOAPRPCsrsheadersbodysattrss_namesmethods_aslistsargss_asdictskws_nssnssrespsnsmethodsfuncmapshas_keysfsobjmapssplitslsisgetattrs buildSOAPs faultTypesNSsENV_Tstuplessyssexc_infosencodingsstatuss HeaderHandlersxs isinstances MethodSigsNonescscontexts SOAPContexts connectionskeywordssstrkwsitemssksvsstrsapplysfrstypesvoidTypes Exceptionses tracebacksinfos dumpFaultInfosprint_exceptionsreturnFaultInfos _setDetailsformat_exceptionshasattrs print_excs send_responses end_headerssdumpHeadersOutsrequest_versions responsessprotocol_versionsversion_strings*_SOAPRequestHandler__last_date_time_stringsts send_headerslens dumpSOAPOutswfileswritesflushs SSLserversSSLs Connections set_shutdownsSSL_SENT_SHUTDOWNsSSL_RECEIVED_SHUTDOWNsshutdown(sselfsstatuss tracebacksrespsfrsheadersattrssstrkwsnssmethodsbodysargssnsmethodsdatascsesfsisinfoskslsssrskwstsvsx((s./UrbanDict/SOAP.pysdo_POSTqs6  *    0      )          5#      5#                 &cGs.|iiotiii|||ndS(N( sselfsserverslogs SOAPServersBaseHTTPServersBaseHTTPRequestHandlers log_messagesformatsargs(sselfsformatsargs((s./UrbanDict/SOAP.pys log_messageKs (s__name__s __module__sversion_stringsdate_time_stringsdo_POSTs log_message(((s./UrbanDict/SOAP.pysSOAPRequestHandlerds   s localhosti@isUTF-8cCs|tjodi|n|tjo|i o tdn||_h|_ h|_ ||_||_||_||_ d|_ t ii|||dS(Nss4SSL server not supported by this Python installationi(sencodingsNonesencodes ssl_contextsconfigs SSLserversAttributeErrors namespacesselfsobjmapsfuncmapslogsallow_reuse_addresss SocketServers TCPServers__init__saddrsRequestHandler(sselfsaddrsRequestHandlerslogsencodingsconfigs namespaces ssl_context((s./UrbanDict/SOAP.pys__init__Ps          cCsytii|\}}|ioIti|i|}|i ||i djot i dqkn||fSdS(NisCouldn't accept SSL connection( s SocketServers TCPServers get_requestsselfssocksaddrs ssl_contextsSSLs Connections _setup_ssls accept_sslssocketserror(sselfsaddrssock((s./UrbanDict/SOAP.pys get_requesths  scCs+|djo |i}n||i|