Commit Graph

525 Commits

Author SHA1 Message Date
Fabien Meghazi adfd2631e4 [FIX] correctly manager login query param
bzr revid: fme@openerp.com-20131219180717-s9ec0oi5a0jl21o0
2013-12-19 19:07:17 +01:00
Fabien Meghazi da780aa478 [IMP] Database selector and manager
bzr revid: fme@openerp.com-20131219143648-5jvlcet3yjsw6vq6
2013-12-19 15:36:48 +01:00
Fabien Meghazi b4918347cc [IMP] webclient entry point controller
bzr revid: fme@openerp.com-20131218111937-hp5vfutci5x7k2p5
2013-12-18 12:19:37 +01:00
Antony Lesuisse 4c45774b6d [IMP] manual exception handling for non-json controllers
bzr revid: al@openerp.com-20131203191621-xu2350cw0u3izn3s
2013-12-03 20:16:21 +01:00
Christophe Simonis 9f52ab382b [MERGE] forward port of branch saas-2 up to revid 3887 chs@openerp.com-20131122172422-tsd8wzqkbqknrw1w
bzr revid: chs@openerp.com-20131125160506-30uia4pdwzpp54gj
2013-11-25 17:05:06 +01:00
Olivier Dony 6c109ece30 [FIX] root redirect_with_hash: IE10 also behaves abnormally in case of multiple redirects
bzr revid: odo@openerp.com-20131119105326-0t1cjz1d1ebfzhwq
2013-11-19 11:53:26 +01:00
Christophe Simonis 322578383c [FIX] web: it's better if the route allowing users to log in is accessible without being logged in.
bzr revid: chs@openerp.com-20131114185202-yyhg7opc004hte02
2013-11-14 19:52:02 +01:00
niv-openerp c281862604 [FIX] Attempt to resolve the bug that makes the runbot crash
bzr revid: nicolas.vanhoren@openerp.com-20131113155340-srjkfv372jsyg5vl
2013-11-13 16:53:40 +01:00
Antony Lesuisse 14245e24fc [FIX] /web always save the provided db in session
guessed_db is only computed by the /web controller, so even if the provided db
match the guessed_db we should save it in the http session. Because all rpc
call made before the authentication wont compute the guessed_db, so the
request.db will be wrong for those calls.

bzr revid: al@openerp.com-20131110010411-s7ermjwmfbile1ix
2013-11-10 02:04:11 +01:00
niv-openerp 419c5e0c67 [FIX] Incorrect reference to / in /web/session/logout controller
bzr revid: nicolas.vanhoren@openerp.com-20131105152138-2628ehdke7rdc1ov
2013-11-05 16:21:38 +01:00
Fabien Meghazi 684c629556 [FIX] session destroy
Sorry all

bzr revid: fme@openerp.com-20131105102036-34g9mk2u694eqvhn
2013-11-05 11:20:36 +01:00
niv-openerp fd863b8501 [FIX] potential bug with the /login url, it could not possibly work due to its authorization level.
Also modified a function that is supposed to redirect to the backend and was still using '/'.

