[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:
parent
bd6efcfc14
commit
f2feffe5e2
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue