Commit Graph

279 Commits

Author SHA1 Message Date
Xavier Morel 27ca901a92 [FIX] update py.js to correctly handle comparisons between strings and booleans
bzr revid: xmo@openerp.com-20120229085250-ihg2vgjrpl2eyd0i
2012-02-29 09:52:50 +01:00
niv-openerp f1280e67f2 [fix] context menu without .openerp class
bzr revid: nicolas.vanhoren@openerp.com-20120228143446-a5hf4po2dtxgskye
2012-02-28 15:34:46 +01:00
niv-openerp db64573a8d [imp] cosmetic change
bzr revid: nicolas.vanhoren@openerp.com-20120227162704-9f6piiywf7cz2rk8
2012-02-27 17:27:04 +01:00
niv-openerp d1498035f0 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20120227132024-06p0skdlx1ixbi3g
2012-02-27 14:20:24 +01:00
Fabien Meghazi d4d05566cc [IMP] Upgrade to jQuery 1.7.2b1
bzr revid: fme@openerp.com-20120227124545-7qnpjp4uc02wg0h2
2012-02-27 13:45:45 +01:00
niv-openerp c0232fb748 [imp] clarification
bzr revid: nicolas.vanhoren@openerp.com-20120227105902-65c8b5q8ju6qqatq
2012-02-27 11:59:02 +01:00
niv-openerp 72bce79c86 [imp] cosmetic improvements
bzr revid: nicolas.vanhoren@openerp.com-20120227104418-70rfdvya0ni5aif8
2012-02-27 11:44:18 +01:00
niv-openerp 080c9ed7fd [imp] renammed niv to nova
bzr revid: nicolas.vanhoren@openerp.com-20120227103715-ez6m5bth0spbuupk
2012-02-27 11:37:15 +01:00
Xavier Morel 910f217da1 [IMP] update qunit to 1.3
bzr revid: xmo@openerp.com-20120227094132-dk41nad2mx854s4p
2012-02-27 10:41:32 +01:00
niv-openerp f23a5914ca [imp] cleaned initialization of mixins
bzr revid: nicolas.vanhoren@openerp.com-20120227093413-8qp1vo90500h9lrw
2012-02-27 10:34:13 +01:00
Xavier Morel 739f719ad6 [UP] py.parse 0.2 to py.js 0.4 ~
should probably go through a testing phase (checking its result
against that of eval_domain_and_context) for a while, but apart from
that it's supposed to work.

'stdlib' stuff (datetime.date.today, datetime.timedelta,
time.localtime, time.time, time.strftime) still need to be
written. Isn't there also a dateutil.relativedeleta somewhere?

Anyway that needs to be done and the various evaluation contexts need
to be defined, but the valuator itself should mostly work.

