cgilsxml.py: ajouter de squery_string permettant d'ajouter un préfixe
This commit is contained in:
parent
bb2571129d
commit
da3ef60cc0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue