Commit Graph

720 Commits

Author SHA1 Message Date
Xavier Morel c153c2d46b [ADD] server-side web addons
bzr revid: xmo@openerp.com-20100928075257-06f2b3o6kvdb9f6y
2010-09-28 09:52:57 +02:00
Olivier Dony e4e6e04a61 [IMP] ir.property: fixed compatibility with python 2.5
bzr revid: odo@openerp.com-20100924101545-2baak1xfh0v8z04n
2010-09-24 12:15:45 +02:00
Julien Thewys d90f632ad7 [FIX] Moved definition of smtplib error logger in the right scope.
bzr revid: jth@openerp.com-20100923135820-t1uqp0k4iwfgxaw6
2010-09-23 15:58:20 +02:00
Olivier Dony 6af5da11d1 [REM] tools.config, ir.actions.server: removed server_actions_allow_code option now that safe_eval is in place
Also re-allowed server actions to return an "action" to execute, and replaced contexts passed to eval by copies to avoid one possible source of side-effects.

bzr revid: odo@openerp.com-20100921131437-sgdz6sk4lwdcc3ch
2010-09-21 15:14:37 +02:00
Xavier Morel 773839ed75 [IMP] don't manually split'n load base.sql, cr.execute has no problem eating a whole file (as far as I can see)
bzr revid: xmo@openerp.com-20100921130657-bkqqyscgzmryhap1
2010-09-21 18:36:57 +05:30
Fabien Pinckaers 9c62cde38f [IMP] improve debug for --log-level=debug_sql
bzr revid: fp@tinyerp.com-20100918093052-nxapeqahzt4cpr2m
2010-09-18 11:30:52 +02:00
Olivier Dony cd3692125f [FIX] yaml_import: proper support of different value types for date[time] fields in yml tests
bzr revid: odo@openerp.com-20100917094100-uaebg1jbmtc3rwz8
2010-09-17 11:41:00 +02:00
Olivier Dony 1b914a32c5 [IMP] yaml_import: enforce ISO date format for date[time] fields in yml tests, to execute test in locale-agnostic manner
bzr revid: odo@openerp.com-20100916150805-9ys3gydvu6sz0l8i
2010-09-16 17:08:05 +02:00
Olivier Dony 24ff6d033b [IMP] yaml_import: enforce ISO date format for date[time] fields in yml tests, to execute locale-agnostic tests
bzr revid: odo@openerp.com-20100916144644-thsb8624du8ik6rn
2010-09-16 16:46:44 +02:00
Olivier Dony 504c545cd7 [IMP] tools/convert: allow multiple root elements in view architectures (all fields with type=xml)
bzr revid: odo@openerp.com-20100916114726-9u10bm9k57nrwht5
2010-09-16 13:47:26 +02:00
Fabien Pinckaers 4e6047dca4 [IMP] Saving test reports in directories
bzr revid: fp@tinyerp.com-20100912120743-ipb8mbl1udk53uuo
2010-09-12 14:07:43 +02:00
Olivier Dony 6cb0f0c23b [REVERT] incorrect patch to tools.translate - not yet reviewed
bzr revid: odo@openerp.com-20100908172708-vgqbwc8e2an30hxw
2010-09-08 19:27:08 +02:00
Anup (OpenERP) 7c3e6a6ed6 [FIX] message of _sql_constraint is being translated now
bzr revid: ach@tinyerp.com-20100908162403-pcau9acjq0xhhxu0
2010-09-08 21:54:03 +05:30
Jay (OpenERP) cce93ad1ca [FIX] improvement from previous commit
bzr revid: jvo@tinyerp.com-20100908133538-82p99jqs18441es0
2010-09-08 19:05:38 +05:30
Christophe Simonis 417f87440e [FIX] correct config loading
lp bug: https://launchpad.net/bugs/519299 fixed
lp bug: https://launchpad.net/bugs/392114 fixed

bzr revid: chs@openerp.com-20100908130810-kxcvrntdzq4g1d5c
2010-09-08 15:08:10 +02:00
Numérigraphe d6ffcfc3d9 [FIX] tools: missing import in tools pack
lp bug: https://launchpad.net/bugs/605053 fixed

bzr revid: hmo@tinyerp.com-20100907064553-1lwfec7t3g6rhjm0
2010-09-07 12:15:53 +05:30
DHS(OpenERP) 1bfe6b08b0 [FIX] safe_eval() : Added support of len()
lp bug: https://launchpad.net/bugs/631810 fixed

