cgilsxml.py: ajout de la variable script_base, qui permet de faire des urls relatives
This commit is contained in:
parent
f4537af09f
commit
3190a32228
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue