[FIX] some more problems with werkzeug 0.9.1

bzr revid: nicolas.vanhoren@openerp.com-20130716131548-aa60tcfn3zwchqd0
This commit is contained in:
niv-openerp 2013-07-16 15:15:48 +02:00
parent f8480b69be
commit 3885ee3330
1 changed files with 3 additions and 3 deletions

View File

@ -812,7 +812,7 @@ class Database(openerpweb.Controller):
return req.make_response(db_dump,
[('Content-Type', 'application/octet-stream; charset=binary'),
('Content-Disposition', content_disposition(filename, req))],
{'fileToken': int(token)}
{'fileToken': token}
)
except xmlrpclib.Fault, e:
return simplejson.dumps([[],[{'error': e.faultCode, 'title': _('Backup Database')}]])
@ -1320,7 +1320,7 @@ class Binary(openerpweb.Controller):
return req.make_response(filecontent,
headers=[('Content-Type', 'application/octet-stream'),
('Content-Disposition', content_disposition(filename, req))],
cookies={'fileToken': int(token)})
cookies={'fileToken': token})
@openerpweb.httprequest
def upload(self, req, callback, ufile):
@ -1627,7 +1627,7 @@ class ExportFormat(object):
headers=[('Content-Disposition',
content_disposition(self.filename(model), req)),
('Content-Type', self.content_type)],
cookies={'fileToken': int(token)})
cookies={'fileToken': token})
class CSVExport(ExportFormat, http.Controller):
_cp_path = '/web/export/csv'