--- a/app/soc/views/helper/params.py Thu Feb 19 20:30:47 2009 +0000
+++ b/app/soc/views/helper/params.py Thu Feb 19 20:44:37 2009 +0000
@@ -203,6 +203,7 @@
new_params['invite_template'] = 'soc/models/invite.html'
new_params['export_content_type'] = None
+ new_params['export_extension'] = '.txt'
# TODO: Use only the js modules needed instead of js_uses_all
new_params['js_uses_all'] = DEF_JS_USES_LIST
--- a/app/soc/views/models/base.py Thu Feb 19 20:30:47 2009 +0000
+++ b/app/soc/views/models/base.py Thu Feb 19 20:44:37 2009 +0000
@@ -61,8 +61,6 @@
DEF_CREATE_INSTRUCTION_MSG_FMT = ugettext(
'Please select a %s for the new %s.')
- DEF_EXPORT_EXTENSION = '.txt'
-
def __init__(self, params=None):
"""
@@ -226,8 +224,8 @@
response_args = {'mimetype': params['export_content_type']}
- export_extension = params.get('export_extension',
- self.DEF_EXPORT_EXTENSION)
+ export_extension = params['export_extension']
+
response_headers = {
'Content-Disposition': 'attachment; filename=%s%s' % (
entity.link_id, export_extension),