bzr revid: xmo@openerp.com-20120227073721-nkgeiqacbzch8xev
2012-02-27 08:37:21 +01:00
niv-openerp b6f93c8fa6 [fix] some bugs providing the web client to work
bzr revid: nicolas.vanhoren@openerp.com-20120224135859-w937wgm51328dbk1
2012-02-24 14:58:59 +01:00
niv-openerp 8a8da7973a [imp] added some tests, debugged some bugs
bzr revid: nicolas.vanhoren@openerp.com-20120224135027-axsjx7x0ajlzvolh
2012-02-24 14:50:27 +01:00
niv-openerp e7f06acb84 [imp] added widget
bzr revid: nicolas.vanhoren@openerp.com-20120224124031-l31832108z69od4i
2012-02-24 13:40:31 +01:00
niv-openerp a9368e6eec [imp] added GetterSetterMixin
bzr revid: nicolas.vanhoren@openerp.com-20120224123151-fmkh3fonswkhtu36
2012-02-24 13:31:51 +01:00
niv-openerp 56b07a90cd [imp] small messages
bzr revid: nicolas.vanhoren@openerp.com-20120223175419-0rjeodw3q8zqeelv
2012-02-23 18:54:19 +01:00
niv-openerp 334d3f5875 [imp] added most methods for EventDispatcherMixin
bzr revid: nicolas.vanhoren@openerp.com-20120223173959-di5xl97uci1pnz6x
2012-02-23 18:39:59 +01:00
niv-openerp 0246ffeee0 [imp] added event dispatcher mixin
bzr revid: nicolas.vanhoren@openerp.com-20120223171840-mege8l7aopnbkck2
2012-02-23 18:18:40 +01:00
niv-openerp c14a9ca58c [imp] added events + some tests
bzr revid: nicolas.vanhoren@openerp.com-20120223162955-ffs5mun7w8400m4o
2012-02-23 17:29:55 +01:00
niv-openerp 8b0380b318 [imp] added destroyable mixin
bzr revid: nicolas.vanhoren@openerp.com-20120223161336-ea4xbup4teyvereu
2012-02-23 17:13:36 +01:00
niv-openerp fa510462f4 [imp] switched to nivjs
bzr revid: nicolas.vanhoren@openerp.com-20120223161041-mymbna11fsp3bo9m
2012-02-23 17:10:41 +01:00
niv-openerp 2b73fb4a6a [imp] restored nivjs
bzr revid: nicolas.vanhoren@openerp.com-20120223102323-1sa7s7sieicgprfp
2012-02-23 11:23:23 +01:00
niv-openerp 6539674437 [imp] removed future lib
bzr revid: nicolas.vanhoren@openerp.com-20120221163730-8cx3tlcik2ym6u5x
2012-02-21 17:37:30 +01:00
niv-openerp a7386b589a [imp] extracted parenting into a mixin
bzr revid: nicolas.vanhoren@openerp.com-20120221163547-i1ii1frqj9b6ddtp
2012-02-21 17:35:47 +01:00
niv-openerp 4ee34acbbe [imp] cosmetic changes
bzr revid: nicolas.vanhoren@openerp.com-20120221155806-e6efydx5k7qtppdn
2012-02-21 16:58:06 +01:00
niv-openerp cdd8489e4c [imp] further refactoring of parents
bzr revid: nicolas.vanhoren@openerp.com-20120221154458-imbqiywuj91mds9c
2012-02-21 16:44:58 +01:00
niv-openerp a6f6b7fd9d [imp] added setParent
bzr revid: nicolas.vanhoren@openerp.com-20120221152212-yr6iaa2znq37mcsz
2012-02-21 16:22:12 +01:00
niv-openerp 156a893ae7 [imp] added nivjs
bzr revid: nicolas.vanhoren@openerp.com-20120221144258-bird80qxxho1flbc
2012-02-21 15:42:58 +01:00
Fabien Meghazi 1ead58101f [FIX] Datetime widget buggy since jquery.ui upgrade
lp bug: https://launchpad.net/bugs/928918 fixed

bzr revid: fme@openerp.com-20120214105145-pat0srumt8m7nq38
2012-02-14 11:51:45 +01:00
Fabien Meghazi f12e598b59 [FIX] QWeb2: Array-like character access in String is not supported in IE<8
bzr revid: fme@openerp.com-20120213144234-dtdw5e8ho4x85frj
2012-02-13 15:42:34 +01:00
Fabien Meghazi af15e1d83e [ADD] Added tipsy.clear()
bzr revid: fme@openerp.com-20120209135939-pcnmoswvnqjjb6ik
2012-02-09 14:59:39 +01:00
Fabien Meghazi 0d7ff5dec8 [FIX] Fix some tipsy stuff
Autobound on 'n' fails with absolute positioned elements.

Make tipsy checks that it's element is still attached to another element

