[FIX] some more problems with werkzeug 0.9.1
bzr revid: nicolas.vanhoren@openerp.com-20130716131401-abj3i020a8831l98
This commit is contained in:
parent
7c4f374aca
commit
788071f34f
|
@ -778,7 +778,7 @@ class Database(http.Controller):
|
|||
return request.make_response(db_dump,
|
||||
[('Content-Type', 'application/octet-stream; charset=binary'),
|
||||
('Content-Disposition', content_disposition(filename))],
|
||||
{'fileToken': int(token)}
|
||||
{'fileToken': token}
|
||||
)
|
||||
except Exception, e:
|
||||
return simplejson.dumps([[],[{'error': openerp.tools.ustr(e), 'title': _('Backup Database')}]])
|
||||
|
@ -1273,7 +1273,7 @@ class Binary(http.Controller):
|
|||
return request.make_response(filecontent,
|
||||
headers=[('Content-Type', 'application/octet-stream'),
|
||||
('Content-Disposition', content_disposition(filename))],
|
||||
cookies={'fileToken': int(token)})
|
||||
cookies={'fileToken': token})
|
||||
|
||||
@http.route('/web/binary/upload', type='http', auth="user")
|
||||
def upload(self, callback, ufile):
|
||||
|
@ -1572,7 +1572,7 @@ class ExportFormat(object):
|
|||
headers=[('Content-Disposition',
|
||||
content_disposition(self.filename(model))),
|
||||
('Content-Type', self.content_type)],
|
||||
cookies={'fileToken': int(token)})
|
||||
cookies={'fileToken': token})
|
||||
|
||||
class CSVExport(ExportFormat, http.Controller):
|
||||
fmt = {'tag': 'csv', 'label': 'CSV'}
|
||||
|
|
Loading…
Reference in New Issue