0001-backoffice-add-prefix-on-formdef-and-workflow-export.patch
wcs/admin/forms.py | ||
---|---|---|
1132 | 1132 |
response = get_response() |
1133 | 1133 |
response.set_content_type('application/x-wcs-form') |
1134 | 1134 |
response.set_header('content-disposition', |
1135 |
'attachment; filename=%s.wcs' % self.formdef.url_name) |
|
1135 |
'attachment; filename=form-%s.wcs' % self.formdef.url_name)
|
|
1136 | 1136 |
return '<?xml version="1.0" encoding="iso-8859-15"?>\n' + ET.tostring(x) |
1137 | 1137 | |
1138 | 1138 |
def archive(self): |
wcs/admin/workflows.py | ||
---|---|---|
1634 | 1634 |
response = get_response() |
1635 | 1635 |
response.set_content_type('application/x-wcs-form') |
1636 | 1636 |
response.set_header('content-disposition', |
1637 |
'attachment; filename=%s.wcs' % misc.simplify(self.workflow.name)) |
|
1637 |
'attachment; filename=workflow-%s.wcs' % misc.simplify(self.workflow.name))
|
|
1638 | 1638 |
return '<?xml version="1.0" encoding="utf-8"?>\n' + ET.tostring(x) |
1639 | 1639 | |
1640 | 1640 |
def get_new_status_form(self): |
1641 |
- |