/usr/lib64/python2.6/site-packages/mx/URL
NameSizeModeActions
mxURL/-0755rm
COPYRIGHT10300644editdlrm
LazyModule.py44000644editdlrm
LazyModule.pyc42370644editdlrm
LazyModule.pyo42370644editdlrm
LICENSE45870644editdlrm
Listing.py34070644editdlrm
Listing.pyc34170644editdlrm
Listing.pyo34170644editdlrm
README1420644editdlrm
URL.py91160644editdlrm
URL.pyc89660644editdlrm
URL.pyo89110644editdlrm
__init__.py7210644editdlrm
__init__.pyc11820644editdlrm
__init__.pyo11820644editdlrm
Edit: /usr/lib64/python2.6/site-packages/mx/URL/URL.pyc (8966B)
Ñò ÆVHc@sÝdZddkZddkZddklZlZddkTddklZd„Zddd„Z e i hd d 6d d 6d d 6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6ƒd!d-d"„ƒYZ e i eeeieid#„Zeieieeieeed$„ZeZeZeZeZd.dd%d&eeie ieed'„ Z d%d&ei!eieeed(„Z"d)eeie#d*„Z$eiei!ed+„Z%e&d,„Z'dS(/sN mx.URL -- A URL datatype. Relies on mx.TextTools and mx.Tools. Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info@egenix.com See the documentation for further information on copyrights, or contact the author. All Rights Reserved. iÿÿÿÿN(tToolst TextTools(t*(t __version__cCs|||||ft|1 argument: 'name(arg0,arg1,arg2,...)' * arguments and keywords: 'name(arg0,arg1,kw0=val0,kw1=val1,...)' s%s=%ss()s%s%s(%s)t,RN(tmaptstrtitemsR(tnametargstkwstprefixtencodet urlencodeRRR)ttuplet argumentstlR!titemtrpc((s0/usr/lib64/python2.6/site-packages/mx/URL/URL.pyt rpcencode‰s  cCs>|o||ƒ}n||dƒ\}} | o®|| ddƒ\} } || dƒ} d| jodh} xatt| ƒƒD]C\} }d|jo*||dƒ\}}|| |<| | =q€q€Wnd} || ƒ} n d} d} |o9|||ƒ |jo|||ƒ}n|| | fS|| | fSdS(s Decode a RPC encoded function/method call. Returns a tuple (name,args,kws) where args is a tuple of string arguments and kws is a dictionary containing the given keyword parameters or None. All parameters are returned as strings; it is up to the caller to decode them into e.g. integers, etc. If prefix is given and found it is removed from the name prior to returning it. decode can be set to false to prevent the url from being urldecoded prior to processing. The decode function also supports the syntax 'method' instead of 'method()' for calls without arguments. t(t)iÿÿÿÿR,t=N((treverseR)tNone(turlR3tdecodetsplitatR&RR6t urldecodeR0trawargstrestR1R2R!targtktv((s0/usr/lib64/python2.6/site-packages/mx/URL/URL.pyt rpcdecode¸s.    t?c Csag}|i}x>|D]6\}}||||ƒƒd|||ƒƒƒqW|||dƒS(sO Takes a sequence of key,value items and formats a URL encoded query part out of it. Keys and values are converted to string prior to URL conversion. prefix is prepended to the resulting string. It defaults to '?' so that the returned value can directly be concatenated to a URL. R>t&(tappend( R/R3R5RR.R8RMRHRI((s0/usr/lib64/python2.6/site-packages/mx/URL/URL.pyt queryencodeës   .c Cs¿|o|ddjo|d}n|pgS||dƒ}g}xq|D]i}d|jo1||dƒ\}}||ƒ}||ƒ}n||ƒ}d}|i||fƒqNW|S(s Decodes a query string and returns a list of items (key, value). If query is prefixed with a question mark ('?'), this is silently ignored. Query parts which don't provide a value will get None assigned as value in the items list. iRKiRLR>N(R@RM( tqueryR&RCRDtpairsR/tpairtkeytvalue((s0/usr/lib64/python2.6/site-packages/mx/URL/URL.pyt querydecodes    cCs||ƒ}|ipƒ|id djo|iddƒS|id djo|iddƒS|id d jo|idd ƒS|iddƒSn|S( su Returns the URL url with scheme added according to common usage. If the url already provides a scheme, nothing is changed. Strings are turned into URL object by the function. These conventions are used: www. -> http://www. ftp. -> ftp://ftp. [/.] -> file:[/.] none of these -> http:// iswww.Rthttpsftp.tftpit/R tfile(RWR (Rtstringtrecode(RAtURL((s0/usr/lib64/python2.6/site-packages/mx/URL/URL.pyt addschemes  ((((t__doc__RYt mimetypestmxRRtmxURLRR RRtupdateRRRRRRR$R&R'R(R)R*R+R5RDtquotetunquoteR@RR6R;RCRJR.RNRTR[R\(((s0/usr/lib64/python2.6/site-packages/mx/URL/URL.pyt sZ      + 0