bzr revid: fme@openerp.com-20120209105401-1jl11sy9z1qdwu3t
2012-02-09 11:54:01 +01:00
Fabien Meghazi ce65bc3ac3 [IMP] Add QWeb preprocess_node callback. Translate @label, @title and @alt attributes in web client
bzr revid: fme@openerp.com-20120207132901-ifwnfj6c4mp451tl
2012-02-07 14:29:01 +01:00
Xavier Morel 7b25f9d4c7 [UP] update underscore
bzr revid: xmo@openerp.com-20120206101215-yutyc4dv2p1qgxtu
2012-02-06 11:12:15 +01:00
Fabien Meghazi eddfc1a56a [IMP] Upgraded jQuery UI from 1.8.9 to 1.8.17
lp bug: https://launchpad.net/bugs/916342 fixed

bzr revid: fme@openerp.com-20120201163312-htze3vpzb3opgnoy
2012-02-01 17:33:12 +01:00
Fabien Meghazi 8abe9402e2 [REM] QWeb: removed xpath support
bzr revid: fme@openerp.com-20120201132217-h2i9a3g082i9ui9y
2012-02-01 14:22:17 +01:00
Fabien Meghazi ab447a4f13 [FIX] Use childnodes and not the whole extend node
bzr revid: fme@openerp.com-20120201124822-xo1msj0ou09o73uh
2012-02-01 13:48:22 +01:00
Fabien Meghazi 0839b0e4ee [FIX] QWeb template inheritance done right
bzr revid: fme@openerp.com-20120201122926-poh3q2157ra9tzjd
2012-02-01 13:29:26 +01:00
Fabien Meghazi 06061d4872 [FIX] Changed tooltip plugin that caused problems under firefox
bzr revid: fme@openerp.com-20120126132441-wxg1gumrq9uetd70
2012-01-26 14:24:41 +01:00
Xavier Morel a4a8e0eee1 [IMP] avoid losing error message when DOM parser fails to initialize in MSIE
bzr revid: xmo@openerp.com-20120125160949-5pr4h7aquohykdn2
2012-01-25 17:09:49 +01:00
Xavier Morel 4bfd2047aa [FIX] template rendering issues in IE8
bzr revid: xmo@openerp.com-20120124101155-b52f8b3jd6otn7j9
2012-01-24 11:11:55 +01:00
Xavier Morel 86b15b7e9d [FIX] error reporting in _.sprintf
bzr revid: xmo@openerp.com-20120120145925-jko6qqombu3fxpoj
2012-01-20 15:59:25 +01:00
Xavier Morel 31e8d0f843 [FIX] if a text node is composed only of whitespace, IE<=8 just throws the fucking thing out. Add @xml:space to "fix".
It does not just collapse the whitespace, it does not even insert the
node into its XML DOM unless said node is within the scope of an
@xml:space="preserve" (which mandates that the parser leaves all text
unmolested).

Added that in the foreach test case (which makes use of significant
whitespace), but we may have to add it to templates as well in some
cases (since whitespace is significant in HTML)..

bzr revid: xmo@openerp.com-20120118112538-ju4kxfz154qm8yny
2012-01-18 12:25:38 +01:00
Xavier Morel 00af91057f [FIX] Internet Explorer can't CDATA in HTML documents, convert XML CDATA sections into TEXT html sections
bzr revid: xmo@openerp.com-20120118112451-f7sbhzalhl2vapmc
2012-01-18 12:24:51 +01:00
Xavier Morel d5a0079d09 [IMP] LOWERCASE ALL THE THINGS
MSIE serializes nodes to UPPERCASE EVERYTHING (unless the known are generic/unknown), which breaks tests as JS doesn't really have case-insensitive comparisons

bzr revid: xmo@openerp.com-20120118110118-pfiy1n2g4yhfjtso
2012-01-18 12:01:18 +01:00
Xavier Morel 80cc9c990f [FIX] XML serialization for MSIE8 (not by much, but now it kinda works again)
bzr revid: xmo@openerp.com-20120118105751-2jnwcilwc5p6kgth
2012-01-18 11:57:51 +01:00
Xavier Morel 45371d6e9c [IMP] qweb: switch is shorter than inline object + dispatch
bzr revid: xmo@openerp.com-20120118105720-g0zntwfqnxh5j4gf
2012-01-18 11:57:20 +01:00
Xavier Morel 44f4444807 [REM] incorrect link to local jQuery
bzr revid: xmo@openerp.com-20120118104646-2auwjwcr5lag2g5c
2012-01-18 11:46:46 +01:00
Xavier Morel 0694c25836 [FIX] convert XML documents to HTML in MSIE so jQuery does not bork its parsing
done via DOM traversal, slow as shit and currently drops half the attributes

