Commit fe058a65 authored by matjaz's avatar matjaz

Corrected error in web export_package functionality.

parent 201ce907
...@@ -1228,6 +1228,7 @@ def export_package(request, packages): ...@@ -1228,6 +1228,7 @@ def export_package(request, packages):
except: except:
return HttpResponse(status=400) return HttpResponse(status=400)
newuid = (request.GET.get('newuid', 'False').lower()=='true' or request.GET.get('n', 'False').lower()=='true') newuid = (request.GET.get('newuid', 'False').lower()=='true' or request.GET.get('n', 'False').lower()=='true')
updateuid = (request.GET.get('updateuid', 'False').lower()=='true' or request.GET.get('u', 'False').lower()=='true')
all = (request.GET.get('all', 'False').lower()=='true' or request.GET.get('a', 'False').lower()=='true') all = (request.GET.get('all', 'False').lower()=='true' or request.GET.get('a', 'False').lower()=='true')
try: try:
verbosity = int(request.GET.get('v', '1')) verbosity = int(request.GET.get('v', '1'))
...@@ -1245,7 +1246,7 @@ def export_package(request, packages): ...@@ -1245,7 +1246,7 @@ def export_package(request, packages):
ov = OutWriter() ov = OutWriter()
from workflows.management.commands.export_package import export_package_string from workflows.management.commands.export_package import export_package_string
result = export_package_string(ov.write, packagesArray, newuid, all, verbosity) result = export_package_string(ov.write, packagesArray, newuid, updateuid, all, verbosity)
content = '----------------------------------------\n' + \ content = '----------------------------------------\n' + \
'Export procedure message:' +\ 'Export procedure message:' +\
"\n----------------------------------------\n" +\ "\n----------------------------------------\n" +\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment