+
    DfjK                     H    ^ RI Ht  ! R R]P                  4      tR tR tR# )    )resourcec                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )RewriterResourcec                p    \         P                  P                  V 4       Wn         \        V4      V n        R # N)r   Resource__init__listrewriteRules)selforigr   s   &&*5/usr/lib/python3/dist-packages/twisted/web/rewrite.pyr	   RewriterResource.__init__	   s(    ""4( .    c                <    V P                    F  pV! V4       K  	  R # r   )r   )r   requestrewriteRules   && r   _rewriteRewriterResource._rewrite   s    ,,K  -r   c                2   VP                   P                  ^ V4       VP                  P                  4        V P	                  V4       VP                   P                  ^ 4      pVP                  P                  V4       V P                  P                  W4      # )r   )postpathinsertprepathpopr   appendr   getChildWithDefault)r   pathr   s   &&&r   getChildRewriterResource.getChild   sq    4(g##A&t$}}00??r   c                Z    V P                  V4       V P                  P                  V4      # r   )r   r   render)r   r   s   &&r   r!   RewriterResource.render   s#    g}}##G,,r   )r   r   N)
__name__
__module____qualname____firstlineno__r	   r   r   r!   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     /
!@- -r   r   c                 2   V P                   '       d   V P                   ^ ,          R,          R8X  dd   RV P                   ^ ,          R,          .V P                   R&   RRP                  V P                  V P                   ,           4      ,           V n        R# R# R# )r   :N   N~users:r+   NN/N)r   joinr   r   )r   s   &r   tildeToUsersr0      sv    G,,Q/3s: ')9)9!)<R)@ASXXgoo8H8H&HII ;r   c                \   a a SP                  R4      oS P                  R4      o V V3R lpV# )ay  
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.
r.   c                   < V P                   R \        S4       S8X  da   V P                   \        S4      R  pSV,           V n         RRP                  V P                  V P                   ,           4      ,           V n        R # R # )Nr.   )r   lenr/   r   r   )r   after	aliasPath
sourcePaths   & r   rewriteralias.<locals>.rewriter1   sj    ,c)n-:$$S^%56E)E1G'//G<L<L*L!MMGL ;r   )split)r5   r6   r7   s   ff r   aliasr:   %   s0     !!#&J$IN Or   N)twisted.webr   r   r   r0   r:    r   r   <module>r=      s'   
 !-x(( -.Jr   