bzr revid: xmo@openerp.com-20120118104015-ot102e8yniqjd4bf
2012-01-18 11:40:15 +01:00
Fabien Meghazi 152f92916b [FIX] QWeb: well... ahem... This is embarassing...
bzr revid: fme@openerp.com-20120117215949-36uxh7r1izvah35l
2012-01-17 22:59:49 +01:00
Fabien Meghazi ad3604737d [FIX] Fix QWeb default dict extend
bzr revid: fme@openerp.com-20120117215542-2j31xq9iovu2z0cv
2012-01-17 22:55:42 +01:00
Fabien Meghazi ebb62abe7a [FIX] QWeb: fix 2 unit tests
bzr revid: fme@openerp.com-20120117212234-u4wo2m9c3ew2t6ej
2012-01-17 22:22:34 +01:00
Xavier Morel c82878388a [FIX] qweb: benchmark on browsers without console.time & console/timeEnd
bzr revid: xmo@openerp.com-20120117143806-x5hqclaw6a8hdu98
2012-01-17 15:38:06 +01:00
Fabien Meghazi 425b6b4b33 [FIX] QWeb: Internet Explorer DOM converts tags to uppercase
bzr revid: fme@openerp.com-20120117135958-gv2iv4ixomqzcnny
2012-01-17 14:59:58 +01:00
Fabien Meghazi 246fee51c6 [IMP] Updated jquery.tipTip
bzr revid: fme@openerp.com-20120117103217-jmjhm6i1baaljmty
2012-01-17 11:32:17 +01:00
Fabien Meghazi 5f3e6fdd9e [IMP] Disable right click on m2o button
bzr revid: fme@openerp.com-20120111140222-cirxtmubrma6qj9b
2012-01-11 15:02:22 +01:00
Xavier Morel 1a2d28370d [IMP] remove layerX and layerY from event properties copied by jquery, to avoid recent webkit warnings
bzr revid: xmo@openerp.com-20111220151257-opggu8cjdtbt3p12
2011-12-20 16:12:57 +01:00
Fabien Meghazi ec123c78db [FIX] Disable tooltip when clicking on action buttons
bzr revid: fme@openerp.com-20111207113559-128r2hkg4x62in2i
2011-12-07 12:35:59 +01:00
Xavier Morel 7712b81bf1 [FIX] py.js tokenizer: numbers can have a dot in them
lp bug: https://launchpad.net/bugs/900699 fixed

bzr revid: xmo@openerp.com-20111206135045-df4e3pzzubpwr6l9
2011-12-06 14:50:45 +01:00
Fabien Meghazi a6a069a5db [FIX] QWeb inheritance broken in MSIE (8, 9, 10), client does not work at all
Could not test on IE 7 neither IE 10
IE 8 still crashes but for another error

lp bug: https://launchpad.net/bugs/891132 fixed

bzr revid: fme@openerp.com-20111129232025-b49gr4k2ngnqahbt
2011-11-30 00:20:25 +01:00
Fabien Meghazi 8c593ea507 [IMP] jQuery tipTip: call options.content() with 'this' == element
Note: will maintain forked version here 
https://github.com/amigrave/TipTip

