niv-openerp
9b1904e892
Put back stuff removed by merge
...
bzr revid: nicolas.vanhoren@openerp.com-20130607103749-7pe6k3vgwudohnxo
2013-06-07 12:37:49 +02:00
niv-openerp
b778d3c45a
merge trunk
...
bzr revid: nicolas.vanhoren@openerp.com-20130607085618-quxxm6izqlfnoy1n
2013-06-07 10:56:18 +02:00
niv-openerp
3d782a25d9
fix stupid bug
...
bzr revid: nicolas.vanhoren@openerp.com-20130606164726-zdwd4rf93m7unt35
2013-06-06 18:47:26 +02:00
niv-openerp
a3e430ec63
Changed to use werkzeug's LocalStack
...
bzr revid: nicolas.vanhoren@openerp.com-20130606162020-oemq8eyuxr47a2e1
2013-06-06 18:20:20 +02:00
niv-openerp
12e3ce123f
detail
...
bzr revid: nicolas.vanhoren@openerp.com-20130605093915-kmwtw7cq578lb230
2013-06-05 11:39:15 +02:00
niv-openerp
6afbca24f9
[REV] revert of previous improvement
...
bzr revid: nicolas.vanhoren@openerp.com-20130605092926-dhoumh76dwtl211t
2013-06-05 11:29:26 +02:00
niv-openerp
7f44a2ea6e
Added request in the list of first arguments for methods to wrap
...
bzr revid: nicolas.vanhoren@openerp.com-20130605084221-zyi54wa4ci36e2dd
2013-06-05 10:42:21 +02:00
niv-openerp
b466818a89
(At least) managed to put the magic patcher for all methods that get a "req" object
...
bzr revid: nicolas.vanhoren@openerp.com-20130604151631-tfqvcoq3kd4e16ey
2013-06-04 17:16:31 +02:00
niv-openerp
01c6623a9b
Puts the request in a thread-local stack
...
bzr revid: nicolas.vanhoren@openerp.com-20130604133450-j7mhtn2r9wbur5o7
2013-06-04 15:34:50 +02:00
Xavier Morel
7743760a4f
[FIX] case where Root's dispatcher finds a non-exposed method
...
Using elif, if a method was found but not exposed (because
internal/whatever) the controller's index method would be skipped
during URL dispatch leading to a 404.
Since matched method yields an early return, a simple if will work,
and will *not* skip case where ``method and not method.exposed``
bzr revid: xmo@openerp.com-20130507081611-t2bfba2ai79xj1ew
2013-05-07 10:16:11 +02:00
Antony Lesuisse
3baa897ec2
[REV] transactions on controllers
...
bzr revid: al@openerp.com-20130506112938-g9hck0xbwfb817r5
2013-05-06 13:29:38 +02:00
niv-openerp
ff15c4ce7f
[IMP] Added new api to handle transactions in controllers
...
bzr revid: nicolas.vanhoren@openerp.com-20130506102955-x28gmm3rx8i6j345
2013-05-06 12:29:55 +02:00
Christophe Matthieu
a31af55ef5
[MERGE] force module paths to be bytestrings
...
The http controllers handler crashes when there are non-ascii chars in the url path.
`openerp.modules.module.ad_paths` containing unicode strings, werkzeug fail to compare the path `module` which is converted to ascii.
force `module` to be bytestrings
bzr revid: chm@openerp.com-20130502122806-1i9h8v0cvhb6p63q
2013-05-02 14:28:06 +02:00
Christophe Matthieu
47d8e1a470
[FIX] http.py
...
Impossible to load the website when there is a unicode char in the url path.
`openerp.modules.module.ad_paths` containing unicode strings, werkzeug fail to compare the path which is converted to ascii.
force `openerp.modules.module.ad_paths` to only contain bytestrings
bzr revid: chm@openerp.com-20130502104249-ttokukc2rpetxqkr
2013-05-02 12:42:49 +02:00
niv-openerp
5e0437226e
[IMP] allow definition of web controllers that match all sub-urls
...
bzr revid: nicolas.vanhoren@openerp.com-20130502095055-xq9hna23otx65aq4
2013-05-02 11:50:55 +02:00
Xavier Morel
94c2c42be6
[MERGE] from 7.0
...
bzr revid: xmo@openerp.com-20130313094909-u21ee88l2lak9p2x
2013-03-13 10:49:09 +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
niv-openerp
451c85c52a
[FIX] problem with error reporting in http requests
...
bzr revid: nicolas.vanhoren@openerp.com-20130205105017-hr8c24c3dnxqabd7
2013-02-05 11:50:17 +01:00
niv-openerp
65cfe2ee38
Removed old useless keys
...
bzr revid: nicolas.vanhoren@openerp.com-20130130152926-bhdxho0eyq58s3or
2013-01-30 16:29:26 +01:00
niv-openerp
4776ea75eb
Solved warning problem
...
bzr revid: nicolas.vanhoren@openerp.com-20130130152552-l07fk2lahfnb9ckx
2013-01-30 16:25:52 +01:00
niv-openerp
79f7eaf08c
Changed exception handling in jsonrpc
...
bzr revid: nicolas.vanhoren@openerp.com-20130130143049-hofmnixydlf42dds
2013-01-30 15:30:49 +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