cgilsxml.py: ajout de la variable script_base, qui permet de faire des urls relatives

This commit is contained in:
Jephté Clain 2016-02-04 13:52:09 +04:00
parent f4537af09f
commit 3190a32228
1 changed files with 1 additions and 0 deletions

View File

@ -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