Fabien Meghazi
f988d75035
[FIX] check after openerp's AccessErrors in website's _handle_exception
2014-06-25 12:20:40 +02:00
Fabien Meghazi
4e0799e163
[FIX] _handle_exception() logic amongst requests and ir_http objects
...
Changes in website's ir_http#_handle_exception():
- exception is mandatory, can't be None anymore
- we don't touch non website_enabled requests
- we don't touch explicits plain responses from parent
- logic flow is now easier to read (I hope so)
Change in website's ir_http#_dispatch():
- In case of real 404, instead of returning self._handle_exception(),
just let parent do the job (so we call super())
2014-06-25 11:47:44 +02:00
Denis Ledoux
51c7b55da0
[FIX] request.handle_exception: cleanup override logic, fixed chain broken by commit a096ae0
...
handle_exception() is supposed to try handling an exception and if it cannot,
re-raise it. Overridden methods must therefore call super() within a try/except
block, and only attempt to handle the exception if super() raised.
2014-05-23 13:15:52 +02:00
Martin Trigaux
a096ae0080
[FIX] http: force rolleback for failed http request
...
1st issue:
When an exception was raised, it was badly handled by the website in case of
website_enabled key. The response page was generated without calling super.
The WebRequest object being responsible to rollback the transaction in case
of errors.
2sd issue:
The _failed attribute is required to rollback the transaction in an WebRequest
object. Previously it was only set in the JsonRequest object (which inherit
from WebRequest), replace by call to super. The attribute _failed is now set
in the WebRequest object.
2014-05-21 19:12:37 +02:00
Fabien Meghazi
27f38edb25
[FIX] dirty saas-3 fix for url lang switching with model converters
...
bzr revid: fme@openerp.com-20140325100722-temaci88fowcr2m5
2014-03-25 11:07:22 +01:00
Xavier Morel
7ac7b2599e
[IMP] make page lookup case-insensitive during completion
...
bzr revid: xmo@openerp.com-20140207150623-vevnuswi9gx0bqeb
2014-02-07 16:06:23 +01:00
Fabien Meghazi
5451f5587d
[REV] Bring back QWebExceptions
...
bzr revid: fme@openerp.com-20140131113611-wee3xvnvzw9smq2r
2014-01-31 12:36:11 +01:00
Antony Lesuisse
974c666bcd
[REV] website qweb dont change exception types
...
bzr revid: al@openerp.com-20140131011427-3bome249kut8fs3t
2014-01-31 02:14:27 +01:00
Fabien Meghazi
1931c307a2
[IMP] Improved qweb exeptions handling
...
bzr revid: fme@openerp.com-20140130212053-fkb9ug49qun54ehi
2014-01-30 22:20:53 +01:00
Fabien Meghazi
eff61fde93
[FIX] Support for older werkzeug versions
...
bzr revid: fme@openerp.com-20140129135208-liewqaib50lwbbjy
2014-01-29 14:52:08 +01:00
jke-openerp
2c255db1d0
[REF] Move public_user from website_data to module server/addons/base
...
[REF] Remove _auth_method_public from website/ir_http to become a native auth_method in server/addons/base/ir/ir_http
bzr revid: jke@openerp.com-20140128142824-62ejlnnud4a4m694
2014-01-28 15:28:24 +01:00
Fabien Meghazi
a2fb618354
[FIX] do not crash when trying to rescue a wrong t-call in template
...
Need trunk-website-al server's Rev#5173
bzr revid: fme@openerp.com-20140127114034-luhekopukpbmntqt
2014-01-27 12:40:34 +01:00
Fabien Meghazi
15c1d052e3
[IMP] Ensure slug validity otherwise redirect
...
bzr revid: fme@openerp.com-20140124104610-lzsomdyl10ens0av
2014-01-24 11:46:10 +01:00
Fabien Meghazi
14bb6060d7
[REM] Removed @website.route() decorator
...
Need trunk-website-al Rev#5151
bzr revid: fme@openerp.com-20140120153733-ve3dn2kwvha7n3yl
2014-01-20 16:37:33 +01:00
Fabien Meghazi
1434a5aae9
[IMP] allow to reset broken views in the 500 error page
...
bzr revid: fme@openerp.com-20131217134600-v0i170n9gw7752vj
2013-12-17 14:46:00 +01:00
Fabien Meghazi
2a2f50e08f
[IMP] Better exception handling
...
bzr revid: fme@openerp.com-20131205150633-lnfvhjq42n0r26tv
2013-12-05 16:06:33 +01:00
Christophe Matthieu
63a9616138
[FIX] website_hr_recruitment, website_blog
...
bzr revid: chm@openerp.com-20131203171714-fym4y602l7gfylfw
2013-12-03 18:17:14 +01:00
Fabien Meghazi
c71cfef3d3
[FIX] ir.http log exceptions
...
bzr revid: fme@openerp.com-20131203114657-jnnki78qr28u9xq4
2013-12-03 12:46:57 +01:00
Fabien Meghazi
b78f196362
[IMP] cached website's default_lang and language_ids
...
bzr revid: fme@openerp.com-20131202172110-h7s023xv4ohq31tw
2013-12-02 18:21:10 +01:00
Fabien Meghazi
a5ed3f8b42
[ADD] slug() helper to rendering context
...
bzr revid: fme@openerp.com-20131202125652-5e30xd3ym6nww44o
2013-12-02 13:56:52 +01:00
Fabien Meghazi
3cf9c776de
[FIX] default language
...
bzr revid: fme@openerp.com-20131202093500-xzz4q2u279uwunjo
2013-12-02 10:35:00 +01:00
Fabien Pinckaers
cf3ecb9ff0
[IMP] Huge speed improvements 64 SQL queries to render '/' --> 10 Queries
...
bzr revid: fp@tinyerp.com-20131130193739-095yd4p9llmj0kt1
2013-11-30 20:37:39 +01:00
Fabien Pinckaers
ed7623fc45
[IMP] Performance improvement: improved cache with context, better get_object
...
bzr revid: fp@tinyerp.com-20131130154659-uqis34x2cemmocly
2013-11-30 16:46:59 +01:00
Fabien Meghazi
07eaace3ee
[ADD] custom website ir.http#dispatch and rerouting
...
bzr revid: fme@openerp.com-20131127170432-z7d1w4ck03d7wwia
2013-11-27 18:04:32 +01:00
Fabien Meghazi
cc424c1a55
[IMP] http errors refactoring
...
bzr revid: fme@openerp.com-20131125165958-0k84rp9rbsxvav77
2013-11-25 17:59:58 +01:00
Xavier Morel
3542a27f9c
[FIX] force url enumeration/generation to be performed as 'public' user
...
bzr revid: xmo@openerp.com-20131125100813-fln1j714m2h85h09
2013-11-25 11:08:13 +01:00
Xavier Morel
c9c4f77d72
[FIX] fix ModelConverter.regex for realsies
...
bzr revid: xmo@openerp.com-20131119113205-osz07kc5t8xmf05f
2013-11-19 12:32:05 +01:00
Xavier Morel
5419bb3b58
[FIX] ModelConverter regex part 1
...
bzr revid: xmo@openerp.com-20131119112056-ivcevk7strj9xy8v
2013-11-19 12:20:56 +01:00
Xavier Morel
5723b1588e
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20131119102552-f8d03meddylwseyr
2013-11-19 11:25:52 +01:00
Xavier Morel
986b4c49d1
[IMP] url generation & filtering
...
* add filtering in enumerate_pages directly
* make ModelConverter use name_search for generation
todo: per-request name_get caching/coalescing?
bzr revid: xmo@openerp.com-20131119102117-p7de3t93qex1n28q
2013-11-19 11:21:17 +01:00
Xavier Morel
bc313dc6ee
[IMP] don't match numbers within the slug, only match numeric runs at the end of it
...
bzr revid: xmo@openerp.com-20131119095059-yuininxcy0kiz9qh
2013-11-19 10:50:59 +01:00
Xavier Morel
5bab419967
[IMP] add page converter to get pages listing out of enumeration/search itself, restrict to single converter
...
bzr revid: xmo@openerp.com-20131115154840-psfns4datw5l1lr4
2013-11-15 16:48:40 +01:00
Xavier Morel
e7117a5799
[FIX] altered trunk routing stuff, bring website converters back in website
...
bzr revid: xmo@openerp.com-20131115132626-60p0yk3jv1pk6mhb
2013-11-15 14:26:26 +01:00