Commit Graph

31 Commits

Author SHA1 Message Date
Antony Lesuisse 44569c06a2 [FIX] http controllers inheritance
minimalist and backward compatible implementation

bzr revid: al@openerp.com-20130423210644-hmvglhh10zlrwp9q
2013-04-23 23:06:44 +02:00
Christophe Simonis e5736828f9 [REVERT] revert commit fme@openerp.com-20130418171750-7oldgiewo1eewxk7: do not break stable API !!!
bzr revid: chs@openerp.com-20130423124151-h025b891xp77flg3
2013-04-23 14:41:51 +02:00
niv-openerp e29c8b4d91 [FIX] possible race condition when creating the session file for the web server
lp bug: https://launchpad.net/bugs/1157102 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130422082952-yldmbmmx2rhol2pw
2013-04-22 10:29:52 +02:00
Xavier Morel 3da2aaf488 [IMP] only use name of class being created: module is incorrect for dynamically created classes
bzr revid: xmo@openerp.com-20130418094315-qk8m13s4zzvojauw
2013-04-18 11:43:15 +02:00
Xavier Morel db4d08e3a9 [FIX] Extension of controller in-place with explicit spec of same _cp_path
When extending a controller in-place (e.g. A(Controller), B(A)) and
providing the exact same _cp_path as parent (no-op) execution path
would go into handler for _cp_path overwriting and raise an assertion
error for overwriting of existing controller.

Except this is allowed (if ugly) pattern, so warn & ignore behavior
(it is harmless).

bzr revid: xmo@openerp.com-20130418092405-wrmmrd648b9koefu
2013-04-18 11:24:05 +02:00
Xavier Morel 1f421e7928 [FIX] redefinition and in-place extension scenarios for controllers
bzr revid: xmo@openerp.com-20130402143217-pfe2288iodw9r81g
2013-04-02 16:32:17 +02:00
Alexandre Fayolle 30073a2e8f [FIX] race condition in session directory creation
try to create the directory and handle the possible exception instead of doing
an unsafe 2 step check and creation. 

The issues related to the naming of the directory mentionned in the bug report
are not handled.

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

bzr revid: alexandre.fayolle@camptocamp.com-20130319102008-omtaka8dtq9v7m1l
2013-03-19 11:20:08 +01:00
Olivier Dony a451cacb91 [MERGE] http.WebRequest: clear db/uid tracking on worker thread to avoid incorrect values during logging
Could happen when a worker thread is reused for another
database but does not go through all the dispatching levels,
e.g. for static resources served by werkzeug itself.

bzr revid: odo@openerp.com-20130301171616-joit5dvjx51ums1y
2013-03-01 18:16:16 +01:00
Olivier Dony ef10c2e3c8 [FIX] http.WebRequest: clear db/uid tracking on worker thread to avoid incorrect values during logging
Could happen when a worker thread is reused for another
database but does not go through all the dispatching levels,
e.g. for static resources served by werkzeug itself.

bzr revid: odo@openerp.com-20130228173530-bs5pun9o09iobosi
2013-02-28 18:35:30 +01:00
Antony Lesuisse 7826bd85f8 [MERGE] trunk
bzr revid: al@openerp.com-20121219025047-og0v9r8x09y0wmd3
2012-12-19 03:50:47 +01:00
Antony Lesuisse 3e1bce4bad minor fixes
bzr revid: al@openerp.com-20121219024946-6ezbvcizf09w8lio
2012-12-19 03:49:46 +01:00
Fabien Meghazi 78b92eace8 [FIX] Defaults user's context.lang to 'en_US'
bzr revid: fme@openerp.com-20121217100127-i7hr6klay251jo39
2012-12-17 11:01:27 +01:00
Vo Minh Thu 3e6c62d472 [IMP] web.http: _load_addons load the addons in a reproducible way.
I believe there are potential circular imports that can break
because of openerp.modules.module ImportHook, but they are
deifficult to reproduce when the import order is not always
the same.

