Commit Graph

36 Commits

Author SHA1 Message Date
Antony Lesuisse e8cbbeddff applicationsession
bzr revid: al@openerp.com-20110407030429-d6c26b10zduodir0
2011-04-07 05:04:29 +02:00
Antony Lesuisse df73cbb7a8 fix httprequest for web_chat
bzr revid: al@openerp.com-20110407024748-g2gf4u854qsu4eny
2011-04-07 04:47:48 +02:00
Antony Lesuisse d85a600824 split viewmanager and dataset
bzr revid: al@openerp.com-20110406005136-6w992t10sr2588c6
2011-04-06 02:51:36 +02:00
Antony Lesuisse c7e2d214ad renames part6 partially working
bzr revid: al@openerp.com-20110330143556-yogu79hyy5oojdvq
2011-03-30 16:35:56 +02:00
Xavier Morel c3d74fe290 [ADD] handling of own values on fields (e.g. self, values which are used to evaluate the field's context and domain, but not any other field's)
Also fix bugs in fields_view_get: didn't evaluate filter_domain to a nonliteral Domain (or a literal domain dict)

bzr revid: xmo@openerp.com-20110329090941-av5ymojubq23yjim
2011-03-29 11:09:41 +02:00
Xavier Morel e549c9f7cb [IMP] cleanup initialization of evaluation context on eval_domain and eval_context
bzr revid: xmo@openerp.com-20110329082034-zh2gx656806bu2se
2011-03-29 10:20:34 +02:00
Xavier Morel 5e426a9c31 [IMP] move storage of contexts to OpenERPSession.context_store, fix a number of tests it broke including one it revealed was completely broken
test_retrieve_second_domain passing relied on domains and contexts being stored in the same place, as it created a domain from a context key and tried to check if that worked. It did...

bzr revid: xmo@openerp.com-20110329082002-8rnvnp9cog9gr7zd
2011-03-29 10:20:02 +02:00
Xavier Morel 6f3862e101 [ADD] non-literal contexts
bzr revid: xmo@openerp.com-20110328151410-6ep57ay6sdc2k39r
2011-03-28 17:14:10 +02:00
Xavier Morel e7860c7e63 [IMP] use non-literal domains to and from client, add a bunch of tests
Converted OpenERPSession's evaluations to be based on literal (dict) or nonliteral (Domain) objects. OpenERPSession will *not accept* to eval strings

bzr revid: xmo@openerp.com-20110328141920-hlp6sb173o2j6ldw
2011-03-28 16:19:20 +02:00
Xavier Morel fd9da7558a [ADD] start working on adding the concept of literal and non-lit domains, non-lit domains will *not* be pushed to the client but will be stored locally and only a ref will go through
bzr revid: xmo@openerp.com-20110328122724-gnxn8cnta4xyotab
2011-03-28 14:27:24 +02:00
Xavier Morel ec7510b839 [FIX] documentation handling issues
bzr revid: xmo@openerp.com-20110328091809-kju0n2rw232z1pxf
2011-03-28 11:18:09 +02:00
Xavier Morel b49ece30d3 [FIX] evaluation context should contain itself (as some domains go get stuff via context.get)
bzr revid: xmo@openerp.com-20110325150838-qxo8ruf6i2v3jt5l
2011-03-25 16:08:38 +01:00
Xavier Morel 632d93afa7 [ADD] evaluation of search contexts and domains, hook ViewManager to the dataset in order to perform the correct search.
I'm pretty sure there's a race condition somewhere in there, in the initial loading of the whole mess I bet we can have the auto_search triggering before the list controller is done loading...

We probably need some deferred (one for each searchable view in the manager + one for the searchview itself) and a final one waiting on them all (I don't think jquery's deferred can do that built-in) before launching the auto_search

bzr revid: xmo@openerp.com-20110325123252-fjrgj4aicac3fo3b
2011-03-25 13:32:52 +01:00
Xavier Morel 0a7efc04dc [IMP] eval action context and domain straight as they come from a tree_but_open (on menu), add APIDoc for OpenERPSession
OpenERPSession is in charge of evaluating domains and contexts. Always.

