equal
deleted
inserted
replaced
59 'a New %(entity_type)s</a> page.') |
59 'a New %(entity_type)s</a> page.') |
60 |
60 |
61 DEF_CREATE_INSTRUCTION_MSG_FMT = ugettext( |
61 DEF_CREATE_INSTRUCTION_MSG_FMT = ugettext( |
62 'Please select a %s for the new %s.') |
62 'Please select a %s for the new %s.') |
63 |
63 |
64 DEF_EXPORT_EXTENSION = '.txt' |
|
65 |
|
66 def __init__(self, params=None): |
64 def __init__(self, params=None): |
67 """ |
65 """ |
68 |
66 |
69 Args: |
67 Args: |
70 params: This dictionary should be filled with the parameters |
68 params: This dictionary should be filled with the parameters |
224 |
222 |
225 template = params['export_template'] |
223 template = params['export_template'] |
226 |
224 |
227 response_args = {'mimetype': params['export_content_type']} |
225 response_args = {'mimetype': params['export_content_type']} |
228 |
226 |
229 export_extension = params.get('export_extension', |
227 export_extension = params['export_extension'] |
230 self.DEF_EXPORT_EXTENSION) |
228 |
231 response_headers = { |
229 response_headers = { |
232 'Content-Disposition': 'attachment; filename=%s%s' % ( |
230 'Content-Disposition': 'attachment; filename=%s%s' % ( |
233 entity.link_id, export_extension), |
231 entity.link_id, export_extension), |
234 } |
232 } |
235 |
233 |