bzr revid: vmt@openerp.com-20121210140411-ranw3jc3mwu3ymty
2012-12-10 15:04:11 +01:00
Christophe Simonis da574605c7 merge upstream
bzr revid: chs@openerp.com-20121129145039-mzj8b1vpdu48budl
2012-11-29 15:50:39 +01:00
Xavier Morel 4a5cb1ebc4 [REM] EVALPOCALYPSE PART 2: no more python-side eval
trigger an error if a nonliteral context is pushed to the server (through a new object_hook)

bzr revid: xmo@openerp.com-20121126140525-ni2x5m56upss610b
2012-11-26 15:05:25 +01:00
Xavier Morel eb9a1c7d55 [REM] EVALPOCALYPSE PART ONE
bzr revid: xmo@openerp.com-20121126105450-0f6xowd3dhj4jmbl
2012-11-26 11:54:50 +01:00
Christophe Simonis 4aa5e76174 merge upstream
bzr revid: chs@openerp.com-20121116183212-1ke59kde4ilicw6d
2012-11-16 19:32:12 +01:00
Raphael Collet f2bc7b8f4d [IMP] web.http: factor out session path generation
bzr revid: rco@openerp.com-20121116150131-a2ioomezc62kqgrb
2012-11-16 16:01:31 +01:00
Xavier Morel 0d85c24ae3 [MERGE] from trunk, fix/adapt some tests
bzr revid: xmo@openerp.com-20121116100840-yyr9b4oru3zdftld
2012-11-16 11:08:40 +01:00
Christophe Simonis c637a44316 merge upstream
bzr revid: chs@openerp.com-20121115103244-lezama0ao1f2cgrh
2012-11-15 11:32:44 +01:00
Antony Lesuisse 9bf94f677d [IMP] http session cleanup with gc
bzr revid: al@openerp.com-20121115011853-238vzfca9ssbiyi7
2012-11-15 02:18:53 +01:00
Christophe Simonis a161d749f8 merge upstream
bzr revid: chs@openerp.com-20121114223538-qp233873r33uh3e3
2012-11-14 23:35:38 +01:00
Christophe Simonis e1f5dfc388 [FIX] jsonp wasn't working on some browse due to security restriction that do not store the third parties cookies.
bzr revid: chs@openerp.com-20121114113335-nag3ljcwwx0yfdnu
2012-11-14 12:33:35 +01:00
Antony Lesuisse 14951003ab [FIX] crash on pop, keep lang as param for translation, session more important than cookie, remove premature optimization
bzr revid: al@openerp.com-20121112211650-0ud0cq8vdtdwcmca
2012-11-12 22:16:50 +01:00
Christophe Simonis fa16b8910e [ADD] req.lang property to get preferred lang for the current request
bzr revid: chs@openerp.com-20121112181033-b17zj2io47me04kk
2012-11-12 19:10:33 +01:00
Xavier Morel 99a2dd3938 [ADD] first 90% of non-sucky testing API, last 90% left
also all existing tests shoud now be completely broken and need to be fixed

bzr revid: xmo@openerp.com-20121025154745-rw2gktfd6tp68k2m
2012-10-25 17:47:45 +02:00
Christophe Simonis da27fd32e0 merge upstream
bzr revid: chs@openerp.com-20121024114929-dwn0esxvlobxqle4
2012-10-24 13:49:29 +02:00
Antony Lesuisse 9155f0318e [IMP] http dispatching decorators
bzr revid: al@openerp.com-20121023141441-5yc5gso95tl1p157
2012-10-23 16:14:41 +02:00
Christophe Simonis 907b9700be [FIX] adapt to drop of standalone web client
bzr revid: chs@openerp.com-20121011112300-cfhvxh4d9gg6o17l
2012-10-11 13:23:00 +02:00
Christophe Simonis 0e4df7d28b merge upstream
bzr revid: chs@openerp.com-20121011093252-ke83ln88kw9em5y6
2012-10-11 11:32:52 +02:00
Antony Lesuisse ae6ff0764b web remove common, fix imports
bzr revid: al@openerp.com-20121010203753-azrcz3k2kd44ni24
2012-10-10 22:37:53 +02:00