[FIX] bunch of broken stuff over http requests in new routing thing
authorXavier Morel <xmo@openerp.com>
Fri, 15 Nov 2013 12:48:19 +0000 (13:48 +0100)
committerXavier Morel <xmo@openerp.com>
Fri, 15 Nov 2013 12:48:19 +0000 (13:48 +0100)
commit0ece469392fd6c4bc986cc9e49cede7577a11469
treec2b7b12dada453b2368ec0cd088fdfb50b44c3a4
parent321d4681e14d7b8789bdddebfbb9aa6f83d2bdb0
[FIX] bunch of broken stuff over http requests in new routing thing

* make ModelConverter use its regex for data extraction so
  replacements can just fixup the request and don't have to mess with
  _uid

* replace routing_map property by method, for unknown reasons the
  property does not work at least overridden (it's not found) and I
  don't care enough to wonder why

* arguments result from MapAdapter.match() is a mapping, not a
  sequence. Iterate through values()/itervalues() otherwise we'll
  never get a browse_record to do the uid substitution on, only
  strings (params names)

* inject arguments from URL map/match into the function before
  executing it, this was apparently lost during the transition

* reintroduce get_db_router for third-party code needing to generate
  URLs

bzr revid: xmo@openerp.com-20131115124819-bp4gjpfdlda2qyf5
openerp/addons/base/ir/ir_http.py
openerp/http.py