Christophe Matthieu
8460122209
[MERGE] sync with trunk
...
bzr revid: chm@openerp.com-20131202150856-fzrfcoa8pmsjutau
2013-12-02 16:08:56 +01:00
Fabien Meghazi
5b6512bb65
[REM] httprequests exception serialization moved to web client
...
bzr revid: fme@openerp.com-20131128180816-s8e2xpcdk0j403s5
2013-11-28 19:08:16 +01:00
Christophe Simonis
28581cc734
[MERGE] manual forward port of changes made in http dispatching in saas-2 branch since last web revid 3865 dle@openerp.com-20131023113414-mlwppd4d7vyh1tyj
...
bzr revid: chs@openerp.com-20131125165804-0d25q1vn5z0y9nv8
2013-11-25 17:58:04 +01:00
Fabien Meghazi
0a3371c3b2
[FIX] dispatch AccessErrors
...
bzr revid: fme@openerp.com-20131125155629-nmf0uk2agamzrhma
2013-11-25 16:56:29 +01:00
Fabien Meghazi
8091466de3
[IMP] route lazy request exceptions to ir_http exception handler
...
bzr revid: fme@openerp.com-20131121192841-r1c05wj9302l2axj
2013-11-21 20:28:41 +01:00
Fabien Meghazi
80ebc1225a
[ADD] LazyRequest
...
bzr revid: fme@openerp.com-20131120194618-qzw4icf41ep3kbj3
2013-11-20 20:46:18 +01:00
Fabien Meghazi
4346aa99a4
[IMP] Two men's patch (al & chs) Clean up http.py, keep cursor open until dispatch is done.
...
bzr revid: fme@openerp.com-20131120192550-i9xzyqkufe3stnb3
2013-11-20 20:25:50 +01:00
Fabien Meghazi
9b9b5d09ca
[ADD] methods attribute to @http.route decorator
...
bzr revid: fme@openerp.com-20131119135200-jesz3kijqa0ape40
2013-11-19 14:52:00 +01:00
Xavier Morel
8e78b40e6a
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20131115132553-9eqxggih8be63i36
2013-11-15 14:25:53 +01:00
Xavier Morel
0ece469392
[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
2013-11-15 13:48:19 +01:00
Xavier Morel
321d4681e1
[IMP] new routing thing
...
* fix nameerror on SessionExpired exception not being imported
* remove pointless RequestUID instantiation by single placeholder object
- may be replaceable with a LocalProxy or something along those lines?
* rename default/nodb routing map
* make better use of werkzeug API
* move lazy routing_map instantiation to property in ir_http.find_handler
- do we have some sort of lazy_property?
bzr revid: xmo@openerp.com-20131115100901-s3skmwv9d1jgk9y0
2013-11-15 11:09:01 +01:00
Antony Lesuisse
575376ef29
[FIX] http.py use checked_call for concurrency retry and exception handling
...
bzr revid: al@openerp.com-20131110140757-tbe8yondadokd4ke
2013-11-10 15:07:57 +01:00
Antony Lesuisse
c396149f4f
[FIX] use AbstractModel, use session.db to ir_http dispatch for none controllers
...
bzr revid: al@openerp.com-20131110135406-r0cyxhnve3jl8r2i
2013-11-10 14:54:06 +01:00
Antony Lesuisse
afbec17f77
[IMP] model converters for routes, to directly get the browse record
...
example @route(['/job/detail/<model("hr.job"):job>'], type='http', auth="user")
bzr revid: al@openerp.com-20131110123707-yb3hbdqlo063dj64
2013-11-10 13:37:07 +01:00
Antony Lesuisse
d50577b69d
[IMP] http move db dispatching on the orm level
...
Split low level dispatching and high level dispatching.
Low level dispatching is used when the db is unknown it's only used by a few
controller in base and web.
High level dispatching is used when the db is known, it is used by most
controllers and it handles authentication and errors. Because it's a regular
osv object all it is fully overridable by openerp modules.
bzr revid: al@openerp.com-20131110014609-io03vspj2q1wtqa0
2013-11-10 02:46:09 +01:00
Xavier Morel
663ea78caa
[ADD] handling of slugs in ModelConverter (generation & parsing)
...
bzr revid: xmo@openerp.com-20131108154756-znkcyd32csd7vj1u
2013-11-08 16:47:56 +01:00
Xavier Morel
565df0c0bf
[IMP] ModelConverter
...
* add generate method to indicate that the converter can produce
values it can consume
* fix to_url, should return a string
bzr revid: xmo@openerp.com-20131108132135-n80fot7xv6by43dx
2013-11-08 14:21:35 +01:00
Xavier Morel
baa3743420
[FIX] double-escaping on 500 errors
...
HTTPException.get_description already escapes the provided description on output
bzr revid: xmo@openerp.com-20131104125908-1gy9poyy9s0vk2rq
2013-11-04 13:59:08 +01:00
Xavier Morel
3389198f81
[IMP] remove unnecessary keys() calls
...
bzr revid: xmo@openerp.com-20131104125735-wtnngolx07755o1u
2013-11-04 13:57:35 +01:00
Antony Lesuisse
8ff22a5322
[IMP] models route converter typo
...
bzr revid: al@openerp.com-20131031125653-nhtt01wlnz0cnn22
2013-10-31 13:56:53 +01:00
Antony Lesuisse
b975f9a13b
[IMP] models route converter
...
bzr revid: al@openerp.com-20131031115429-h14hly3i6yn48q3j
2013-10-31 12:54:29 +01:00
Antony Lesuisse
b40a8f34ea
[IMP] model convert for routes, to directly get the browse record
...
example @route(['/job/detail/<model("hr.job"):job>'], type='http', auth="user")
bzr revid: al@openerp.com-20131030230043-4fohcd1wdjc10ip7
2013-10-31 00:00:43 +01:00
Christophe Simonis
1c523aa1be
[FIX] http: bind RouteMap using environ to allow correct redirections
...
(manual forward port of revid 3860 chs@openerp.com-20131023162646-9t8iu2okkddg56yi from web branch)
bzr revid: chs@openerp.com-20131030182400-bfuvl2209a7e1ifz
2013-10-30 19:24:00 +01:00
niv-openerp
f312303734
[IMP] Added doc
...
bzr revid: nicolas.vanhoren@openerp.com-20131029150105-4l3hys56zt2dpmcc
2013-10-29 16:01:05 +01:00
Antony Lesuisse
a569093606
[IMP] move http layer from openerp-web to openobject-server, convert controllers to the new route api
...
versioned history http.py can be found in lp:~openerp/openerp-web/trunk file addons/web/http.py
bzr revid: al@openerp.com-20131027171553-qe1ulbff0bphm15o
2013-10-27 18:15:53 +01:00
Vo Minh Thu
56df6d6ecc
[DOC] openerp.http: use sphinx domains.
...
bzr revid: vmt@openerp.com-20130201151354-uyxgyt0aw101a2mq
2013-02-01 16:13:54 +01:00
Vo Minh Thu
665fc8d8f1
[REF] openerp.service.{rpc,route,handler} decorators moved to openerp.http.
...
bzr revid: vmt@openerp.com-20130201093727-pgcvauuo87o2a3p6
2013-02-01 10:37:27 +01:00