bzr revid: jvo@tinyerp.com-20100907062108-ottaogopnc22w3j0
2010-09-07 11:51:08 +05:30
Harry (OpenERP) 485d0819fd [MERGE]
bzr revid: hmo@tinyerp.com-20100906081104-pkbxwki6189d6ym0
2010-09-06 13:41:04 +05:30
apa-tiny 680d12ad6a [MERGE]:merged from trunk
bzr revid: apa@tinyerp.com-20100903044040-e40gcbebdai9d7gc
bzr revid: apa@tinyerp.com-20100903123541-dfkorou5i9wuzubj
bzr revid: apa@tinyerp.com-20100906045701-dj1f29o2ojltm6r4
2010-09-06 10:27:01 +05:30
P. Christeas ca72c6b1ce [IMP] tools/yaml_import: Try to explain values of failed assertions
When some assertion fails, eg. "a == 4" , try to break it down and eval
the parts so that we see the real "8 == 4" data.

bzr revid: odo@openerp.com-20100902113025-ef3gdit4r6ipwoxn
2010-09-02 13:30:25 +02:00
Fabien Pinckaers 76548b3aff merge
bzr revid: fp@tinyerp.com-20100901164225-3o7njbh96drfvxnp
2010-09-01 18:42:25 +02:00
Fabien Pinckaers 08e975711e better error message when crashing a yaml test
bzr revid: fp@tinyerp.com-20100901164207-g9p5o5p58310e0lp
2010-09-01 18:42:07 +02:00
Harry (OpenERP) 73bbce205b [FIX] tools/yml_import: pass context into update data in record parsing
bzr revid: hmo@tinyerp.com-20100901085707-lxeo23h9ziwilpkx
2010-09-01 14:27:07 +05:30
Anup (OpenERP) 73ac56eaf1 [FIX] msgstr in .pot file must be '' while exporting template translation
bzr revid: ach@tinyerp.com-20100901075244-wz3c75j56q6m79yg
2010-09-01 13:22:44 +05:30
apa-tiny b453709b83 [iMP]:Added filter and round function in global dict.
bzr revid: apa@tinyerp.com-20100831123200-d2y2ced1mnd0fv3g
2010-08-31 18:02:00 +05:30
Harry (OpenERP) cf86268416 [FIX] convert: after upgrade module, got error to parse menu
bzr revid: hmo@tinyerp.com-20100830140508-8mbnjtg5c970j3dt
2010-08-30 19:35:08 +05:30
Olivier Dony a33463b178 [IMP] tools/convert: small readability improvement in parent menu determination
bzr revid: odo@openerp.com-20100830102003-jmzq3vpuvhng1404
2010-08-30 12:20:03 +02:00
P. Christeas b68138961f convert: When loading menu, don't match by name
It is safer to create duplicate menus than assume the same name is the same
menu.

Solved strange case with 'Manufacturing', where it would falsely identify
the 'Manufacturing/Manufacturing' as its parent, and thus create a recursive
menu. If we are parsing the 'a/b/c' name syntax, we have to ommit "c" from
parent search.

Conflicts:

	bin/tools/convert.py

bzr revid: p_christ@hol.gr-20100830094806-3d4flzmp6vazdhtb
2010-08-30 12:48:06 +03:00
Olivier Dony 53c1238913 [REF] tools.misc: expose separate method to generate a tracking Message-ID SMTP header
bzr revid: odo@openerp.com-20100813105404-ceni0xjpusuc8kpy
2010-08-13 12:54:04 +02:00
Julien Thewys 34be1742ad [FIX] Fixed translation string generation when parsing source files.
bzr revid: jth@openerp.com-20100812182412-r64bujtwge7wwz2t
2010-08-12 20:24:12 +02:00
Olivier Dony 8b658219df [REVERT/FIX] safe_eval: revert incorrect tentative fix for missing abs,reduce + correct fix.
WARNING: do not add regular __builtins__ or globals in the safe_eval context dictionary!! The whole point is not to have them available for security purposes!

bzr revid: odo@openerp.com-20100810134046-vrw8niq73axmz5vl
2010-08-10 15:40:46 +02:00
Olivier Dony 910cc41a51 [REF] config/test: renamed test-* config params to use underscores as all others, for consistency.
This will only break existing config files, but command-line stays the same with hyphens of course.

bzr revid: odo@openerp.com-20100810131755-rjwipw4pqhg3uev3
2010-08-10 15:17:55 +02:00
Olivier Dony 891eb265b6 [REF] config: rationalized config parameters to make consistent for v6.
Renamed parameters for static HTTP service + improved param check message.
+ minor cleanup in config params

