Commit Graph

26 Commits

Author SHA1 Message Date
Raphael Collet 43ca577f99 [FIX] js tests: add an abstraction over instance to create properly an assertion function
bzr revid: rco@openerp.com-20121210154309-mubr65ildpiw2wpx
2012-12-10 16:43:09 +01:00
Raphael Collet 38994104f0 [IMP] js tests: when testing pyeval on datetimes, avoid comparison with an indepent call to new Date()
bzr revid: rco@openerp.com-20121210151828-lfzyfy75oldkjxk5
2012-12-10 16:18:28 +01:00
niv-openerp 053d6af231 [FIX] forgot to modify test after API change
bzr revid: nicolas.vanhoren@openerp.com-20121130140335-k1nus3oz1xw6deeu
2012-11-30 15:03:35 +01:00
niv-openerp f9b9e7c4cb [IMP] added context_today()
bzr revid: nicolas.vanhoren@openerp.com-20121129160746-c3c691zk5fxhzse0
2012-11-29 17:07:46 +01:00
niv-openerp cc6f0aa20a [FIX] potential problem with pyeval datetime/date today()/now() methods. Now only returns the same timezone than server (UTC).
bzr revid: nicolas.vanhoren@openerp.com-20121129153601-vtpnvkc0vylo9hux
2012-11-29 16:36:01 +01:00
Xavier Morel aab69ae7a9 [TEST] for crazy
bzr revid: xmo@openerp.com-20121126084159-lbgfa56vafg4bxc4
2012-11-26 09:41:59 +01:00
Xavier Morel 2c7f30a047 [REM] session reload dependency on db
bzr revid: xmo@openerp.com-20121123120500-k7fhwoocu0zbiali
2012-11-23 13:05:00 +01:00
Xavier Morel 6b2b2d889c [IMP] move nonliteral domains and contexts to JS test case
bzr revid: xmo@openerp.com-20121123114923-t4047w6jztria91x
2012-11-23 12:49:23 +01:00
Xavier Morel 709f2506ff [REM] server-side eval_domain_and_context
bzr revid: xmo@openerp.com-20121123113932-siz0u2vp2u7z6wk2
2012-11-23 12:39:32 +01:00
Xavier Morel 242a5da5a9 [REM] stray logging
bzr revid: xmo@openerp.com-20121123095824-xg6afc1l01t3y48y
2012-11-23 10:58:24 +01:00
Xavier Morel 328537a7ba [ADD] arithmetics between date and timedelta
bzr revid: xmo@openerp.com-20121123095206-dtvoiignb7xnzsl0
2012-11-23 10:52:06 +01:00
Xavier Morel 815b908759 [ADD] partial but sufficient (I think) implementation of datetime.timedelta
bzr revid: xmo@openerp.com-20121123075938-oazwt4bn2l639r3a
2012-11-23 08:59:38 +01:00
Xavier Morel 3909d1ff02 [ADD] a bunch of eval domain and context tests
bzr revid: xmo@openerp.com-20121122111628-4khivcp97xoy121i
2012-11-22 12:16:28 +01:00
Xavier Morel 5a9f78302f [MERGE] from trunk
when creating the instance, set instance.session.uid to 42 so the evaluator has something to chew on when it tries to create the evaluation context

bzr revid: xmo@openerp.com-20121120101733-b0ire11bbuywfi8u
2012-11-20 11:17:33 +01:00
Xavier Morel a130035409 [IMP] port basic/existing tests to new framework, apart from editor stuff
bzr revid: xmo@openerp.com-20121026092144-0arxx2v9oi28e3d6
2012-10-26 11:21:44 +02:00
Xavier Morel b94e9c30a7 [FIX] after discussions with odo, date/datetime/time for locally-evaluated contexts and domains should be local, not UTC
bzr revid: xmo@openerp.com-20121011075759-qfwkfws5tu9yidab
2012-10-11 09:57:59 +02:00
Xavier Morel 1fa00288b2 [FIX] add 'context' free variable in evaluation contexts for domains and contexts
bzr revid: xmo@openerp.com-20121010145945-16shdry3udum0mn1
2012-10-10 16:59:45 +02:00
Xavier Morel 894bd34e62 [REM] timedelta, because pain
bzr revid: xmo@openerp.com-20121008125523-ed1g42vjxbcfo62r
2012-10-08 14:55:23 +02:00
Xavier Morel 7bcbadb099 [FIX] update py.js to 0.6, port existin classes to it, attempt to implement timedelta
bzr revid: xmo@openerp.com-20121008120619-lhmexjnujjrigjn9
2012-10-08 14:06:19 +02:00
Xavier Morel 10bc6ddfe4 [ADD] groupby eval tests
bzr revid: xmo@openerp.com-20121005142808-yx6o8nfnn0o4ms56
2012-10-05 16:28:08 +02:00
Christophe Simonis 63e4d9b572 [IMP] sed -i '' -e 's/connection/session/g'
bzr revid: chs@openerp.com-20120814152900-8r84kyz0qy1hwkvz
2012-08-14 17:29:00 +02:00
Xavier Morel 6f4abdfbd5 [IMP] move eval functions for domains, groupbys and contexts outside of corelib, as well as the standard evaluation context building (and related objects)
bzr revid: xmo@openerp.com-20120806094627-8c9lwtfkbfws2bmj
2012-08-06 11:46:27 +02:00
Xavier Morel f1b6bc35d6 [FIX] add current_date to JS evaluation context
bzr revid: xmo@openerp.com-20120801144435-h0643av6ju9ncdpx
2012-08-01 16:44:35 +02:00
Xavier Morel e7ab44929f [MERGE] from trunk
bzr revid: xmo@openerp.com-20120419081213-m3fhofkgydj6gp1m
2012-04-19 10:12:13 +02:00
Xavier Morel a029cf244f [FIX] in a compound context, context n+1 has all of its preceding siblings in its evaluation context
bzr revid: xmo@openerp.com-20120405095009-v2i1xg8gf6lvigjv
2012-04-05 11:50:09 +02:00
Xavier Morel 239a118913 [FIX] compound domain and context's eval_context can be a compound itself, evaluate those if needs be
also fix tests html file for renames and extracts, and add a test case for complex non-literal evaluation contexts

bzr revid: xmo@openerp.com-20120404114830-a6416m2v7h8cyf08
2012-04-04 13:48:30 +02:00