From 3190a32228b8c8a4f8e9bcb237ffde89f7a47d17 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Thu, 4 Feb 2016 13:52:09 +0400 Subject: [PATCH] cgilsxml.py: ajout de la variable script_base, qui permet de faire des urls relatives --- lib/ulib/support/cgilsxml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ulib/support/cgilsxml.py b/lib/ulib/support/cgilsxml.py index a9e0c68..6899bec 100755 --- a/lib/ulib/support/cgilsxml.py +++ b/lib/ulib/support/cgilsxml.py @@ -183,6 +183,7 @@ def print_files(files, fgroups=None, select_group=None, script_name=None, query_ xenv = ET.SubElement(xresult, "env") if script_name is not None: ET.SubElement(xenv, "script_name").text = _u(script_name) + ET.SubElement(xenv, "script_base").text = _u(re.sub(r'[^/]+$', '', script_name)) if query_string is not None: query_string = _u(query_string) ET.SubElement(xenv, "query_string").text = query_string