Files
project_v19/web_replace_url/models/__pycache__/middleware.cpython-312.pyc
T

11 lines
2.2 KiB
Plaintext
Raw Normal View History

2026-07-01 14:41:49 +07:00
Ë
<jIãóPddlZddlZddlmZddlmZmZmZmZm Z Gdd«Z
y)éN)Úconfig)ÚtoolsÚapiÚfieldsÚmodelsÚ_có"eZdZdZdZdZdZy)ÚURLRewriteMiddlewarez8WSGI middleware to rewrite 'odoo' in URLs to custom basecó||_y)N)Úapp)Úselfr s ú6/mnt/extra-addons/web_replace_url/models/middleware.pyÚ__init__zURLRewriteMiddleware.__init__ s ؈ócóB ddlm}|tjdd««}|j «5}t j |tji«}|dj«jdd«cddd«S#1swYyxYw#t$rYywxYw) z.Get replacement value from ir.config_parameterr)ÚRegistryÚdatabaseÚpostgreszir.config_parameterzweb.base.sorturlÚN) Úodoo.modules.registryrÚ odoo_configÚgetÚcursorrÚ EnvironmentÚodooÚ SUPERUSER_IDÚsudoÚ get_paramÚ Exception)r
rÚregistryÚcrÚenvs rÚ_get_replacementz%URLRewriteMiddleware._get_replacementsð Ý ¤ §¡°
¸JÓ GÓHˆÓ
[ —oo b¬$×*;Ñ*;¸@ØÐ1×8×BÐCUÐWYÓ
[÷
[ò
[ûôò Ùð ús/2B´ABÁ< BÂBÂ BÂBÂ BÂBcóú|jdd«}|j«}|rFd|vrBd|vr>|jd|d«}||d<|jdd«jd|d«|d<|j||«S)NÚ PATH_INFOrrz /web/staticéÚ REQUEST_URI)rr#Úreplacer )r
ÚenvironÚstart_responseÚpathÚ replacementÚnew_paths rÚ__call__zURLRewriteMiddleware.__call__s…Ø{‰{˜;¨ÓØ× ñ ˜6 T™>¨mÀ4Ñ.GØ—|| F¨K¸Ó;ˆHØ#+ˆG Ø%,§[¡[°ÀÓ%C×%KÑ%KÈFÐT_ÐabÓ%cˆG x‰x˜ Ó0rN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rr#r.©rrr