cgilsxml.py: ajouter de squery_string permettant d'ajouter un préfixe

This commit is contained in:
Jephté Clain 2016-02-08 09:34:02 +04:00
parent bb2571129d
commit da3ef60cc0
1 changed files with 6 additions and 4 deletions

View File

@ -218,15 +218,17 @@ def print_files(files, fgroups=None, select_group=None, script_name=None, xslt=N
fparams = urlparse.parse_qsl(fquery_string, keep_blank_values=True)
if includes or excludes or prefix:
xorig = ET.SubElement(xenv, "orig")
if query_string: query_string = u'?%s' % query_string
ET.SubElement(xorig, "query_string").text = query_string
if query_string:
ET.SubElement(xorig, "query_string").text = u'?%s' % query_string
ET.SubElement(xorig, "squery_string").text = u'&%s' % query_string
xvars = ET.SubElement(xorig, "query_vars")
for name, value in params:
ET.SubElement(xvars, name).text = value
query_string = fquery_string
params = fparams
if query_string: query_string = u'?%s' % query_string
ET.SubElement(xenv, "query_string").text = query_string
if query_string:
ET.SubElement(xenv, "query_string").text = u'?%s' % query_string
ET.SubElement(xenv, "squery_string").text = u'&%s' % query_string
xvars = ET.SubElement(xenv, "query_vars")
for name, value in params:
ET.SubElement(xvars, name).text = value