[FIX] base_import, web: error messages related to data import modules
OPW 777366
This commit is contained in:
@@ -37,7 +37,7 @@ except ImportError:
|
||||
FILE_TYPE_DICT = {
|
||||
'text/csv': ('csv', True, None),
|
||||
'application/vnd.ms-excel': ('xls', xlrd, 'xlrd'),
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': ('xlsx', xlsx, 'xlrd >= 0.8'),
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': ('xlsx', xlsx, 'xlrd >= 1.0.0'),
|
||||
'application/vnd.oasis.opendocument.spreadsheet': ('ods', odf_ods_reader, 'odfpy')
|
||||
}
|
||||
EXTENSIONS = {
|
||||
|
||||
@@ -1214,7 +1214,7 @@ class Export(http.Controller):
|
||||
"""
|
||||
return [
|
||||
{'tag': 'csv', 'label': 'CSV'},
|
||||
{'tag': 'xls', 'label': 'Excel', 'error': None if xlwt else "XLWT required"},
|
||||
{'tag': 'xls', 'label': 'Excel', 'error': None if xlwt else "XLWT 1.3.0 required"},
|
||||
]
|
||||
|
||||
def fields_get(self, model):
|
||||
|
||||
Reference in New Issue
Block a user