Commit Graph

73176 Commits

Author SHA1 Message Date
Thibault Delavallée dce673c6b5 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130805132618-ewjjxjfwnkeg8hue
2013-08-05 15:26:18 +02:00
Launchpad Translations on behalf of openerp ade561e1cc Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130803055522-fcjgcnhlfmzbpk1t
bzr revid: launchpad_translations_on_behalf_of_openerp-20130806044754-4d3d8qgnfyuu1v8e
bzr revid: launchpad_translations_on_behalf_of_openerp-20130807044648-mspjcf73m77dwwb3
2013-08-07 04:46:48 +00: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 8039768fc8 [IMP] added doc
bzr revid: nicolas.vanhoren@openerp.com-20130806132807-rbiafmcqvbh1o79y
2013-08-06 15:28:07 +02:00
niv-openerp d3a2c47fb1 [IMP] Moved Mutex class to openerpframework.js
bzr revid: nicolas.vanhoren@openerp.com-20130806131746-l43mz6aos7eupehm
2013-08-06 15:17:46 +02:00
niv-openerp e6e5fcde1e [IMP] Improved shim for function.bind
bzr revid: nicolas.vanhoren@openerp.com-20130806130734-lov3aq0m4b1r4sto
2013-08-06 15:07:34 +02:00
niv-openerp baef37aec6 [IMP] Removed old JavaScript module loading system in the 'web' addons. Still has some retro-compatibility for other addons.
bzr revid: nicolas.vanhoren@openerp.com-20130806125022-bzjbtn0nqk40ak4g
2013-08-06 14:50:22 +02:00
niv-openerp c63a86c593 [IMP] Merged corelib.js and coresetup.js into core.js
bzr revid: nicolas.vanhoren@openerp.com-20130806122623-pq6bpkjk65jx0fnp
2013-08-06 14:26:23 +02:00
niv-openerp 392e9d260b [IMP] Mostly improvements of openerpframework.js . Moved a lot of necessary features to it (jsonrpc, models, translations,...). Added tests. Also some other style improvements.
bzr revid: nicolas.vanhoren@openerp.com-20130806120724-55nsh8ay9qiac72r
2013-08-06 14:07:24 +02:00
Martin Trigaux 122f0aa9b3 [FIX] workerst: revert commit 4930, remove useless loop and if condition always validated
bzr revid: mat@openerp.com-20130806094222-w61oolrjo66ulg3n
2013-08-06 11:42:22 +02:00
Martin Trigaux f47ac59b38 [IMP] workers: remove unused code, _acquire_job does not return any value
lp bug: https://launchpad.net/bugs/1193399 fixed

bzr revid: mat@openerp.com-20130806091032-5w6km2pmbl20zicl
2013-08-06 11:10:32 +02:00
niv-openerp cb55e11c70 Put everything in the framework directly in the openerp namespace instead of the openerp.web namespace.
bzr revid: nicolas.vanhoren@openerp.com-20130806085812-ek8v8k0x4m7ocu4f
2013-08-06 10:58:12 +02:00
niv-openerp 034e4893d5 Some commas
bzr revid: nicolas.vanhoren@openerp.com-20130805151544-pdaebd2o8bh70z7z
2013-08-05 17:15: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 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 38699e04cf Copied a part of translation database to openerpframework.js
bzr revid: nicolas.vanhoren@openerp.com-20130805145514-uuywlhleyfz2xoj4
2013-08-05 16:55:14 +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 ab4d080450 Desactivated some tests that, once again, do not work in the runbot
bzr revid: nicolas.vanhoren@openerp.com-20130805140404-x15shdy1a4b3zqvk
2013-08-05 16:04:04 +02:00
niv-openerp 07617fef45 Added tests for the models
bzr revid: nicolas.vanhoren@openerp.com-20130805134548-n6j48iv7823u3eh7
2013-08-05 15:45:48 +02:00
niv-openerp 76ef945c96 Corrected some stuff in openerp.web.Model
bzr revid: nicolas.vanhoren@openerp.com-20130805134059-3ayw6b0tqqberkaw
2013-08-05 15:40:59 +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 226b142ac6 Simplified a little the Query class by removing a reference to a controller and using call_kw instead
bzr revid: nicolas.vanhoren@openerp.com-20130805130458-21w806v9wc456oq4
2013-08-05 15:04:58 +02:00
niv-openerp 70e3af6312 Desactivated some tests because the phantomjs runner crashed
bzr revid: nicolas.vanhoren@openerp.com-20130805125045-q1x1bciwcdyabg8v
2013-08-05 14:50:45 +02:00
niv-openerp affb4f0589 Ported model to the framework
bzr revid: nicolas.vanhoren@openerp.com-20130805123916-s62upxq3jwqjygt0
2013-08-05 14:39:16 +02:00
niv-openerp 14fccd0a4e Even more tests
bzr revid: nicolas.vanhoren@openerp.com-20130805114034-7xcpjmses5aodjhr
2013-08-05 13:40:34 +02:00
niv-openerp a6ea300848 Added some tests about authentication
bzr revid: nicolas.vanhoren@openerp.com-20130805113928-yldn5qh2lm0vc8j9
2013-08-05 13:39:28 +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 85b2238472 minor improvements
bzr revid: nicolas.vanhoren@openerp.com-20130805101849-rqqx4jcmbymv5hfl
2013-08-05 12:18:49 +02:00
Launchpad Translations on behalf of openerp cbf3ad9f60 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130803055504-6ay7gnpxm1jno8g3
2013-08-03 05:55:04 +00:00
niv-openerp bd8519abb5 Make it a little bit cleaner to fetch the session_id
bzr revid: nicolas.vanhoren@openerp.com-20130802152432-stvg9eed7f6juvq9
2013-08-02 17:24:32 +02:00
niv-openerp ab03d9c280 Make the three jsonrpc protocols work correctly with and without session overriding and added tests for all the cases.
That's one small step for a man, a giant leap for all the poor programmers that would have to use that shit one day.

