/usr/lib/python3/dist-packages/twisted/web/__pycache__
NameSizeModeActions
client.cpython-310.pyc578890644editdlrm
demo.cpython-310.pyc7750644editdlrm
distrib.cpython-310.pyc122830644editdlrm
domhelpers.cpython-310.pyc88800644editdlrm
error.cpython-310.pyc131210644editdlrm
guard.cpython-310.pyc5280644editdlrm
html.cpython-310.pyc16740644editdlrm
http.cpython-310.pyc966750644editdlrm
http_headers.cpython-310.pyc87120644editdlrm
iweb.cpython-310.pyc313510644editdlrm
microdom.cpython-310.pyc302510644editdlrm
proxy.cpython-310.pyc100340644editdlrm
resource.cpython-310.pyc151370644editdlrm
rewrite.cpython-310.pyc22660644editdlrm
script.cpython-310.pyc64210644editdlrm
server.cpython-310.pyc259950644editdlrm
soap.cpython-310.pyc45010644editdlrm
static.cpython-310.pyc329660644editdlrm
sux.cpython-310.pyc169110644editdlrm
tap.cpython-310.pyc100280644editdlrm
template.cpython-310.pyc12190644editdlrm
twcgi.cpython-310.pyc102500644editdlrm
util.cpython-310.pyc6090644editdlrm
vhost.cpython-310.pyc57850644editdlrm
wsgi.cpython-310.pyc161300644editdlrm
xmlrpc.cpython-310.pyc200150644editdlrm
_element.cpython-310.pyc63360644editdlrm
_flatten.cpython-310.pyc145810644editdlrm
_http2.cpython-310.pyc378270644editdlrm
_newclient.cpython-310.pyc527690644editdlrm
_responses.cpython-310.pyc27210644editdlrm
_stan.cpython-310.pyc88560644editdlrm
_template_util.cpython-310.pyc304340644editdlrm
__init__.cpython-310.pyc4230644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/web/__pycache__/rewrite.cpython-310.pyc (2266B)
o ¯bKã@s2ddlmZGdd„dejƒZdd„Zdd„ZdS) é)Úresourcec@s,eZdZdd„Zdd„Zdd„Zdd„Zd S) ÚRewriterResourcecGs tj |¡||_t|ƒ|_dS©N)rÚResourceÚ__init__ÚlistÚ rewriteRules)ÚselfÚorigr©r ú5/usr/lib/python3/dist-packages/twisted/web/rewrite.pyr s zRewriterResource.__init__cCs|jD]}||ƒqdSr)r)r ÚrequestÚ rewriteRuler r r Ú_rewrites  ÿzRewriterResource._rewritecCsH|j d|¡|j ¡| |¡|j d¡}|j |¡|j ||¡S)Nr)ÚpostpathÚinsertÚprepathÚpoprÚappendrÚgetChildWithDefault)r Úpathr r r r ÚgetChilds     zRewriterResource.getChildcCs| |¡|j |¡Sr)rrÚrender)r r r r r rs  zRewriterResource.renderN)Ú__name__Ú __module__Ú __qualname__rrrrr r r r rs  rcCs`|jr,|jddd…dkr.d|jddd…g|jdd…<dd |j|j¡|_dSdSdS)Nréú~Úusersú/)rÚjoinrr)r r r r Ú tildeToUserss þr!cs&ˆ d¡‰ˆ d¡‰‡‡fdd„}|S)a• I am not a very good aliaser. But I'm the best I can be. If I'm aliasing to a Resource that generates links, and it uses any parts of request.prepath to do so, the links will not be relative to the aliased path, but rather to the aliased-to path. That I can't alias static.File directory listings that nicely. However, I can still be useful, as many resources will play nice. rcsR|jdtˆƒ…ˆkr'|jtˆƒd…}ˆ||_dd |j|j¡|_dSdS)Nr)rÚlenr rr)r Úafter©Ú aliasPathÚ sourcePathr r Úrewriter1s  ýzalias..rewriter)Úsplit)r%r&r'r r$r Úalias%s r)N)Ú twisted.webrrrr!r)r r r r Ús