Commit Graph

80 Commits

Author SHA1 Message Date
Xavier Morel 3daf6b30b9 [FIX] jsonP-requests issue for real
bzr revid: xmo@openerp.com-20111220114732-gekgwwb0ry0sdqil
2011-12-20 12:47:32 +01:00
Xavier Morel fa15b2adb9 [REM] leftover debugging prints
bzr revid: xmo@openerp.com-20111219164611-bme1yyhbe52ad9cm
2011-12-19 17:46:11 +01:00
Xavier Morel 75409e349a [FIX] avoid systematically deadlocking the stand-alone OpenERP web in its default configuration
The default configuration for OpenERP Web standalone (launched via the
openerp-web script) is single-threaded for log-readability purposes.

web.common.controllers.main.Proxy.load has been added to wrap a
request to an HTTP handler inside a JSON (and/or JSONP) request, the
initial implementation was to perform a full HTTP call *from within an
HTTP handler to itself*.

Since the server is single-threaded and its only thread is already
busy, it can't handle the new request, and the client deadlocks.

Replaced this crap by also-crap-but-slightly-less-so: instantiating a
Werkzeug test client using the root application and proxying the
request through that. Avoids creating a new request from the server,
therefore does not deadlock.

lp bug: https://launchpad.net/bugs/905384 fixed

bzr revid: xmo@openerp.com-20111219145759-m10zgo3tcd6zjhcu
2011-12-19 15:57:59 +01:00
Xavier Morel eec5f1c6c4 [FIX] stop blowing up on old sessions
lp bug: https://launchpad.net/bugs/906225 fixed

bzr revid: xmo@openerp.com-20111219104316-rssxn3oqne7070a4
2011-12-19 11:43:16 +01:00
Xavier Morel 44cc908269 [ADD] logging of HTTP session storage location
bzr revid: xmo@openerp.com-20111219102645-hnelg2hqfno78zsj
2011-12-19 11:26:45 +01:00
Antony Lesuisse 8f4a1ebd24 [FIX] remove debug
bzr revid: al@openerp.com-20111218141007-bv1ssmioefur4cw2
2011-12-18 15:10:07 +01:00
Antony Lesuisse 65c5eaca8d [FIX] jsonp works
bzr revid: al@openerp.com-20111216164739-ei5hdk4sq32eppzc
2011-12-16 17:47:39 +01:00
Antony Lesuisse 8721df9d54 [IMP] massive connection deferrization, json works again
bzr revid: al@openerp.com-20111216004402-q6v26822swarra7r
2011-12-16 01:44:02 +01:00
Antony Lesuisse 8ae093bf49 move jq_ajax.js
bzr revid: al@openerp.com-20111215133305-c7jgyqdes33drllk
2011-12-15 14:33:05 +01:00
Antony Lesuisse 31e65bdddf partial rework to merge trunk
bzr revid: al@openerp.com-20111215120732-is7pab5e5rsfqpj0
2011-12-15 13:07:32 +01:00
Antony Lesuisse 5cd5755495 [IMP] jsonp dispatch fixes
bzr revid: al@openerp.com-20111214093941-k5q77dh0gfavnsds
2011-12-14 10:39:41 +01:00
Antony Lesuisse 26f690fc5e [IMP] jsonp dispatch
bzr revid: al@openerp.com-20111214092933-77vn7s5jxvi5i72f
2011-12-14 10:29:33 +01:00
Christophe Simonis e0ac8e3fa4 [IMP] refactor request handler
bzr revid: chs@openerp.com-20111213174728-gslcxtuuf9y506b3
2011-12-13 18:47:28 +01:00
Jiten (OpenERP) 0d4f1571d7 [IMP] Minor change.
bzr revid: jra@tinyerp.com-20111213092842-gnqy2h01rt0o2t9r
2011-12-13 14:58:42 +05:30
Antony Lesuisse 78312ed1dd [MERGE] trunk
bzr revid: al@openerp.com-20111208133952-183wp4ozrr0gvea8
2011-12-08 14:39:52 +01:00
Christophe Simonis 050d369f4a [IMP] better debugging output
bzr revid: chs@openerp.com-20111122121833-okbmche6lhw78d4d
2011-11-22 13:18:33 +01:00
Christophe Simonis 2834e0f7bd [IMP] pop jsonp_requests to avoid memory overload
bzr revid: chs@openerp.com-20111122121655-7nqn1rvcd2iwy4mg
2011-11-22 13:16:55 +01:00
Christophe Simonis 8769c57e94 [FIX] session merging
bzr revid: chs@openerp.com-20111122120806-mlg170fohfnx8gk8
2011-11-22 13:08:06 +01:00
Jiten (OpenERP) 990ece97a5 [MERGE] Merge from openerp-web.
bzr revid: jra@tinyerp.com-20111122051803-1ttx64ilabhxo4p1
2011-11-22 10:48:03 +05:30
Christophe Simonis f994e70e41 merge upstream
bzr revid: chs@openerp.com-20111117125432-zhfrcyrtwy9b9cv8
bzr revid: chs@openerp.com-20111118132606-6gh7zmrx7606w8fv
2011-11-18 14:26:06 +01:00
Xavier Morel 4ea75b0da9 [IMP] don't default to debug mode when loading the client root anymore
bzr revid: xmo@openerp.com-20111116085423-wu53ydaan357ucfd
2011-11-16 09:54:23 +01:00
Christophe Simonis bc9149f5b6 [FIX] lock accesses to session file
bzr revid: chs@openerp.com-20111115161251-wntoqdx42jbh7k0e
2011-11-15 17:12:51 +01:00
Christophe Simonis bccc64ac7c [FIX] use absolute url when getting css/js/qweb files + use a static proxy for getting qweb files
bzr revid: chs@openerp.com-20111109081626-l868h7w8glinbxdl
2011-11-09 09:16:26 +01:00
Christophe Simonis 80657b1c29 [IMP] support for jsonp
bzr revid: chs@openerp.com-20111024090727-f8w5wv08ugxnrpt8
2011-10-24 11:07:27 +02:00
Antony Lesuisse c54f840eb5 [FIX] dispatch allow controllers to be configured at the root of a module /<module>/<method>
bzr revid: al@openerp.com-20111018100754-eacxikmbo96cvcz8
2011-10-18 12:07:54 +02:00
Xavier Morel 40d8db3a65 [FIX] concurrent requests overwriting each other's literal contexts and domains dicts ~/projects/tiny/web/current
also prune empty/useless openerp sessions from the http sessions
before saving the http session, in order not to have *kilobytes* of
crud lying around the magnetic tape

bzr revid: xmo@openerp.com-20111017110756-sqociibor79i6svz
2011-10-17 13:07:56 +02:00
Christophe Simonis d29aa73971 [IMP] allow controller functions to return werkzeug.exceptions.HTTPException (i.e. 404 errors)
bzr revid: chs@openerp.com-20111013081351-layprblm1dt140py
2011-10-13 10:13:51 +02:00
Antony Lesuisse 0d79dca93f [IMP] cleanup of web.common
bzr revid: al@openerp.com-20111005175826-7fzk3wesvz198kpm
2011-10-05 19:58:26 +02:00
Xavier Morel 801e101a57 [FIX] we probably want to save the session even if the code throws some kind of exception
bzr revid: xmo@openerp.com-20110920215137-j97tgkvekv6v2850
2011-09-20 23:51:37 +02:00
Antony Lesuisse bedfc48dcf rename base into web part1
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
2011-09-05 13:03:09 +02:00