Christophe Simonis
f534c7e3f2
[FIX] web: when in monodb mode, allow admin routes to be called without being logged in.
...
This restore old behavior lost by commit 3882 chs@openerp.com-20131118172304-a54lgu6dm865k8xf
bzr revid: chs@openerp.com-20131119134815-hui4ph7a8ksgfxdt
2013-11-19 14:48:15 +01:00
Christophe Simonis
07c80735df
[FIX] web: avoid calling db_monodb at each request. This is a performance killer. Handle the case of non-existing database at router building.
...
bzr revid: chs@openerp.com-20131118172304-a54lgu6dm865k8xf
2013-11-18 18:23:04 +01:00
niv-openerp
13ac26bba5
[FIX] Problem when the password of a currently logged user changes. The new behavior is to silently logout the user it the password check fails for any reason.
...
bzr revid: nicolas.vanhoren@openerp.com-20131112162037-nu5r29wcfay205to
2013-11-12 17:20:37 +01:00
Christophe Simonis
d7f9722a83
[FIX] web: bind RouteMap using environ to allow correct redirections
...
bzr revid: chs@openerp.com-20131023162646-9t8iu2okkddg56yi
2013-10-23 18:26:46 +02:00
niv-openerp
7636d71dfc
[FIX] potential bug in server-side web framework, now forbids users to call method when not authentified
...
bzr revid: nicolas.vanhoren@openerp.com-20131018125727-qtkzkiwkhw4z78kr
2013-10-18 14:57:27 +02:00
niv-openerp
0ded676e72
[FIX] changed back default authetication level of old routes to "user" to remove inconsistency
...
bzr revid: nicolas.vanhoren@openerp.com-20131017084818-ijen4a2ywyg9lrxe
2013-10-17 10:48:18 +02:00
Christophe Simonis
687161f223
[FIX] web: re-add registry_cr() method on request to be compatible with saas-1 branch
...
bzr revid: chs@openerp.com-20131015090719-kw3ywyqix5ejcsak
2013-10-15 11:07:19 +02:00
Christophe Simonis
34d2fd4d02
[FIX] web: request dispatching wraps controller function call to retry request if psycopg raise OperationError and convert IntegrityError into except_orm with translated message.
...
bzr revid: chs@openerp.com-20131011113450-ktoaxul22p3nql75
2013-10-11 13:34:50 +02:00
Christophe Simonis
af68d40f6a
[FIX] http request must pop "session_id" also from form and files arguments
...
bzr revid: chs@openerp.com-20131007122611-i92dl924plmo02z3
2013-10-07 14:26:11 +02:00
Christophe Simonis
d4162cc0af
[FIX] @route compatibility with version 7.0:
...
*/ add request.debug property
*/ inject request at first argument at runtime, do not use wrapper method.
*/ force slashes in routes (do not use os.path.join() for urls)
*/ routes defined using the legacy decorator httprequest and jsonrequest uses auth="none"
*/ avoid registring web module routes twice
bzr revid: chs@openerp.com-20130924104101-h1dexy6m74b56gvi
2013-09-24 12:41:01 +02:00
niv-openerp
53b7baf1ce
[FIX] fixed some problems related to magic guess of db, now only tries to perform the magic guess when the --dbfilter argument is specified
...
bzr revid: nicolas.vanhoren@openerp.com-20130913102444-u30boym4nklatnf1
2013-09-13 12:24:44 +02:00
niv-openerp
982d598a8d
[IMP] now remembers OpenERP sessions
...
bzr revid: nicolas.vanhoren@openerp.com-20130829085801-z2wxxif0nzpbf5x2
2013-08-29 10:58:01 +02:00
niv-openerp
e15f586699
[FIX] fixed regression that made the server url detection fail
...
bzr revid: nicolas.vanhoren@openerp.com-20130819121437-lb05m0jc13lyabyq
2013-08-19 14:14:37 +02:00
niv-openerp
88d43bf677
[FIX] mimetype problem that made Firefox crash
...
bzr revid: nicolas.vanhoren@openerp.com-20130807123041-8tvf9u14xderh3hr
2013-08-07 14:30:41 +02:00
niv-openerp
67cba2d9c5
[FIX] Potential problems with server-side autodetection of request type.
...
bzr revid: nicolas.vanhoren@openerp.com-20130806152547-2b5puachpvcjsci3
2013-08-06 17:25:47 +02:00
niv-openerp
556deae262
Potential problems with request and context
...
bzr revid: nicolas.vanhoren@openerp.com-20130805145835-6yro8zp4exx3uz8v
2013-08-05 16:58:35 +02:00
niv-openerp
d256d16e3a
Fixed potential security issue + some details
...
bzr revid: nicolas.vanhoren@openerp.com-20130805133309-jds80qa5j5lgwslq
2013-08-05 15:33:09 +02:00
niv-openerp
22c56b1dd8
Ported some authentication methods to the Session class
...
bzr revid: nicolas.vanhoren@openerp.com-20130805111250-ws23n3b6os54qsp3
2013-08-05 13:12:50 +02:00
niv-openerp
adc722348c
Made the 2-steps jsonp rpc work more or less
...
bzr revid: nicolas.vanhoren@openerp.com-20130802143223-49mf5dayd8ape1a5
2013-08-02 16:32:23 +02:00
niv-openerp
f3d634a278
[IMP] http.py: Make it possible to implement a new authentication method for the routes
...
bzr revid: nicolas.vanhoren@openerp.com-20130801113136-5fg9hyrptjckhtkm
2013-08-01 13:31:36 +02:00
niv-openerp
2205c3021f
Some more correction to always have the db in the url
...
bzr revid: nicolas.vanhoren@openerp.com-20130724122328-kbnwq2uois37q74n
2013-07-24 14:23:28 +02:00
niv-openerp
3b384da858
[IMP] Removed http param 'db' handling from http.py and put it in the main controller in main.py
...
bzr revid: nicolas.vanhoren@openerp.com-20130724100030-yxbpntlz58kohy1n
2013-07-24 12:00:30 +02:00
niv-openerp
761ba75055
[IMP] Cleaned some more http.py, removed 'debug' handling and put it in the controller serving the home page
...
bzr revid: nicolas.vanhoren@openerp.com-20130724073624-uhshc0cn2m3rs7iq
2013-07-24 09:36:24 +02:00
niv-openerp
2fb48c695c
[IMP] modified mono_db to refuse db= in the url if the db does not appear in the db_filter
...
bzr revid: nicolas.vanhoren@openerp.com-20130715132900-xwbve100mn8nyzo9
2013-07-15 15:29:00 +02:00
niv-openerp
a7ab235c3a
changed session handling
...
bzr revid: nicolas.vanhoren@openerp.com-20130712095309-41u7fi7ecs0y1lm1
2013-07-12 11:53:09 +02:00
niv-openerp
a0a05454aa
Solved a problem appearing in share module
...
bzr revid: nicolas.vanhoren@openerp.com-20130711154137-vwgb5cd4wj26jed8
2013-07-11 17:41:37 +02:00
niv-openerp
3569ff8654
Some details + documentation
...
bzr revid: nicolas.vanhoren@openerp.com-20130711140519-hdsu75efwvfq4h4q
2013-07-11 16:05:19 +02:00
niv-openerp
89c8698cb3
Make the server always check the identity of the logged user and switch default values of db, uid, login and password to None
...
bzr revid: nicolas.vanhoren@openerp.com-20130711134825-teiuidqv7z2bzsuq
2013-07-11 15:48:25 +02:00
niv-openerp
0d7ec71bc9
Renamed all _shit in session to remove the underscore
...
bzr revid: nicolas.vanhoren@openerp.com-20130711133928-zp40wl2t5q54wrnv
2013-07-11 15:39:28 +02:00
niv-openerp
9aaf79ffd2
more and more cleaning
...
bzr revid: nicolas.vanhoren@openerp.com-20130711132301-5fl5giqio4n9yzgk
2013-07-11 15:23:01 +02:00
niv-openerp
47b5a82ae8
Completely removed all ways to specify session identifiers and reduced them to 2 possibilities:
...
* The http argument 'session_id' (higher priority)
* The cookie 'session_id' (lower priority)
bzr revid: nicolas.vanhoren@openerp.com-20130711122034-3nvmkw4q5z4io4tm
2013-07-11 14:20:34 +02:00
niv-openerp
a7adac1189
Now OpenERPSession is a subclass of werkzeug's session
...
bzr revid: nicolas.vanhoren@openerp.com-20130711103422-w7y05ox7tq0hz0og
2013-07-11 12:34:22 +02:00
niv-openerp
57d18c1a34
[IMP] In server-side web framework, change auth="db" to auth="admin", with some difference in semantic
...
bzr revid: nicolas.vanhoren@openerp.com-20130710145451-56ui50mga78eq10v
2013-07-10 16:54:51 +02:00
chs
f15f706313
[FIX] monodb: correct behaviour in no-db-list mode (manual forward port of 7.0 rev 3991 mat@openerp.com-20130702122014-6l79a748lb946hkq)
...
bzr revid: mat@openerp.com-20130702122404-sngh0g283tuvj8ll
2013-07-02 14:24:04 +02:00
Martin Trigaux
85d568184c
[FIX] http: db_monodb returns a result when only one db is available
...
bzr revid: mat@openerp.com-20130702103331-2f2vkz12sp385ldt
2013-07-02 12:33:31 +02:00
niv-openerp
f93d10957d
[FIX] bad handling of werkzeug's exceptions
...
bzr revid: nicolas.vanhoren@openerp.com-20130624155634-d5b5998jv01fa1wh
2013-06-24 17:56:34 +02:00
niv-openerp
c433395b4f
Put json-rpc controller in http.py
...
bzr revid: nicolas.vanhoren@openerp.com-20130621145455-n933uz1dcdmsv9t7
2013-06-21 16:54:55 +02:00
niv-openerp
770751c7d7
removed some useless code
...
bzr revid: nicolas.vanhoren@openerp.com-20130621143648-fh7vnyt3o6a7swqj
2013-06-21 16:36:48 +02:00
niv-openerp
d57bbfd2ff
merge trunk
...
bzr revid: nicolas.vanhoren@openerp.com-20130621135207-7oq7v2ubzfdrkrbr
2013-06-21 15:52:07 +02:00
niv-openerp
6a82e64e4d
small improvement, useful in some cases
...
bzr revid: nicolas.vanhoren@openerp.com-20130621132339-ohk9wiufk1l9z61v
2013-06-21 15:23:39 +02:00
niv-openerp
52d1b26b2f
Put db_monodb() method in http.py
...
bzr revid: nicolas.vanhoren@openerp.com-20130621124143-pe5hgwj81j2degg6
2013-06-21 14:41:43 +02:00
niv-openerp
93979c30b8
variable rename
...
bzr revid: nicolas.vanhoren@openerp.com-20130621123414-3hkklobsbf86glx6
2013-06-21 14:34:14 +02:00
niv-openerp
2fd53a468c
multiple refactoring with authentication
...
bzr revid: nicolas.vanhoren@openerp.com-20130621121510-gx22b6j9pwsfe352
2013-06-21 14:15:10 +02:00
niv-openerp
c90e8119bb
Put session.py in http.py
...
bzr revid: nicolas.vanhoren@openerp.com-20130621114424-s0nd8orv5ej05pwv
2013-06-21 13:44:24 +02:00
niv-openerp
00528bc4f9
Re-created magic inheritance of controllers
...
bzr revid: nicolas.vanhoren@openerp.com-20130620161945-r8a93itijdrc3ut0
2013-06-20 18:19:45 +02:00
niv-openerp
09f5b81927
Fixed some bug
...
bzr revid: nicolas.vanhoren@openerp.com-20130620124805-pvvylxc4z8yl0sp2
2013-06-20 14:48:05 +02:00
niv-openerp
4119d7ce99
Added werkzeug's arguments
...
bzr revid: nicolas.vanhoren@openerp.com-20130620121026-btc06m36x9jg1ok0
2013-06-20 14:10:26 +02:00
niv-openerp
7e4e72f01c
removed prints
...
bzr revid: nicolas.vanhoren@openerp.com-20130620100050-nr3nh1b05ttt72ae
2013-06-20 12:00:50 +02:00
niv-openerp
5a2c7af297
Refactored main.py
...
bzr revid: nicolas.vanhoren@openerp.com-20130619165957-nw7eb80c7gqqcj7v
2013-06-19 18:59:57 +02:00
niv-openerp
69ae9cc0b5
Big refactoring to prepare even more refactoring
...
bzr revid: nicolas.vanhoren@openerp.com-20130619161627-543e0brldclvvw98
2013-06-19 18:16:27 +02:00