bzr revid: fme@openerp.com-20111128140302-uukrsnpfneksr9co
2011-11-28 15:03:02 +01:00
Xavier Morel 19c123d831 [IMP] jquery from 1.6.2 to 1.6.4
bzr revid: xmo@openerp.com-20111125143918-ja5wjs00905d58uz
2011-11-25 15:39:18 +01:00
Xavier Morel ed665ec44e [IMP] update qunit to 1.2
bzr revid: xmo@openerp.com-20111125090145-3plxy4tr1l2nm3ne
2011-11-25 10:01:45 +01:00
Fabien Meghazi f386b74eff [IMP] QWeb2: add 'console' in reserved words
bzr revid: fme@openerp.com-20111116164210-ktn35gjb703kdrek
2011-11-16 17:42:10 +01:00
Fabien Meghazi db2c85635b [IMP] Upgraded unserscore version from 1.1.7 to 1.2.2 and underscore.string from 1.1.6 to 1.2.0
WARNING: underscore string does not mixin to underscore by default. Use _.str.*

bzr revid: fme@openerp.com-20111115123059-k31lhp0db2d8h22k
2011-11-15 13:30:59 +01:00
Fabien Meghazi 90a73bb63c [FIX] Prevent jquery.tipTip to activate when source node is not attached to DOM anymore
bzr revid: fme@openerp.com-20111115091347-0wh7yf8df2y653d8
2011-11-15 10:13:47 +01:00
Fabien Meghazi a9777f9598 [ADD] Added jQuery tipTip
bzr revid: fme@openerp.com-20111114204925-nsrkn93c3tizqzm8
2011-11-14 21:49:25 +01:00
Fabien Meghazi f975258f0f [ADD] Added jquery.scrollTo
bzr revid: fme@openerp.com-20111109115744-m20vq3szt3hak3lf
2011-11-09 12:57:44 +01:00
Fabien Meghazi 44344a21b2 [ADD] Added jQuery.MD5
bzr revid: fme@openerp.com-20111025083648-x5nd1mv7z7nee7cl
2011-10-25 10:36:48 +02:00
Fabien Meghazi b4cb0ae477 [IMP] QWeb2: do not swallow stack trace with try,catch in debug mode
bzr revid: fme@openerp.com-20111020104218-q0qe91v99hz8a4yq
2011-10-20 12:42:18 +02:00
Fabien Meghazi 8e34b97b09 [ADD] Add format_text_node callback in qweb instance. Will be used for translations
bzr revid: fme@openerp.com-20111020091527-wxnw5kfpucvlncif
2011-10-20 11:15:27 +02:00
Xavier Morel 3cde15fe01 [ADD] evaluator proof of concept: colors in list rows
bzr revid: xmo@openerp.com-20110929144036-7u2w6pf6lwkvzck0
2011-09-29 16:40:36 +02:00
Xavier Morel d32d0c5637 [IMP] update py.parse to 0.2
bzr revid: xmo@openerp.com-20110929135449-ssommvnyof6auy29
2011-09-29 15:54:49 +02:00
Xavier Morel 56c026fbc4 [UP] underscore.string to version 1.1.6
bzr revid: xmo@openerp.com-20110926162529-n0ok06nmh0yowoms
2011-09-26 18:25:29 +02:00
Xavier Morel c94872fc02 [ADD] basic colors support to listview via py.parse
bzr revid: xmo@openerp.com-20110925180407-n0asxrrjeb1oo5a4
2011-09-25 20:04:07 +02:00
Xavier Morel baf367d0e1 [IMP] move fetching of fields for import to javascript. Also extraction of required fields
bzr revid: xmo@openerp.com-20110923083341-xa3sg2t053zonlsm
2011-09-23 10:33:41 +02:00
Fabien Meghazi 6c7c08a62f [ADD] Add debug url hack for qweb xhr templates
bzr revid: fme@openerp.com-20110912090727-hv3bslofmcpj06ld
2011-09-12 11:07:27 +02:00
Fabien Meghazi 3908e0eb88 [ADD] QWeb2: add default dict
bzr revid: fme@openerp.com-20110907081633-vhuaf55e1dxxja2z
2011-09-07 10:16:33 +02:00
Antony Lesuisse bedfc48dcf rename base into web part1
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
2011-09-05 13:03:09 +02:00