bzr revid: odo@openerp.com-20100810131200-p71zge94l1qp1s18
2010-08-10 15:12:00 +02:00
apa-tiny c49797ad30 [FIX]:FormatLang is not support any python aggregate function like abs(),reduce() etc as an argument.
bzr revid: apa@tinyerp.com-20100810110942-zb47ggw15qa1c0os
2010-08-10 16:39:42 +05:30
P. Christeas, Olivier Dony 7666ac14a7 [MERGE+IMP] logging: merged xrg's branch to set selective logger level + added new 'debug_sql' loglevel to avoid having to modify sql_db.py to enable SQL logging
bzr revid: odo@openerp.com-20100804134900-dfupojmgcj0rjhd2
2010-08-04 15:49:00 +02:00
Olivier Dony fdabe0f0db [FIX] tools/convert: more lenient server-side parsing of context and domain attributes for <act_window>, in case the values are meant for client-side only. For regular <record> elements you can decide if you want server-side evaluation of context and domain by putting the value in an 'eval' attribute or as the text of the corresponding <field> element. Referenced bug contains some related discussion.
lp bug: https://launchpad.net/bugs/556517 fixed

bzr revid: odo@openerp.com-20100804104613-n5z9d5x3cnbky7cd
2010-08-04 12:46:13 +02:00
Olivier Dony a736c6e17f [ADD] tools.misc: added method to compute client timestamp according to timezone, for example for inclusion in strings where it will not be formatted by the client (do NOT use it when returning date[time] field values to the client!) + refactored timezone_get service method to make it accessible in tools.
bzr revid: odo@openerp.com-20100727152211-mupv9tdhbpv48nvu
2010-07-27 17:22:11 +02:00
Mustufa Rangwala 7678e0bafc [FIX] Missing import in convert for yaml
bzr revid: mra@mra-laptop-20100714053557-b3s6jz1teb7lni70
2010-07-14 11:05:57 +05:30
Olivier Dony f61cf6facf [IMP] tools/convert: cleanup: removed some unused variables, moved imports at top
bzr revid: odo@openerp.com-20100713095605-0sp0agl5tl3678u7
2010-07-13 11:56:05 +02:00
pap (OpenERP) 6b2e5e14ac [IMP] data serialization/loading: support timedelta expressions in eval
bzr revid: odo@openerp.com-20100713084057-7rw6k62k49nrhlug
2010-07-13 10:40:57 +02:00
P. Christeas 4afe236b0c safe_eval: fix wrt whitespace on expressions.
Regular eval() would not care about leading whitespace. But, compile() would
break if lines start with space. Strip that.
Also, allow some exceptions to pass through, so that we can examine the
syntax errors etc.

bzr revid: p_christ@hol.gr-20100621143632-0hvrck77lterxjtl
2010-06-21 17:36:32 +03:00
Fabien Pinckaers 0568cbe53c args for test
bzr revid: fp@tinyerp.com-20100704134937-w4jlfqya638trpi2
2010-07-04 15:49:37 +02:00
Fabien Pinckaers b9f86b3de2 [IMP] removed price_accuracy options
bzr revid: fp@tinyerp.com-20100704125727-nywaqszkgyft233z
2010-07-04 14:57:27 +02:00
Olivier Dony 59fdce2fe2 [FIX] tools.ustr: corrected backwards compatibility for conversion of non-string objects
bzr revid: odo@openerp.com-20100702153357-5qc6y03lxudynpyz
2010-07-02 17:33:57 +02:00
Olivier Dony 42b7282e4a [IMP] tools.ustr: added support for encoding hints for conversion
bzr revid: odo@openerp.com-20100702133922-qkfjodoh5z0i5fij
2010-07-02 15:39:22 +02:00
Olivier Dony, Christophe Simonis c6bbbab4c8 [IMP] tools.misc: cleanup and fallback mechanism for html2plaintext + other minor cleanup
bzr revid: odo@openerp.com-20100628181244-s3djk9c7ycbba9vk
2010-06-28 20:12:44 +02:00
Olivier Dony 478ab1c86d [FIX] tools/misc: fix broken email_send
bzr revid: odo@openerp.com-20100628144627-3fzhggzojqbt4547
2010-06-28 16:46:27 +02:00
Stephane Wirtel 09e9462aae [FIX] Use the right variable for the send email function
bzr revid: stephane@openerp.com-20100628130515-kll5ewiywae2x2e5
2010-06-28 15:05:15 +02:00
Olivier Dony f223434ff6 [IMP] tools/email_send: split into 2 functions: craft + send, so we can hook at lower-level for forwards etc.
bzr revid: odo@openerp.com-20100628093829-fq46kn75vsb0nq95
2010-06-28 11:38:29 +02:00
Olivier Dony 59fe0a4d12 [FIX] tools/email: don't strip newlines in HTML at this stage
bzr revid: odo@openerp.com-20100625183024-kxdud02lvg5591bl
2010-06-25 20:30:24 +02:00