bzr revid: nicolas.vanhoren@openerp.com-20130802150815-k2yuf0b3ku5fvx7a
2013-08-02 17:08:15 +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
Denis Ledoux 329bd7d5f3 [FIX]google_spreadsheet: not using requests anymore
bzr revid: dle@openerp.com-20130802130349-206ms4c5s5dnzbti
2013-08-02 15:03:49 +02:00
Launchpad Translations on behalf of openerp 7828e44ea5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130727050216-3lqngtzz3y4eal03
bzr revid: launchpad_translations_on_behalf_of_openerp-20130728055452-udjnnr7f174dwx7s
bzr revid: launchpad_translations_on_behalf_of_openerp-20130729052557-z3cyhulfa50uou01
bzr revid: launchpad_translations_on_behalf_of_openerp-20130731051700-toxlygnbrq3rfi75
bzr revid: launchpad_translations_on_behalf_of_openerp-20130802053852-k0z9t3xzddxkqibc
2013-08-02 05:38:52 +00:00
niv-openerp cc04d9463e Added more tests
bzr revid: nicolas.vanhoren@openerp.com-20130801164207-wwv34s2fgtlxbzxz
2013-08-01 18:42:07 +02:00
niv-openerp 49f20eb39e Added some tests for jsonrpc
bzr revid: nicolas.vanhoren@openerp.com-20130801163221-uat5w2j1p5t9m5ve
2013-08-01 18:32:21 +02:00
niv-openerp f6318cc753 Yiiiiha! This day was shitty but that damn tests finally work.
bzr revid: nicolas.vanhoren@openerp.com-20130801160847-tcx6va9x1kp0q7eo
2013-08-01 18:08:47 +02:00
niv-openerp 9ce24aea39 Merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130801125845-2aoeb7l6bicdmk59
2013-08-01 14:58:45 +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
Xavier Morel adfe3e7ec9 [FIX] reinstate basic grouping test, replace strictEqual call on widgets by ok(===)
There seems to be a problem with QUnit's serialization routines when
applied to complex widgets (the view here) while running inside
PhantomJS. It does not seem to be cycles in datastructures (that is
handled) but looks related to complex objects linked from multiple
"children" (skipping any object already serialized makes the issue
disappear).

The bug leads to unbounded memory growth, and on runbot to the process
being summarily terminated (likely by the OOM killer) not even
resulting in an OOM error (which is displayed locally). The issue can
not be observed within browsers. This may be a difference in GC
strategy.

The serialization is applied by the driver on high-level comparison
methods (e.g. strictEqual) so the caller can display the structures if
desired.

Replace the strictEqual(a, b) call by ok(a === b) to avoid any risk of
such serialization.

bzr revid: xmo@openerp.com-20130801091326-u2q9e163zls4k8ad
2013-08-01 11:13:26 +02:00
Xavier Morel cdee92f984 [IMP] update QUnit to 1.12.0 (doesn't fix issue, adds features)
bzr revid: xmo@openerp.com-20130801091239-6lz0ya595i226l85
2013-08-01 11:12:39 +02:00
Xavier Morel e57e50fdfa [FIX] unneeded & dangerous start call in async test
bzr revid: xmo@openerp.com-20130801091130-vx7ow7vxifu7ak84
2013-08-01 11:11:30 +02:00
niv-openerp dae87b4535 Try to reimplement jsonrpc with niv's methods, still a lot of tests fail
bzr revid: nicolas.vanhoren@openerp.com-20130731163415-v6ec0nqsr0qj91a6
2013-07-31 18:34:15 +02:00
niv-openerp a51e042400 Removed some more references to _.str
bzr revid: nicolas.vanhoren@openerp.com-20130731151958-bgc0w02et69mf1ok
2013-07-31 17:19:58 +02:00
niv-openerp 9fef7daead Added niv's functions to make jsonrpc and removed some references to _.str
bzr revid: nicolas.vanhoren@openerp.com-20130731151720-1iiohpkc1f6jqv3o
2013-07-31 17:17:20 +02:00
Vo Minh Thu a507a9ea05 [MERGE] workflows: added some documentation and some tests.
bzr revid: vmt@openerp.com-20130731151636-05lgd5i08rie6yqp
2013-07-31 17:16:36 +02:00
Vo Minh Thu 07f5e9a4d6 [REM] workflows: removed temporary run.py script from the tests.
bzr revid: vmt@openerp.com-20130731151104-mxo8qu5x12krto0h
2013-07-31 17:11:04 +02:00
Vo Minh Thu 3d1d7ee39c [DOC] workflows: typos, and removed inaccurate environment symbols.
bzr revid: vmt@openerp.com-20130731150943-etfvn08fnkhcecvt
2013-07-31 17:09:43 +02:00
niv-openerp d7a9a596a7 Put JSONRpc class in openerpframework
bzr revid: nicolas.vanhoren@openerp.com-20130731145623-lxac6w12ocoh2e8e
2013-07-31 16:56:23 +02:00
niv-openerp aa5c781d90 Removed dependency to underscore.string in openerpframework.js
bzr revid: nicolas.vanhoren@openerp.com-20130731144805-9hbxxfbrweb0clhx
2013-07-31 16:48:05 +02:00