Xavier Morel
228938ccba
[ADD] formats support to date and datetime converters
...
bzr revid: xmo@openerp.com-20131202073313-tu79esduu5bvyaai
2013-12-02 08:33:13 +01:00
Xavier Morel
c457c2197a
[REF] inline server formats in date & datetime converter methods
...
bzr revid: xmo@openerp.com-20131129103943-1ba1jbm3xxk1p42t
2013-11-29 11:39:43 +01:00
Fabien Pinckaers
e477c1f617
[FIX] temporary fix, should be cleaned by removing editable context
...
bzr revid: fp@tinyerp.com-20131201115142-mok8vlkua5f4tb5l
2013-12-01 12:51:42 +01:00
Fabien Pinckaers
0c1edb8024
[FIX] reverted an introduced bug
...
bzr revid: fp@tinyerp.com-20131130205030-1ycdkt3nc5owj66o
2013-11-30 21:50:30 +01:00
Fabien Pinckaers
ed5ea188f6
[IMP] Speed improvement: 27 SQL queries -> 13 SQL queries per static pages on CMS
...
bzr revid: fp@tinyerp.com-20131130172319-gq9udvjhv9m83d7n
2013-11-30 18:23:19 +01:00
Fabien Pinckaers
51a32f45a0
[IMP] Speed improvement
...
bzr revid: fp@tinyerp.com-20131130171849-i1cao342bik6wd89
2013-11-30 18:18:49 +01:00
Fabien Pinckaers
4a3529afdf
[IMP] Performance improvement: improved cache with context, better get_object
...
bzr revid: fp@tinyerp.com-20131130154723-05r90b2yhwwovpx4
2013-11-30 16:47:23 +01:00
Xavier Morel
71b25c5add
[ADD] relative datetime qweb widget
...
bzr revid: xmo@openerp.com-20131129085256-dwpcy0rd5v6bls9d
2013-11-29 09:52: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 Matthieu
e49908b879
[MERGE] trunk-website-demo-partner-bth
...
bzr revid: chm@openerp.com-20131128172226-mx0e6dt1iv3nrgwg
2013-11-28 18:22:26 +01:00
Xavier Morel
ea56dece85
[ADD] duration widget
...
bzr revid: xmo@openerp.com-20131128153630-pouwmygw6vgyuj1l
2013-11-28 16:36:30 +01:00
Fabien Meghazi
071ef9702b
[REV] Previous commit loses the inherit_branding context's key
...
bzr revid: fme@openerp.com-20131128094809-l77nyyqglzha3tuh
2013-11-28 10:48:09 +01:00
Fabien Pinckaers
2fef12e984
[IMP] cache on read_template, divide by 2 number of SQL queries on page loading
...
bzr revid: fp@tinyerp.com-20131127230024-cqhvjy9yg57cxunv
2013-11-28 00:00:24 +01:00
Fabien Pinckaers
0dbc41aca0
[IMP] access right when accessing object, not second checks in view rendering
...
bzr revid: fp@tinyerp.com-20131127223831-7r06xxuimrx21fzw
2013-11-27 23:38:31 +01:00
Xavier Morel
765429cfb0
[FIX] missing import lost during merge
...
bzr revid: xmo@openerp.com-20131127112908-ldwf1r1ypwx9pepx
2013-11-27 12:29:08 +01:00
Fabien Meghazi
f15b0120e8
[IMP] better api for ir.http#_authenticate
...
bzr revid: fme@openerp.com-20131126121024-v5f9i7ssgaqm7dmk
2013-11-26 13:10:24 +01:00
Xavier Morel
1235955197
[IMP] exception handling in _dispatch
...
* ensure users correctly get a 403 forbidden from a failed
_authenticate
* as far as we can tell, NotFound is one of the few things
_authenticate does *not* throw. Catch all exceptions anyway.
* replace default _handle_500, _handle_403 and _handle_404 by single
generic handler since all they did was re-raise the exception anyway
bzr revid: xmo@openerp.com-20131126110519-0yjh01ubrulpzlmn
2013-11-26 12:05:19 +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
5f197f25c5
[IMP] raise AccessError for acl errors
...
bzr revid: fme@openerp.com-20131125154504-v3tfppa7mkjm5ksr
2013-11-25 16:45:04 +01:00
Fabien Meghazi
14d552cd48
[FIX] qweb#render() should honor browse record calling
...
bzr revid: fme@openerp.com-20131125131811-3blovguwiearewqb
2013-11-25 14:18:11 +01:00
Fabien Meghazi
54b15928cf
[FIX] ahem, fix previous commit
...
bzr revid: fme@openerp.com-20131121205959-jvlmcofp5yq5s7ht
2013-11-21 21:59:59 +01:00
Fabien Meghazi
9f43e80662
[IMP] rendering context not mandatory for ir.ui.view#render()
...
bzr revid: fme@openerp.com-20131121203230-uo485jls4uk15n7x
2013-11-21 21:32:30 +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
Fabien Pinckaers
0eb2bed2ca
[FIX] priority of templates are now working
...
bzr revid: fp@openerp.com-20131117072335-chwjkpcj8hv431z3
2013-11-17 08:23:35 +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
bth-openerp
041ecef093
[IMP]Removed country.
...
bzr revid: bth@tinyerp.com-20131114105701-9e62eg9sj7yde1c1
2013-11-14 16:27:01 +05:30
bth-openerp
bcdbe01a29
[IMP]Improved country.
...
bzr revid: bth@tinyerp.com-20131114093817-ex49h1qevzut1cm5
2013-11-14 15:08:17 +05:30
bth-openerp
fe28545989
[MERGE]Merge trunk-website-al.
...
bzr revid: bth@tinyerp.com-20131114091032-7y1pgw2vptqdjkj0
2013-11-14 14:40:32 +05:30
bth-openerp
37c37fd99d
[IMP]Added address.
...
bzr revid: bth@tinyerp.com-20131113130135-do6n7v84c9kouma8
2013-11-13 18:31:35 +05:30
Fabien Meghazi
bbac9f0f23
[ADD] Add hook for qweb preprocessing
...
bzr revid: fme@openerp.com-20131112140822-7p37hu8gd82ta5aj
2013-11-12 15:08:22 +01:00
Launchpad Translations on behalf of openerp
08abc4345a
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131112054140-gta82n1b3iww6qy5
bzr revid: launchpad_translations_on_behalf_of_openerp-20131031051733-nnutbi7hidixsxsb
bzr revid: launchpad_translations_on_behalf_of_openerp-20131102055746-d0emb2aocq3sq1d1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131103052149-y4usleohxatdgczx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131105052928-1izkptj5zusflrvb
bzr revid: launchpad_translations_on_behalf_of_openerp-20131108054204-hrtuxxze2u1ivvez
bzr revid: launchpad_translations_on_behalf_of_openerp-20131110055420-zl5ang9w8lbcvt9d
bzr revid: launchpad_translations_on_behalf_of_openerp-20131111051738-smtttsszytn06ld4
bzr revid: launchpad_translations_on_behalf_of_openerp-20131112054158-7ewd3oxiyxg8s4zw
2013-11-12 05:41:58 +00:00
bth-openerp
8e0ab3a09b
[IMP]Set email address.
...
bzr revid: bth@tinyerp.com-20131111122748-cadl97pwkkj0b9s3
2013-11-11 17:57:48 +05:30
bth-openerp
96ade7c308
[MERGE]Merge lp:~openerp-dev/openobject-server/trunk-website-al.
...
bzr revid: bth@tinyerp.com-20131111094752-xmi2j4wn9hjrrpry
2013-11-11 15:17:52 +05:30
bth-openerp
f4a0d30fc4
[IMP]Moved demo data from yml to xml.
...
bzr revid: bth@tinyerp.com-20131111094510-ayhsv2kwnxouhip3
2013-11-11 15:15:10 +05:30
Antony Lesuisse
ee4c1f702e
[IMP] http move db dispatching to AbstractModel ir.http
...
Allow module to override the http dispatching process:
- The default implementation uses werkzeug.routing but any other method could
be used, it'a also possible to pre/postprocess (i.e. url aliases)
- Authentication (auth param on route) is plugggable by defining now
_auth_method_<methodname>
- Error handler are overridable, any module can define a new exception and
handle it by orverriding the _handle_<error_code> method.
- Add model converters for routes, to directly get the browse record example
@route(['/job/detail/<model("hr.job"):job>'], type='http', auth="user")
This is done by splitting dispatching, when the db is unknown low level http.py
dispatching is used, it's only used by a few controller in base and web. When
the db is known, ir_http is used because it's a regular Model it is fully
overridable by openerp modules.
bzr revid: al@openerp.com-20131110142731-qi9910fkty25cdtd
2013-11-10 15:27:31 +01:00
Antony Lesuisse
5f9ef80d70
[FIX] make routing converters modular
...
bzr revid: al@openerp.com-20131110141250-myreqy8ofvpj2r0u
2013-11-10 15:12:50 +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
7f3133e423
[IMP] ir_http better exception handling for http errors
...
bzr revid: al@openerp.com-20131110135739-2tmr6iynil16ooi1
2013-11-10 14:57:39 +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
bth-openerp
b6942cb19b
[MERGE]Merge lp:~openerp-dev/openobject-server/trunk-website-al.
...
bzr revid: bth@tinyerp.com-20131031073313-0o76y67rae9m0p97
bzr revid: bth@tinyerp.com-20131108111154-elzbel3xcuh1nqld
2013-11-08 16:41:54 +05:30
Stephane Wirtel
c9a7e69a75
[FIX] test_mail: Rewrite the XSS test
...
bzr revid: stw@openerp.com-20131107141019-jjhvism55j8x207g
2013-11-07 15:10:19 +01:00