o k`)@sjddlmZddlmZmZmZddlmZddlZddl m Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlmZmZmZddlmZmZmZmZmZddlmZmZdd l m!Z!m"Z"dd l#m$Z$m%Z%m&Z&dd l'm(Z(m)Z)m*Z*dd l+m,Z,dd l-m.Z.m/Z/GdddeZ0GdddeZ1ddZ2GdddeZ3Gdddee4Z5ddej67DZ8GdddeedZ9gZ:dde8DD]1Z;e8e;?d"re=d#dZ=d$e=Z=e@ejAeBe=e9Ce=e;e:De=q[;[=Gd%d&d&ejEZFGd'd(d(eGZHd)d*ZId+d,ZJGd-d.d.eZKGd/d0d0eZLGd1d2d2eMZNe:ZOdS)3)ABCMeta) CookieError BaseCookie SimpleCookie)BaseHTTPRequestHandlerN)datetime) Interface TracBaseError TracError)as_boolas_intget_last_tracebacklazynormalize_filename) http_datelocaltz)Fragmenttag)emptyexception_to_unicode to_unicode)_N_tag_)Href) _FileWrapperis_client_disconnect_exceptionc@seZdZdZddZdS)IAuthenticatorzZExtension point interface for components that can provide the name of the remote user.cCdS)z]Return the name of the remote user, or `None` if the identity of the user is unknown.Nreqrr./usr/lib/python3/dist-packages/trac/web/api.py authenticate.zIAuthenticator.authenticateN)__name__ __module__ __qualname____doc__r#rrrr"r*s rc@ eZdZdZddZddZdS)IRequestHandleranDecide which `trac.core.Component` handles which `Request`, and how. The boolean property `is_valid_default_handler` determines whether the `IRequestFilter` can be used as a `default_handler` and defaults to `True`. To be suitable as a `default_handler`, an `IRequestFilter` must return an HTML document and `data` dictionary for rendering the document, and must not require that `match_request` be called prior to `process_request`. The boolean property `jquery_noconflict` determines whether jQuery's `noConflict` mode will be activated by the handler, and defaults to `False`. cCr)z>Return whether the handler wants to process the given request.Nrr rrr" match_requestBr$zIRequestHandler.match_requestcCr)a3 Process the request. Return a `(template_name, data)` pair, where `data` is a dictionary of substitutions for the Jinja2 template (the template context, in Jinja2 terms). Optionally, the return value can also be a `(template_name, data, metadata)` triple, where `metadata` is a `dict` with hints for the template engine or the web front-end. Keys supported are: - `'content_type'`: the mimetype used for content delivery; "text/html" is assumed if the key is not present or the `metadata` was not specified - `'text'`: a boolean value indicating whether the Jinja2 auto-escaping feature should be deactivated (``text=True``) or not (``text=False``); defaults to ``False``, suitable for generating HTML or XML content - `'fragment'`: a boolean value indicating whether the generated content will be used as part of another page (``fragment=True``) or as a stand-alone page (``fragment=False``), the default - `'domain'`: a string value indicating the translation domain to which the translated strings in the template belong to Note that if template processing should not occur, this method can simply send the response itself (see `Request` methods) and not return anything, as the `Request` methods raise a `RequestDone` exception. :Since 1.0: Clearsilver templates are no longer supported. :Since 1.1.2: the rendering `method` (xml, xhtml or text) may be returned as a fourth parameter in the tuple, but if not specified it will be inferred from the `content_type` when rendering the template. :Since 1.3.2: returns a pair, or a tuple in which the third element is a `dict` instead of a string like in the old API. Note that the old API (`(template, data, content_type)` where `content_type` is a string or `None`) is still supported. When used, this means that `template` is a legacy Genshi template. :Since 1.5.1: Genshi templates are no longer supported. The third argument, `metadata`, will always be a `dict` or `None` when specified. Nrr rrr"process_requestEr$zIRequestHandler.process_requestN)r%r&r'r(r+r,rrrr"r*3s r*cCs|ot|ddS)zReturns `True` if the `handler` is a valid default handler, as described in the `IRequestHandler` interface documentation. is_valid_default_handlerT)getattr)handlerrrr"r-}sr-c@r))IRequestFilterzEnable components to interfere with the processing done by the main handler, either before and/or after it enters in action. cCr)zCalled after initial handler selection, and can be used to change the selected handler or redirect request. Always returns the request handler, even if unchanged. Nr)r!r/rrr"pre_process_requestr$z"IRequestFilter.pre_process_requestcCr)aDo any post-processing the request might need This typically means adding values to the template `data` dictionary, or changing the Jinja2 template. `data` and `metadata` may be updated in place. Always returns a tuple of ``(template, data)`` or ``(template, data, metadata)``, even if unchanged. Note that `template`, `data`, `metadata` will be `None` if: - called when processing an error page - the default request handler did not return any result :Since 1.0: Clearsilver templates are no longer supported. :Since 1.1.2: the rendering `method` will be passed if it is returned by the request handler, otherwise `method` will be `None`. For backward compatibility, the parameter is optional in the implementation's signature. :Since 1.3.2: Genshi templates are still supported, and if `process_request` uses the old API (`(template, data, content_type)`), the `metadata` parameter passed to `post_process_request` will actually be the `content_type` value (`String` or `None`). :Since 1.5.1.: Genshi templates are no longer supported. `metadata` is always a `dict` or `None`. Nr)r!templatedatametadatarrr"post_process_requestr$z#IRequestFilter.post_process_requestN)r%r&r'r(r1r5rrrr"r0s r0c@seZdZdZedZdS)TracNotImplementedErrorzRaised when a `NotImplementedError` is trapped. This exception is for internal use and should not be raised by plugins. Plugins should raise `NotImplementedError`. :since: 1.0.11 zNot Implemented ErrorN)r%r&r'r(rtitlerrrr"r6s r6cCs"i|] \}\}}t||qSr)intr7).0codereason descriptionrrr" s r=csDeZdZdZfddZeddZeddZedd Z Z S) HTTPExceptionNcsZt|tr|j|_|j|_n||_|r|j||_d|j|jt|jf}t |dS)z"Factory for HTTPException classes.z %s %s (%s)N) isinstancer messagedetailr7r;r:rsuper__init__)selfrAargsarg __class__rr"rCs   zHTTPException.__init__cCs>t|jtr t|j}|St|jtr|j}|St|j}|SN)r?rA Exceptionrrr)rDr@rrr"r@s    zHTTPException.messagecCs`z#td}|jr!||jvr|j}W|Std|jd}W|SW|Sty/d}Y|Sw)NErrorzError: %(message)s)r@)rr;lowerrJ)rDr7rrr"r7s zHTTPException.titlecCs6t|d}t|tfdd||fi}||_||_|S)z=Create a new Exception class representing a HTTP status code.Unknownr(zException for HTTP %d %s) HTTP_STATUSgettyper>r:r;)clsnamer:r; new_classrrr"subclasss  zHTTPException.subclass) r%r&r'r:rCpropertyr@r7 classmethodrT __classcell__rrrGr"r>s   r>) metaclasscCsg|]}|dkr|qS)ir)r9r:rrr" rY -httpHTTPc@r)) _FieldStoragez1Our own version of cgi.FieldStorage, with tweaks.cCs tdS)Nzwb+)tempfile TemporaryFilerDrrr" make_file  z_FieldStorage.make_filecOs>ztjj|g|Ri|WdSty|YdSwrI)cgi FieldStorage read_multi ValueError read_single)rDrEkwargsrrr"ris   z_FieldStorage.read_multiN)r%r&r'r(rerirrrr"ras rac@steZdZdZdddZdddZdddZdd d Zdd d Zdd dZ ddZ ddZ ddZ ddZ ddZdS) _RequestArgszoDictionary subclass that provides convenient access to request parameters that may contain multiple values.NcCs |||S)zReturn the first value for the specified parameter, or `default` if the parameter was not provided. :since 1.3.2: aliases `getfirst`. Use `getlist` if the value is expected to be a list. )getfirstrDrRdefaultrrr"rOs z_RequestArgs.getcCs ||vr|St|||||S)aReturn the value as an integer. Return `default` if if an exception is raised while converting the value to an integer. :param name: the name of the request parameter :keyword default: the value to return if the parameter is not specified or an exception occurs converting the value to an integer. :keyword min: lower bound to which the value is limited :keyword max: upper bound to which the value is limited :since: 1.2 )r rO)rDrRrpminmaxrrr"r $sz_RequestArgs.as_intcCs||vr|St|||S)aReturn the value as a boolean. Return `default` if if an exception is raised while converting the value to a boolean. :param name: the name of the request parameter :keyword default: the value to return if the parameter is not specified or an exception occurs converting the value to a boolean. :since: 1.2 )r rOrorrr"r 6s z_RequestArgs.as_boolcCs`||vr|S||}t|trttdt|dt|d}|dur.ttdt|d|S)aSReturn the value as a boolean. Raise an `HTTPBadRequest` exception if an exception occurs while converting the value to a boolean. :param name: the name of the request parameter :keyword default: the value to return if the parameter is not specified. :since: 1.2 ,Invalid value for request argument %(name)s.rRN)r?listHTTPBadRequestrremr )rDrRrpvaluerrr"getboolFs   z_RequestArgs.getboolcCs@||vr|St||d||}|durttdt|d|S)aReturn the value as an integer. Raise an `HTTPBadRequest` exception if an exception occurs while converting the value to an integer. :param name: the name of the request parameter :keyword default: the value to return if the parameter is not specified :keyword min: lower bound to which the value is limited :keyword max: upper bound to which the value is limited :since: 1.2 Nrsrt)r rvrrrw)rDrRrprqrrrxrrr"getint]s z_RequestArgs.getintcCs*||vr|S||}t|tr|d}|S)zReturn the first value for the specified parameter, or `default` if the parameter was not provided. :since 1.3.2: `get` aliases `getfirst` and should be used instead. rr?ru)rDrRrpvalrrr"rnrs  z_RequestArgs.getfirstcCs(||vrgS||}t|ts|g}|S)zjReturn a list of values for the specified parameter, even if only one value was provided. r{)rDrRr|rrr"getlists  z_RequestArgs.getlistcCs||}||S)zReturn a tuple of the filename, file object and file size. :param name: the name of the request parameter :since: 1.3.3 )rn_getfile)rDrRuploadrrr"getfiles  z_RequestArgs.getfilecsfdd|DS)zReturn a list of tuples containing the filename, file object and file size. :param name: the name of the request parameter :since: 1.3.3 csg|]}|qSr)r~)r9rrdrr"rYz,_RequestArgs.getfilelist..)r}rDrRrrdr" getfilelistsz_RequestArgs.getfilelistcCs"||vrttdt|ddS)zRaise an `HTTPBadRequest` exception if the parameter is not in the request. :param name: the name of the request parameter :since: 1.2 zPMissing request argument. The %(name)s argument must be included in the request.rtN)rvrrrwrrrr"requiresz_RequestArgs.requirecCsd}}}t|drt|j}t|drH|j}t|dr5z t|d}Wn tjy4d}Ynw|durH| dd| }| d|||fS)Nfilenamefilefilenor) hasattrrrrosfstatrioUnsupportedOperationseektell)rDrrfileobjsizerrr"r~s        z_RequestArgs._getfilerI)NNN)r%r&r'r(rOr r ryrzrnr}rrrr~rrrr"rms         rmcCsg}|s|S|d}|dD]I}|dd}t|dkr#|\}}n|dt}}tj|dd}t|t r>t |d }tj|dd}t|t rRt |d }| ||fq|S) z}Parse a query string into a list of `(name, value)` tuples. :Since 1.1.2: a leading `?` is stripped from `query_string`.?&=rr+r[utf-8) lstripsplitlenrurllibparseunquotereplacer?bytesstrappend) query_stringrErFnvrRrxrrr"parse_arg_lists"        rcCsXt}|D]$\}}||vr%t||tr|||q|||g||<q|||<q|S)zDConvert a list of `(name, value)` tuples into into a `_RequestArgs`.)rmr?rur)arg_listrErRrxrrr"arg_list_to_argss  rc@seZdZdZdZdddZdS) RequestDonezjMarker exception that indicates whether request processing has completed and a response was sent. NcCs ||_dSrI)iterable)rDrrrr"rCs zRequestDone.__init__rI)r%r&r'r(rrCrrrr"rsrc@s$eZdZdddZejZddZdS)CookieFcCsD|r g|_|j|_t|||r|j|_|jD]}||=qdSdSrI) bad_cookies _loose_set_BaseCookie__setrload _strict_set)rDrawdataignore_parse_errorskeyrrr"rs  z Cookie.loadcCsP||vrdSz ||||WdSty'|j|t||dYdSwrI)rrrrdict __setitem__)rDr real_value coded_valuerrr"rs  zCookie._loose_setNF)r%r&r'rrrrrrrrr"rs  rc@seZdZdZedZhdZedZddZ ddZ d d Z e d d Z e d dZeddZeddZeddZeddZeddZeddZeddZeddZedd Zed!d"Zd#d$Zd%d&ZdWd(d)Zd*d+ZdXd-d.ZdYd0d1Zed2Z dZd4d5Z!d[d7d8Z" 6 9d\d:d;Z#dd?Z%dXd@dAZ&dBZ'dCdDZ(e)dXdEdFZ* ' ,d]dGdHZ+dIdJZ,dKdLZ-dMdNZ.dOdPZ/dQdRZ0dSdTZ1dUdVZ2d,S)^RequestzcRepresents a HTTP request/response pair. This class provides a convenience API over WSGI. z[\x00-\x08\x0a-\x1f\x7f]> cache-controletagpragmaexpireslocation content-typecontent-lengthz[-0-9A-Za-z!#$%&'*+.^_`|~]+\ZcCs||_||_d|_d|_d|_d|_g|_t|_t j ddt j t j t j ddd|_g|_|jd|_|js=||_t|j|_t|j|_dS)aCreate the request wrapper. :param environ: The WSGI environment dict :param start_response: The WSGI callback for starting the response :param callbacks: A dictionary of functions that are used to lazily evaluate attribute lookups Nz200 OKcSs t|jSrI)rrr rrr"'s z"Request.__init__..cSsdSrIrr rrr"r+r$)rrE languagesincookie _inheaderslocalez trac.base_url)environ_start_response_write_status _response _content_type _outheadersr outcookier_parse_arg_list_parse_languages_parse_cookies_parse_headers callbacksredirect_listenersrObase_url_reconstruct_urlr base_pathhrefabs_href)rDrstart_responserrr"rCs*  zRequest.__init__cCs0||jvr|j||}t||||St|)zbPerforms lazy attribute lookup by delegating to the functions in the callbacks dictionary.)rsetattrAttributeErrorrDrRrxrrr" __getattr__5s  zRequest.__getattr__cCs8|jdd}|j}|r|d|7}d|jj|j|fS)N PATH_INFOr\rz <%s "%s %r">)rrOrrHr%method)rDuriqsrrr"__repr__>s  zRequest.__repr__cCs|jo|jdkS)zPReturns `True` if `authname` is not `anonymous`. :since: 1.3.2 anonymous)authnamerdrrr"is_authenticatedGszRequest.is_authenticatedcCs|ddkS)zUReturns `True` if the request is an `XMLHttpRequest`. :since: 1.1.6 zX-Requested-WithXMLHttpRequest) get_headerrdrrr"is_xhrOszRequest.is_xhrcC |jdS)zThe HTTP method of the requestREQUEST_METHODrrdrrr"rW zRequest.methodcCsN|jdd}t|tr|d}zt|dWSty&ttd|dw)zPath inside the applicationrr\z iso-8859-1rz(Invalid URL encoding (was %(path_info)r)) path_info)rrOr?rencodeUnicodeDecodeError HTTPNotFoundr)rDrrrr"r\s    zRequest.path_infocC|jddS)zQuery part of the request QUERY_STRINGr\rrOrdrrr"rkzRequest.query_stringcCs |jdS)zIP address of the remote user REMOTE_ADDRrrdrrr" remote_addrps zRequest.remote_addrcCs |jd}|durt|SdS)zs Name of the remote user. Will be `None` if the user has not logged in using HTTP authentication. REMOTE_USERN)rrOr)rDuserrrr" remote_userus zRequest.remote_usercCs |jduSrI)rrdrrr"response_startedrfzRequest.response_startedcCr)zThe scheme of the request URLzwsgi.url_schemerrdrrr"schemerzRequest.schemecCr)z The root path of the application SCRIPT_NAMEr\rrdrrr"rrzRequest.base_pathcCr)zName of the server SERVER_NAMErrdrrr" server_namerzRequest.server_namecCst|jdS)z"Port number the server is bound to SERVER_PORT)r8rrdrrr" server_portrzRequest.server_portcCs|j|dS)zAdd a callable to be called prior to executing a redirect. The callable is passed the arguments to the `redirect()` call. N)rr)rDlistenerrrr"add_redirect_listenerszRequest.add_redirect_listenercCs,|}|jD] \}}||kr|SqdS)zsReturn the value of the specified HTTP header, or `None` if there's no such header in the request. N)rLr)rDrRrrxrrr"rs zRequest.get_headercCsd|t|df|_dS)z$Set the status code of the response.z%s %srMN)rNrOr)rDr:rrr" send_responseszRequest.send_responsecCs6|dkr|ddd|_|j|t|fdS)zSend the response header with the specified name and value. `value` must either be a `str` string or can be converted to one (e.g. numbers, ...) r;rrN)rLrrrrrrrrr" send_headers zRequest.send_headerNcCsH|jdkr|jdkr|dd||||j|j||_dS)zjMust be called after all headers have been sent and before the actual content is written. POST text/htmlzX-XSS-ProtectionrN) rrr_send_configurable_headers_send_cookie_headersrrrr)rDexc_inforrr" end_headerss   zRequest.end_headersr\cCst|trt}|D] }|t|dq |}d|jt ||f}| d}|r1||kr9| d|dS| d| dd| t) aCheck the request "If-None-Match" header against an entity tag. The entity tag is generated from the specified last modified time (`datetime`), optionally appending an `extra` string to indicate variants of the requested resource. That `extra` parameter can also be a list, in which case the MD5 sum of the list content will be used. If the generated tag matches the "If-None-Match" header of the request, this method sends a "304 Not Modified" response to the client. Otherwise, it adds the entity tag as an "ETag" header to the response so that consecutive requests can be cached. rz W/"%s/%s/%s"z If-None-MatchETag0Content-LengthrN)r?ruhashlibsha1updatereprr hexdigestrrrrrr r)rDrextrameltrinmrrr"check_modifieds     zRequest.check_modifiedz Trident/([0-9]+)Fc Cs$|jD]}||||q|rd}n |jdkrd}nd}|||ds>tj|jdd\}}tj|||dddf}|dkrhd|vrh|j d d }|j |}d |vrh|rbt |d d krh|dd}|d||dd|dd|dd|dd|dd|t)zSend a redirect to the client, forwarding to the specified URL. The `url` may be relative or absolute, relative URLs will be translated appropriately. i-ri/i.)zhttp://zhttps://Nr#HTTP_USER_AGENTr\z MSIE rrz #__msie303:Location Content-Type text/plainrrPragmazno-cache Cache-ControlExpiresFri, 01 Jan 1999 00:00:00 GMT)rrr startswithrrurlparser urlunparserrO _trident_researchr8grouprrr r) rDurl permanentrstatusrhost user_agent match_tridentrrr"redirects:            zRequest.redirectrcCs||||dSrI)_send)rDcontent content_typer*rrr"send sz Request.sendcCsg|_|||||dSrI)rr/)rDr r0r1r*rrr" send_error szRequest.send_errorcCs.|d|dd|dd|t)Nrrrr)rrr rrdrrr"send_no_contents   zRequest.send_no_contentc Cs*tj|sttd|dt|}t|jt }t |}|| dkr6| d| dd|t|sAt|dp@d}| d| d || d|j| d |t|d d }|rvt|d d}|rt| |tj|nd }||s|jdkrt|d}|jdt} | |d|_t)aSend a local file to the browser. This method includes the "Last-Modified", "Content-Type" and "Content-Length" headers in the response, corresponding to the file attributes. It also checks the last modification time of the local file against the "If-Modified-Since" provided by the user agent, and sends a "304 Not Modified" response if it matches. zFile %(path)s not found)pathzIf-Modified-Sincer rrzapplication/octet-streamrrz Last-Modified use_xsendfileFxsendfile_headerNHEADrbzwsgi.file_wrapper)rr7isfilerrstatr fromtimestampst_mtimerrrrrr r mimetypes guess_typest_sizer.abspathropenrrOrr) rDr7mimetyper>mtime last_modifiedr8r9r file_wrapperrrr" send_files<           zRequest.send_filecCs@|jd}|dur|d}|durd}nt|}||}|S)z9Read the specified number of bytes from the request body. wsgi.inputNr)rrr8read)rDrrr3rrr"rMEs   z Request.readr<c Cs|js|zS|j}d}g}|j}t|tr|g}|D],}t|tr'td|s*q|t|7}||||krH|d |d}d|dd<q|dkrX|d |WdSWdSt ym}zt |rht d}~ww)a Write the given data to the response body. *data* **must** be a `bytes` string or an iterable instance which iterates `bytes` strings, encoded with the charset which has been specified in the ``'Content-Type'`` header or UTF-8 otherwise. Note that when the ``'Content-Length'`` header is specified, its value either corresponds to the length of *data*, or, if there are multiple calls to `write`, to the cumulative length of the *data* arguments. rzCan't send str contentrN) rr  CHUNK_SIZErr?rrrjrjoinIOErrorrr)rDr3 chunk_sizebufsizebuf buf_appendchunkerrr"writeSs<     z Request.writecCs@|o||jvot|j|}|r|j| nd}||@S)zbCheck whether the field name, and optionally the value, make a valid HTTP header. T)rL_reserved_headersbool_valid_header_rematch_disallowed_control_codes_rer&)rQrRrx valid_name valid_valuerrr"is_valid_header{szRequest.is_valid_headercCsn|||dd|dd|d|dt|tr&|dt||||jdkr5||t) Nrzmust-revalidater r!rz;charset=utf-8rr:) rrr?rrr rrXr)rDr0r1r*r rrr"r/s       z Request._sendc Cs6|jd}|d}|rt|\}}|dvrt}|jdkr'|jdd}z t||jddd }Wn0t yH}z t t d t |d d }~wt yb}zt|r]t t d t |d d }~ww|jdkrm||jd<dd}g}|jpwdD] } | j} || | jr|| jn| j} || || | fqx|S)z]Parse the supplied request parameters into a list of `(name, value)` tuples. rKr)z!application/x-www-form-urlencodedzmultipart/form-datarrr\Tstrict)rkeep_blank_valueserrorsz&Invalid encoding in form data: %(msg)s)msgNz/Exception caught while reading request: %(msg)scSs |r d|vrttddSdS)NzInvalid request arguments.)rvr)rxrrr"raise_if_null_bytess  z4Request._parse_arg_list..raise_if_null_bytesr)rrrg parse_headerrBytesIOrpoprarrvrrrQrrurRrrxr) rDfpctypeoptions qs_on_postfsrWrfrErxrRrrr"rsP       zRequest._parse_arg_listcCs&t}|d}|r|j|dd|S)NrT)r)rrr)rDcookiesheaderrrr"rs  zRequest._parse_cookiescCsTdd|jD}d|jvr|d|jdfd|jvr(|d|jdf|S)NcSs6g|]\}}|dr|dddd|fqS)HTTP_Nrr])r"rrL)r9rRrxrrr"rYs"z*Request._parse_headers..CONTENT_LENGTHr CONTENT_TYPEr)ritemsr)rDheadersrrr"rs  zRequest._parse_headersc Cs|dpd}g}t|dD].\}}t|\}}d}d|vr5zt|d}Wn ty4d}Ynw|| ||fq|dd|DS) zoThe list of languages preferred by the remote user, taken from the ``Accept-Language`` header. zAccept-Languagezen-us,rqrcSsg|]\}}}|qSrr)r9rxir:rrr"rYrz,Request._parse_languages..) r enumeraterrgrgfloatrjrsort)rDrplangsrylangr:paramsrxrrr"rs zRequest._parse_languagescCsb|d}|s#ddd}|jr |j||jkr d|j|jf}n|j}tj|j||jdddfS)z5Reconstruct the absolute base URL of the application.HostPi)r^httpsz%s:%dN)rrrrrrr$r)rDr+ default_portrrr"rs   zRequest._reconstruct_urlcCsBdd|jD}t|dgD]\}}||vr|||qdS)NcSsg|]\}}|qSr)rL)r9rRr|rrr"rYrZz6Request._send_configurable_headers..configurable_headers)rr.rLr)rD sent_headersrRr|rrr"rs   z"Request._send_configurable_headerscCst|jD]!}|j|d}|r|dddddd}||j|d<qt|jjdd }|D] }|jd | fq4dS) Nr7r[z%20rz%3Brwz%3Cr\)rpz Set-Cookie) rurrOrroutput splitlinesrrstrip)rDrRr7rocookierrr"r s  zRequest._send_cookie_headers)rrI)r\r)rr)rr3)rrN)3r%r&r'r(recompiler]rYr[rCrrrrrrUrrrrrrrrrrrrrrr rr%r.r2r4r6rJrMrOrXrVr`r/rrrrrrr rrrr"rsz  "                 (   , (   3  r)Pabcr http.cookiesrrr http.serverrrgrrrrArrsysrb urllib.parser trac.corerr r trac.utilr r r rrtrac.util.datefmtrrtrac.util.htmlrrtrac.util.textrrrtrac.util.translationrrr trac.web.hrefr trac.web.wsgirrrr*r-r0NotImplementedErrorr6 responsesrurNr>_HTTPException_subclass_namesr:rexc_namerLr"rmodulesr%rTrrhrarrmrrrrobjectr __no_apidoc__rrrr"sl     J. 8    (