[FIX] use AbstractModel, use session.db to ir_http dispatch for none controllers
bzr revid: al@openerp.com-20131110135406-r0cyxhnve3jl8r2i
This commit is contained in:
parent
afbec17f77
commit
c396149f4f
|
@ -50,8 +50,9 @@ class ModelsConverter(werkzeug.routing.BaseConverter):
|
|||
def to_url(self, value):
|
||||
return ",".join([i.id for i in value])
|
||||
|
||||
class ir_http(osv.osv):
|
||||
class ir_http(osv.AbstractModel):
|
||||
_name = 'ir.http'
|
||||
|
||||
_description = "HTTP routing"
|
||||
|
||||
def __init__(self, registry, cr):
|
||||
|
|
|
@ -970,7 +970,7 @@ class Root(object):
|
|||
request = self.get_request(httprequest)
|
||||
|
||||
with set_request(request):
|
||||
db = request.db
|
||||
db = request.session.db
|
||||
if db:
|
||||
openerp.modules.registry.RegistryManager.check_registry_signaling(db)
|
||||
result = request.registry['ir.http']._dispatch()
|
||||
|
|
Loading…
Reference in New Issue