bzr revid: xmo@openerp.com-20110325094119-fpd4e00w20kbgfzf
2011-03-25 10:41:19 +01:00
Xavier Morel e49be016f3 [ADD] tests for the root dispatcher, fix dispatching: start from the *end* of the url and walk backwards to try to find a dispatcher and its method
bzr revid: xmo@openerp.com-20110321170357-6k9f7qjww1s2wj3g
2011-03-21 18:03:57 +01:00
Xavier Morel 68e4357e47 [FIX] root dispatcher should raise a 404 error when a controller is not found
bzr revid: xmo@openerp.com-20110321162904-33ai6lqaty0unhro
2011-03-21 17:29:04 +01:00
Xavier Morel 698875cc27 [ADD] basic test to openerpweb (to test the behavior of OpenERPModels)
bzr revid: xmo@openerp.com-20110321121447-c81cg3n3a97nx15h
2011-03-21 13:14:47 +01:00
Xavier Morel 3d02b3f804 [ADD] tests for base.controllers.main.Menu.load
* Make model factory pluggable in OpenERPSession (so it's possible to mock the models handler)
* Split load between the JSON-RPC handler and the actual logic
* Add some docstring to Menu.do_load

bzr revid: xmo@openerp.com-20110321104735-9hmrsyoccueya9fh
2011-03-21 11:47:35 +01:00
Xavier Morel 99f29c8202 [IMP] reformat python code in core and base
bzr revid: xmo@openerp.com-20110321081331-gvgb1qt6v80oq5hm
2011-03-21 09:13:31 +01:00
Xavier Morel 77b06b59a4 [FIX] extraction of a class's full name, use datamodel attributes instead of string munging
bzr revid: xmo@openerp.com-20110321080632-xpqbwwnjrqk31hly
2011-03-21 09:06:32 +01:00
Antony Lesuisse fd047b34ca [MERGE] xmo proper session management
bzr revid: al@openerp.com-20110320132146-qysfemcluvraa4ww
2011-03-20 14:21:46 +01:00
Xavier Morel c4acb091be [IMP] use CherryPy session storage, file-based, to store the openerp sessions
bzr revid: xmo@openerp.com-20110318141836-1p2dv6ohz4guknx4
2011-03-18 15:18:36 +01:00
Xavier Morel 38f62edbdc [FIX] correctly generate independent sessions
bzr revid: xmo@openerp.com-20110317171401-3qekzs59ue5tlywx
2011-03-17 18:14:01 +01:00
Xavier Morel 20b55e10c1 [IMP] redirect to root page instead of providing a link
bzr revid: xmo@openerp.com-20110317160124-9a9fde1cqimct59a
2011-03-17 17:01:24 +01:00
Xavier Morel 5298cde953 [FIX] content-type of JSON-RPC2 responses
bzr revid: xmo@openerp.com-20110317155914-rh3w4puch88o2h77
2011-03-17 16:59:14 +01:00
Antony Lesuisse d51d885c77 [MERGE] xmo compliant json-rpc2
bzr revid: al@openerp.com-20110317154746-7mbwuqt9gk940mra
2011-03-17 16:47:46 +01:00
Antony Lesuisse 1d13b61284 login ask for db
bzr revid: al@openerp.com-20110317150153-afr9lmsy1ihuafrt
2011-03-17 16:01:53 +01:00
Xavier Morel e1ec3c8b3b [FIX] misreading of the spec: the 32099..-32000 range is for *server* errors, not *application* errors
bzr revid: xmo@openerp.com-20110317141813-ywn7uize8z04kvee
2011-03-17 15:18:13 +01:00
Xavier Morel ba4054f6fc [IMP] cleanup JSON-RPC request lifecycle
bzr revid: xmo@openerp.com-20110317140627-hurby78o45xrmg6p
2011-03-17 15:06:27 +01:00
Xavier Morel dc3abe055b [FIX] JSON-RPC2 request/response process
bzr revid: xmo@openerp.com-20110317130946-ptpaihigvie31moo
2011-03-17 14:09:46 +01:00
Xavier Morel ea8379a0f2 [FIX] start/stop of cherrypy server so Ctrl-C works correctly
bzr revid: xmo@openerp.com-20110317125107-87is0mml601p987n
2011-03-17 13:51:07 +01:00
Xavier Morel 9cf7baee6b [FIX] use simplejson as json is not available on Python 2.5 (also simplejson has better perfs)
bzr revid: xmo@openerp.com-20110310155345-8nxu3i92hno4j2yc
2011-03-10 16:53:45 +01:00
niv-openerp 13d8b38c4e [FIX] Cleaned for eclipse.
bzr revid: nicolas.vanhoren@openerp.com-20110308145754-uzjzt5unoa2sslri
2011-03-08 15:57:54 +01:00
niv-openerp 747783efea [FIX] Corrected indentation.
bzr revid: nicolas.vanhoren@openerp.com-20110308145530-rdy43672n558kq5s
2011-03-08 15:55:30 +01:00
Antony Lesuisse fc679ac8a5 preliminary addons loading support
bzr revid: al@openerp.com-20110307092632-e0a6rho0bvuk04ei
2011-03-07 10:26:32 +01:00
Antony Lesuisse 820630a906 openobject is dead long live to openerpweb
bzr revid: al@openerp.com-20110302185606-gcag0tlkcli0kqas
2011-03-02 19:56:06 +01:00