Rename last occurence of ExportToModel.model attribute (bis)

This commit is contained in:
Benjamin Dauvergne 2011-06-21 20:07:27 +00:00
parent eff0600970
commit 964c3e941d
1 changed files with 2 additions and 2 deletions

View File

@ -768,13 +768,13 @@ class ExportToModelDirectory(Directory):
def _q_index(self):
response = get_response()
response.content_type = self.wfstatusitem.model.content_type
response.content_type = self.wfstatusitem.model_file.content_type
response.set_header('location', '..')
if response.content_type != 'text/html':
response.set_header('content-disposition',
'attachment; filename="%s"' %
self.wfstatusitem.model.base_filename)
self.wfstatusitem.model_file.base_filename)
return self.wfstatusitem.apply_template_to_formdata(self.formdata)
def char2rtf(c):