bzr revid: nicolas.vanhoren@openerp.com-20131105101548-jdsnyh2j4ak0kdbk
2013-11-05 11:15:48 +01:00
Fabien Meghazi 9a281f829b [ADD] redirect on login and logout controller
bzr revid: fme@openerp.com-20131104171530-96irkaom2vjsj9s5
2013-11-04 18:15:30 +01:00
Christophe Simonis 88292396c7 [MERGE] forward port of branch saas-2 up to revid 3865 chs@openerp.com-20131031111945-u3wi11e4rykpslme
bzr revid: chs@openerp.com-20131030183314-d75tbpxjjk3u79er
bzr revid: chs@openerp.com-20131031144026-09f3eqfwfj2bcefs
2013-10-31 15:40:26 +01:00
niv-openerp 866148efa4 [FIX] Corrected the redirect_with_hash() method that produced an incorrect url in IE and safari
bzr revid: nicolas.vanhoren@openerp.com-20131029090150-u397wkzdo9an9n0w
2013-10-29 10:01:50 +01:00
niv-openerp abe6df638d [FIX] Reverted modification of behavior in 3858 and replaced it with a fix that solves the core problem
(the fact that the function redirect_with_hash() didn't produced the expected effect in safari). To solve
that problem, the method was simply modified to use the same trick already used in IE that has the same
problem than safari.

bzr revid: nicolas.vanhoren@openerp.com-20131029085356-hb2sk4g7j3xh4zar
2013-10-29 09:53:56 +01:00
Antony Lesuisse 401099d358 [IMP] move http layer from openerp-web to openobject-server, convert controllers to the new route api
bzr revid: al@openerp.com-20131027171717-dzqx2264p152lq8y
2013-10-27 18:17:17 +01:00
Denis Ledoux 6bf5d02627 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 3859 rev-id: dle@openerp.com-20131023110926-tc2n3oqg0l2ga138
bzr revid: dle@openerp.com-20131023113414-mlwppd4d7vyh1tyj
2013-10-23 13:34:14 +02:00
Christophe Simonis d97bd2bce2 [FIX] web: avoid useless redirection when in mono db mode
bzr revid: chs@openerp.com-20131022104145-janmthq1r6sibm2e
2013-10-22 12:41:45 +02:00
niv-openerp e080294dc0 [MERGE] saas2
bzr revid: nicolas.vanhoren@openerp.com-20131018103631-vennug4iy21zhp3x
2013-10-18 12:36:31 +02:00
Christophe Simonis f263e02bc0 [REM] web: /web/report: remove useless check on action data
bzr revid: chs@openerp.com-20131009131658-xjbr16zx3loy45x2
2013-10-09 15:16:58 +02:00
Antony Lesuisse 097dc15ded [REM] shortcuts, deprecated by bookmarks
bzr revid: al@openerp.com-20131006132310-rrycbi10x441i2ef
2013-10-06 15:23:10 +02:00
Antony Lesuisse 36b103d83f [REM] web_shortcut
bzr revid: al@openerp.com-20131006124813-nkw1iw72os5bsk22
2013-10-06 14:48:13 +02:00
niv-openerp 5a70bc038a Changed base url
bzr revid: nicolas.vanhoren@openerp.com-20131002143740-jr8xz6j4qgs97ztp
2013-10-02 16:37:40 +02:00
Frédéric van der Essen eae9b15731 [IMP] helpful exception message
bzr revid: fva@openerp.com-20130924151913-mq8sj2a8hahylmig
2013-09-24 17:19:13 +02:00
ima-openerp 0afff9aae3 [IMP]removed unused method which is defined only for web shortcuts module.
bzr revid: ishwarmalvi13@gmail.com-20130918065854-u0aiyu5e1z7tf09g
2013-09-18 12:28:54 +05:30
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 1bd4b62142 Perfected translations integration in the framework
bzr revid: nicolas.vanhoren@openerp.com-20130805151012-wnc7wkyiz0eay5oh
2013-08-05 17:10:12 +02:00
niv-openerp b3c4d02590 Improved translation controller to be more flexible
bzr revid: nicolas.vanhoren@openerp.com-20130805144431-ycv6gwv99c5bh1p1
2013-08-05 16:44:31 +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 6e6108e9b6 [FIX] Problem with exports that make them crash
lp bug: https://launchpad.net/bugs/1205238 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130726084640-lz11kdlsk27mrjec
2013-07-26 10:46:40 +02:00
niv-openerp b105770bbc [IMP] removed hack to force disable the browser's cache and use http headers instead
bzr revid: nicolas.vanhoren@openerp.com-20130724151929-8j1bo1ae64lwkxdw
2013-07-24 17:19:29 +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 3885ee3330 [FIX] some more problems with werkzeug 0.9.1
bzr revid: nicolas.vanhoren@openerp.com-20130716131548-aa60tcfn3zwchqd0
2013-07-16 15:15:48 +02:00
niv-openerp 788071f34f [FIX] some more problems with werkzeug 0.9.1
bzr revid: nicolas.vanhoren@openerp.com-20130716131401-abj3i020a8831l98
2013-07-16 15:14:01 +02:00
niv-openerp b00689306c [FIX] problem with werkzeug 0.9.1 that makes the code crash when we generate a report
bzr revid: nicolas.vanhoren@openerp.com-20130715122835-4gtyu2xle8y7fls1
2013-07-15 14:28:35 +02:00
niv-openerp d42d50df57 [FIX] problem with werkzeug 0.9.1 that crashes when we generate a report
bzr revid: nicolas.vanhoren@openerp.com-20130715122648-a926d3tov4efbyrk
2013-07-15 14:26:48 +02:00
niv-openerp e6fc23d980 Forgot some refactoring
bzr revid: nicolas.vanhoren@openerp.com-20130711141832-8y5yj3lj7h4gb94q
2013-07-11 16:18:32 +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
Christophe Matthieu e4aad29beb [FIX] web report: use get to find active_ids inside the context. Check if report_ids is defined
bzr revid: chm@openerp.com-20130708105425-p8279f00xa7925xh
2013-07-08 12:54:25 +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
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 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 95f9491252 Rewrite db_monodb
bzr revid: nicolas.vanhoren@openerp.com-20130621123149-ukxjzz9jyckf9a4r
2013-06-21 14:31:49 +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 4119d7ce99 Added werkzeug's arguments
bzr revid: nicolas.vanhoren@openerp.com-20130620121026-btc06m36x9jg1ok0
2013-06-20 14:10:26 +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
chs 4039900383 [FIX] monodb: correct behaviour in no-db-list mode (again)
bzr revid: mat@openerp.com-20130702122014-6l79a748lb946hkq
2013-07-02 14:20:14 +02:00
niv-openerp c44888527b Added werkzeug route building, not yet switched
bzr revid: nicolas.vanhoren@openerp.com-20130614152621-t8jv4474gt9k6yib
2013-06-14 17:26:21 +02:00
Christophe Simonis a61e7cb0c8 [MERGE] forward port of branch saas-1 up to revid 4887 chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
bzr revid: chs@openerp.com-20130613172414-dln3g4j0ykcwaa02
bzr revid: chs@openerp.com-20130613173900-xl7rh321nnw2b04b
2013-06-13 19:39:00 +02:00
niv-openerp d6c89cdb7c Implemented jsonrpc method
bzr revid: nicolas.vanhoren@openerp.com-20130613140418-2i1qsb6jykhx5jaz
2013-06-13 16:04:18 +02:00
niv-openerp 20c0e6fbb7 fixed get_lang_list
bzr revid: nicolas.vanhoren@openerp.com-20130613114421-hv3rgj0rxghpwlgp
2013-06-13 13:44:21 +02:00
niv-openerp 1c0282d09d fixed lot of problem with nodb
bzr revid: nicolas.vanhoren@openerp.com-20130613112027-1fps4v7h6zx5omo0
2013-06-13 13:20:27 +02:00
niv-openerp 50a5a612da Now uses request.cr for Model
bzr revid: nicolas.vanhoren@openerp.com-20130613110005-idverfbs9xe6l32w
2013-06-13 13:00:05 +02:00
niv-openerp c6b4e77df4 Put @nodb on all methods where it is required in main.py
bzr revid: nicolas.vanhoren@openerp.com-20130611165901-l1pyzpvpniq41a29
2013-06-11 18:59:01 +02:00
Christophe Simonis 22a8e5266e [FIX] web: calls to openerp methods do not raises xmlrpc Fault anymore
bzr revid: chs@openerp.com-20130611163527-k6yzb604c36n2wha
2013-06-11 18:35:27 +02:00
Christophe Simonis 6263673720 [MERGE] forward port of branch 7.0 up to revid 3973 chs@openerp.com-20130611145028-f98x6inytlr3ijjg
bzr revid: chs@openerp.com-20130611155251-zk0qkk70z30n81vl
2013-06-11 17:52:51 +02:00
Christophe Simonis ce68573126 [FIX] web: handle monodb correctly when server started with "--no-database-list" option
bzr revid: chs@openerp.com-20130611145028-f98x6inytlr3ijjg
2013-06-11 16:50:28 +02:00
Christophe Simonis 36e113e6bd [FIX] web: handle monodb correctly when server started with "--no-database-list" option
bzr revid: chs@openerp.com-20130611110327-sipc2er6z1ch7leb
2013-06-11 13:03:27 +02:00
niv-openerp a94bbf8e5e [FIX] Merge fix in saas1 for the problem that made the server crash when install a db
bzr revid: nicolas.vanhoren@openerp.com-20130610144915-0nj8vpk7n84ocj3f
bzr revid: nicolas.vanhoren@openerp.com-20130610150657-3xddn91gm0iq0ubp
bzr revid: nicolas.vanhoren@openerp.com-20130610154514-oee6s4f9g17bx63z
2013-06-10 17:45:14 +02:00
Olivier Dony 6901c4f981 [FIX] export: allow excluding special virtual fields from exportable data
For example the virtual "Access Rights" fields on
res.users cannot be browsed and cannot currently
by exported.

bzr revid: odo@openerp.com-20130607093044-y3bct44ralu8yf0o
2013-06-07 11:30:44 +02:00
niv-openerp 956a05e0f2 Replaced main
bzr revid: nicolas.vanhoren@openerp.com-20130607091856-mnjnllza9oafqxb7
2013-06-07 11:18:56 +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 97b22323aa Refactored main.py
bzr revid: nicolas.vanhoren@openerp.com-20130604153037-h4kzan18r2wlkb62
2013-06-04 17:30:37 +02:00
Thibault Delavallée c4c17fc3d2 [FIX] image controller: all reads (event __last_update) should be encapsulated into a try/catch to avoid having sometimes a placeholder, sometimes a broken image + traceback.
bzr revid: tde@openerp.com-20130528130526-iwzw5jjttr4nevc4
2013-05-28 15:05:26 +02:00
niv-openerp 97110c0a48 [FIX] problem in database manager when db list is desactivated
lp bug: https://launchpad.net/bugs/1166856 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130527122415-pk8i2uqfrgyiac83
2013-05-27 14:24:15 +02:00
Christophe Simonis d086a71131 [IMP] web: allow manifest files to contain remote js/css/qweb files
bzr revid: chs@openerp.com-20130528104352-b1qf79d6bdm8x2ec
2013-05-28 12:43:52 +02:00
Vidhin Mehta d6024fa36b [FIX]add callback function to fetch_lang and in *drop db* which is not created,after drop it shows 'db succesfully droped'.
bzr revid: vme@tinyerp.com-20130516170403-7oil1k6em99a1hmp
2013-05-16 22:34:03 +05:30
Xavier Morel ae1ea1ac58 [FIX] incorrect company logo on databases with uppercase letters
bzr revid: xmo@openerp.com-20130516132200-t4h6gtoplkqzuh1w
2013-05-16 15:22:00 +02:00
niv-openerp f77cf1b603 wip
bzr revid: nicolas.vanhoren@openerp.com-20130515090231-pj7q042poo2183sp
2013-05-15 11:02:31 +02:00
niv-openerp b1338a1c8f fix
bzr revid: nicolas.vanhoren@openerp.com-20130515085618-m72mahjie4iguwhy
2013-05-15 10:56:18 +02:00
Ravi Gohil (OpenERP) 408f17a884 [FIX] Company Logo not shown if database name contains capitals(Courtesy: Karel Marissens). (Maintenance Case: 592257)
lp bug: https://launchpad.net/bugs/1172679 fixed

bzr revid: rgo@tinyerp.com-20130506092751-9zutbjsc5e5mnnvh
2013-05-06 14:57:51 +05:30
Olivier Dony ba5710962e [MERGE] Forward-port of 7.0 bugfixes, up to rev. 3912
revision-id: nicolas.vanhoren@openerp.com-20130430094843-9m1629m517vjtm1o

bzr revid: xmo@openerp.com-20130424102025-w33zyopm96r7q09p
bzr revid: odo@openerp.com-20130430103337-i9wuj8zf3h41h1ay
2013-04-30 12:33:37 +02:00
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
Vidhin Mehta 2d07136d6f [FIX]Remove extra duplicate method,show valid error msg when invalid db to drop, do_render method call after resolving fetch_langs and call always after fetch_db.
lp bug: https://launchpad.net/bugs/1166856 fixed

bzr revid: vme@tinyerp.com-20130423104647-8xvrthahdzk42r08
2013-04-23 16:16:47 +05:30
Fabien Meghazi d94936132a [MERGE] Fixed http controllers inheritance
bzr revid: fme@openerp.com-20130418171750-7oldgiewo1eewxk7
2013-04-18 19:17:50 +02:00
Christophe Simonis ecdc3b1873 [FIX] web: company_logo does not try to load the pool + failback correctly if the database does not exists or is not an openerp database
bzr revid: chs@openerp.com-20130405134747-7rkmz5d4r0buhhxj
2013-04-05 15:47:47 +02:00
Olivier Dony f0320d4258 [FIX] web: company_logo route may be accessed with uid = False in some cases, it should still work
bzr revid: odo@openerp.com-20130404143144-3o2j0xbwh4m84tu8
2013-04-04 16:31:44 +02:00
Xavier Morel bc07cab28c [IMP] export formats have no need to inherit from the export controller
bzr revid: xmo@openerp.com-20130403091025-wjb23mzbmdyjnahm
2013-04-03 11:10:25 +02:00
Xavier Morel 41784d0aec [FIX] Export and Reports controllers have no need to extend View
bzr revid: xmo@openerp.com-20130403082635-9dmdi4cco3kawiib
2013-04-03 10:26:35 +02:00
Xavier Morel 94c2c42be6 [MERGE] from 7.0
bzr revid: xmo@openerp.com-20130313094909-u21ee88l2lak9p2x
2013-03-13 10:49:09 +01:00
Antony Lesuisse cb9106d99f [FIX] IE9 db creation, better monodb
bzr revid: al@openerp.com-20130312230344-uasy5dx2e8n5ytlr
2013-03-13 00:03:44 +01:00
Fabien Meghazi 9223cd6e33 [FIX] Add redirect helper for IE<10 (looses hash on redirects)
bzr revid: fme@openerp.com-20130307095923-nh1s5uvzl68455cg
2013-03-07 10:59:23 +01:00
Fabien Meghazi c41aa09d92 [FIX] Restore cookie_db check
bzr revid: fme@openerp.com-20130306152129-945co8a1gljz95eu
2013-03-06 16:21:29 +01:00
Fabien Meghazi 182eb325fe [MERGE] Remove url timestamps in debug mode
bzr revid: fme@openerp.com-20130306100701-bwli4fkwv7xlfpf8
2013-03-06 11:07:01 +01:00
Fabien Meghazi 28aa304d44 [FIX] db_monodb: cookie not used. keep same behavior as previous
bzr revid: fme@openerp.com-20130306085936-3mcyorwtgbb0uk0u
2013-03-06 09:59:36 +01:00
Antony Lesuisse 88e0e2933c db_monodb better version and naming
bzr revid: al@openerp.com-20130306005755-bgyl65f03st6mn6x
2013-03-06 01:57:55 +01:00
Antony Lesuisse b5b625932a db_monodb use the new implementation
bzr revid: al@openerp.com-20130305211433-cz7jopkmehxbbbsh
2013-03-05 22:14:33 +01:00
Fabien Meghazi 7b154aa8e0 [REM] Removed database check, this is not the role of the controller to reject a bad database name
bzr revid: fme@openerp.com-20130305165144-1nzgf3urk4ke20ty
2013-03-05 17:51:44 +01:00
Fabien Meghazi 0f03ed38f0 [IMP] forgot a change in previous commit
bzr revid: fme@openerp.com-20130305111932-lytw8pax3bjihg9d
2013-03-05 12:19:32 +01:00
Fabien Meghazi 1a00c29538 [FIX] unbreak api
bzr revid: fme@openerp.com-20130305111703-5l6iw2s970j76f43
2013-03-05 12:17:03 +01:00
Fabien Meghazi fc74aaf760 [FIX] Fixed for --no-database-list option
bzr revid: fme@openerp.com-20130305092426-48h757qc62taugpl
2013-03-05 10:24:26 +01:00