[FIX] backwards-compatible controller decorator not backwards-compatible at all, replace with @route

bzr revid: xmo@openerp.com-20131015095331-r2xm2198zrwax0c7
This commit is contained in:
Xavier Morel 2013-10-15 11:53:31 +02:00
parent bd6efcfc14
commit f2feffe5e2
1 changed files with 3 additions and 5 deletions

View File

@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
import simplejson
import openerp
from openerp.addons.web.http import Controller, route
class ImportController(openerp.addons.web.http.Controller):
_cp_path = '/base_import'
@openerp.addons.web.http.httprequest
class ImportController(Controller):
@route('/base_import/set_file')
def set_file(self, req, file, import_id, jsonp='callback'):
import_id = int(import_id)