Commit Graph
802 Commits
Author SHA1 Message Date
Olivier Dony 97ea0b97a3 [IMP] translate: _( ) should always use ir.translation OSV, no fallback to direct DB access needed
bzr revid: odo@openerp.com-20101215132128-1pxzjrde0bpu5smg
2010-12-15 14:21:28 +01:00
Olivier Dony 650490d61d [IMP] ir.translation,tools.translate._(): cleanup and speedup if translations via _()
- Removed expensive inspect.stack() (courtesy of xrg)
- Improved heuristics for detection of context/lang and cursor
- Switch to using ir.translation when possible instead of direct DB hit to benefit from cache
- Cleanup

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

bzr revid: odo@openerp.com-20101215114019-psrsu998inw6cksu
2010-12-15 12:40:19 +01:00
nel@tinyerp.com 10c0a345e8 [FIX] translation in xpath
bzr revid: nel@tinyerp.com-20101214122911-qxw0vozlqmnzt89q
2010-12-14 13:29:11 +01:00
Olivier Dony 7c7586686d [IMP] tools.misc: enabled Hebrew (he_IL) language
bzr revid: odo@openerp.com-20101209091904-ytigf6ja7j65yx63
2010-12-09 10:19:04 +01:00
Nicolas Vanhoren 2c3cee033d [MERGE] refactor maintenance.contract into publisher_warranty.contract + add system logs scheduler
bzr revid: odo@openerp.com-20101208170350-p8tek7dk7wdtnzvb
2010-12-08 18:03:50 +01:00
nvi-openerp 38569b7754 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20101206091222-miwtrvjkfh8hy8ec
bzr revid: nicolas.vanhoren@openerp.com-20101206174010-f819dzx7vyw2jntk
bzr revid: nicolas.vanhoren@openerp.com-20101207132443-z0wabhbh0ruzwoo2
bzr revid: nicolas.vanhoren@openerp.com-20101208105249-qfjalxkboqpi9xr0
2010-12-08 11:52:49 +01:00
Olivier Dony 592d666e51 [FIX] tools.misc: correct argument to subprocess.Popen (via xrg, analysis/patch courtesy of Michael Telahun Makonnen)
lp bug: https://launchpad.net/bugs/685115 fixed
lp bug: https://launchpad.net/bugs/684661 fixed

bzr revid: odo@openerp.com-20101207170551-o19ab06g1h2x3ygz
2010-12-07 18:05:51 +01:00
Olivier Dony c744e55ffc [ADD] base: support alphabet-specific languages as in Rosetta + enabled Serbian@Latin
bzr revid: odo@openerp.com-20101203160907-59ytzsl8ah2ebtxa
2010-12-03 17:09:07 +01:00
Olivier Dony 3774ad65d7 [FIX] base,yaml: fixed !assert with "count" attribute in yaml tests + enabled more tests in base
bzr revid: odo@openerp.com-20101203142035-3h1min1htys5lhop
2010-12-03 15:20:35 +01:00
Olivier Dony f1cfc436a7 [MERGE+FIX] fixes for translations,sequence,copy,error messages - some patches courtesy of Margarita Manterola and Don Kirkby
lp bug: https://launchpad.net/bugs/672130 fixed
lp bug: https://launchpad.net/bugs/663775 fixed
lp bug: https://launchpad.net/bugs/673194 fixed
lp bug: https://launchpad.net/bugs/663977 fixed

bzr revid: odo@openerp.com-20101130110940-0tf6ra0uwhiptieb
2010-11-30 12:09:40 +01:00
Olivier Dony f87b2bb7e4 [MERGE] font loading issues fixed + performance improvements at module install/load
bzr revid: odo@openerp.com-20101127032014-fxrjaakuo3t4wvw4
2010-11-27 04:20:14 +01:00
Olivier Dony ec9d236589 [IMP] ir_model,ir_module,tools: tweaks for improving module install/loading time
bzr revid: odo@openerp.com-20101127030450-m44krmwbnpd57omf
2010-11-27 04:04:50 +01:00
Olivier Dony 4bc20ff99f [FIX] convert,rng: <act_window> should support unambiguous view_id attribute
+ cleanup of useless id_get param

bzr revid: odo@openerp.com-20101127030304-mvrb92rmgb0wblvc
2010-11-27 04:03:04 +01:00
P. Christeas 07bb2de912 [MERGE] report: TTF fonts loading fixes ; convert: use newer ir.model.data API
bzr revid: odo@openerp.com-20101126163449-51q4rb96w4glzfz8
2010-11-26 17:34:49 +01:00
nvi-openerp edf4981ded [merge]
bzr revid: nicolas.vanhoren@openerp.com-20101126134609-vyspfsb42t36s2wq
2010-11-26 14:46:09 +01:00
P. Christeas ca6fada256 convert.py: use the get_object_reference() API for ir.model.data
Note that the "return False" would have never worked, since the _get_id()
would have raised an exception for missing records.

bzr revid: p_christ@hol.gr-20101126103344-ugr20dnti4gezdoe
2010-11-26 12:33:44 +02:00
olt@tinyerp.com cf152730b8 [FIX] po file parser: database creation crashes if res_id is an empty string
bzr revid: olt@tinyerp.com-20101126082048-ndc55bsf4vo3cu2c
2010-11-26 09:20:48 +01:00
Olivier Dony 2a99340541 [IMP] tools.translate: more lenient with malformed PO entries
bzr revid: odo@openerp.com-20101125172236-son3382958xbds8y
2010-11-25 18:22:36 +01:00
Olivier Dony 727b9d7e55 [IMP] tools.translate: use consistent logging API
bzr revid: odo@openerp.com-20101125172144-3z0rs97u50q142vx
2010-11-25 18:21:44 +01:00
P. Christeas, O. Dony 6a69f37cf0 [MERGE] many improvements regarding translations, logging, reports, http, speed
bzr revid: odo@openerp.com-20101125142219-8bkqfboyuslzpvyo
2010-11-25 15:22:19 +01:00
gpa 9de5e301e1 Improvement for the transformation of the icon file paths inside
bzr revid: gpa@tinyerp.com-20101125052729-bajcewtj468rhcjx
2010-11-25 10:57:29 +05:30
Olivier Dony 0fa9b15868 [IMP] yaml_import: improved resolution of XML IDs
bzr revid: odo@openerp.com-20101124173222-177ra54gh0t5z0uy
2010-11-24 18:32:22 +01:00
gpa 1a6ab82f7b Improvement for the web client dash board
bzr revid: gpa@tinyerp.com-20101124104936-rk38vyhz7bll6f9r
2010-11-24 16:19:36 +05:30
Margarita Manterola b140c3cacb Confirm message support translation and export
bzr revid: ysa@tinyerp.com-20101124093647-hbh2gzghkf39desi
2010-11-24 15:06:47 +05:30
Yogesh Sakhreliya 8940877f64 revert rev no :-3030
bzr revid: ysa@tinyerp.com-20101124093435-3d7ioctc8raaf1j2
2010-11-24 15:04:35 +05:30
Yogesh Sakhreliya ca3a65d9ad Confirm message support translation and export--author=Margarita Manterola
bzr revid: ysa@tinyerp.com-20101124091207-5gccf6h5h0hgu06i
2010-11-24 14:42:07 +05:30
P. Christeas 597a871470 misc: import warnings, needed for earlier patch
bzr revid: p_christ@hol.gr-20101123180824-sk28lwc298v89rr4
2010-11-23 20:08:24 +02:00
P. Christeas 04c05faf9b yaml-import: fix working with deleted data
At some cases, ir.model.data is left with orphan entries, so ensure that
the message below is used (rather than "bool has no get()" exception).

Conflicts:

	bin/tools/yaml_import.py

bzr revid: p_christ@hol.gr-20101123153936-0cc4t4e2xwat70q1
2010-11-23 17:39:36 +02:00
P. Christeas 186b9190f6 tools.convert, misc: use pythonic logging
Conflicts:

	bin/tools/convert.py
	bin/tools/misc.py

bzr revid: p_christ@hol.gr-20101123153325-wicnjxt98lp03cpf
2010-11-23 17:33:25 +02:00
P. Christeas 4db6f0e5c1 translate: fix default arguments after last patch
bzr revid: p_christ@hol.gr-20101123152740-pn9mbptpdvw0sz98
2010-11-23 17:27:40 +02:00
P. Christeas d4379792fc tools/misc: port the exec_command_pipe() to the subprocess module.
The os.popen2 is deprecated since Python 2.6. It also failed to properly
escape the command line arguments.

Conflicts:

	bin/tools/misc.py

bzr revid: p_christ@hol.gr-20101123152224-d52414w2tscw6bvo
2010-11-23 17:22:24 +02:00
P. Christeas 7ce5179086 translate: don't complain about fuzzy strings.
They are part of the format and ought to be silently discarded.

bzr revid: p_christ@hol.gr-20101123135858-zkp7hjcn4slv3r57
2010-11-23 15:58:58 +02:00
P. Christeas c67f1746f4 translate: port to pythonic logging, filename in a message
It is good to know which .po file we are currently loading.
Warning: some messages moved from the 'db' logger to the 'i18n' one.

bzr revid: p_christ@hol.gr-20101123135835-k6d6r7sgif5zhb75
2010-11-23 15:58:35 +02:00
P. Christeas 6cd5fec0e2 sql_db: Avoid using inspect.stack(), use failsafe alternative.
Inspecting the full stack just to learn the file:line info for debugging
purposes is both expensive and error-prone. Write an alternative function
in tools/func.py that will just go N frames back and try to get the info.

bzr revid: p_christ@hol.gr-20101123135742-2jp75f3uxyg3a6b6
2010-11-23 15:57:42 +02:00
nvi-openerp ca18012c17 [IMP] Improved res_log handling
bzr revid: nicolas.vanhoren@openerp.com-20101123095738-tm5pkm6d81t8i6iv
2010-11-23 10:57:38 +01:00
nvi-openerp e98ba5b6fd [IMP] Rather stable version
bzr revid: nicolas.vanhoren@openerp.com-20101122151015-vnrk4gf0v6bn0zxi
2010-11-22 16:10:15 +01:00
nvi-openerp 204448f21f [IMP] wip
bzr revid: nicolas.vanhoren@openerp.com-20101122120039-ta33m883eevh803d
2010-11-22 13:00:39 +01:00
nvi-openerp d61adb56be [merge]
bzr revid: nicolas.vanhoren@openerp.com-20101119081721-tf8qbh9gpm0mjw38
2010-11-19 09:17:21 +01:00
nvi-openerp 16e9bde2c8 [IMP] wip
bzr revid: nicolas.vanhoren@openerp.com-20101119081550-0ftgvc1vurkumejl
2010-11-19 09:15:50 +01:00
nvi-openerp 5b2a35641c [IMP] wip
bzr revid: nicolas.vanhoren@openerp.com-20101118134256-p0tlk3kbpw1njqu8
2010-11-18 14:42:56 +01:00
nvi-openerp 469f0c3f5b [IMP] wip
bzr revid: nicolas.vanhoren@openerp.com-20101118132431-275gq1i1vjg52yoy
2010-11-18 14:24:31 +01:00
nvi-openerp d5debf686f [IMP] wip
bzr revid: nicolas.vanhoren@openerp.com-20101118093412-czjcmcqupngfqjnt
2010-11-18 10:34:12 +01:00
nvi-openerp b8551a5fcc [IMP] wip
bzr revid: nicolas.vanhoren@openerp.com-20101117171754-ay58hnzhsq56iq3s
2010-11-17 18:17:54 +01:00
Julien Thewys c9c2f03a8c [REM] Removed wrongly committed changes (wrong branch name).
bzr revid: jth@openerp.com-20101117123928-vi70mnhlt9nz8cfc
2010-11-17 13:39:28 +01:00
Julien Thewys 36d2afb046 [IMP] Added 'test_force' cli param for loading tests without demo data.
Sometimes you want tests to be run against an environment where no demo data are allowed
and you do not want to have tests loaded from the 'data' section as records will not be rolled back.

bzr revid: jth@openerp.com-20101117104601-jottg84dmss716r0
2010-11-17 11:46:01 +01:00
Jay (OpenERP) 1dde0f53da [FIX] Delete and function tag should respect ref(XML_ID). Maintenance Case 262
lp bug: https://launchpad.net/bugs/675906 fixed

bzr revid: jvo@tinyerp.com-20101116215359-qcnfefkqhxsa2uym
2010-11-17 03:23:59 +05:30
P. Christeas 89c40dec2f translate: fix scanning the ir.models for translations
The loop would only consider models that have >0 records registered in
    ir.model.data.

This is merge of commits 3988ebf4dc130, 070e7d6ac717de and adapt to trunk.

bzr revid: p_christ@hol.gr-20101116163510-yemzlcy0f0yk893l
2010-11-16 18:35:10 +02:00
P. Christeas 8ce5d2bc20 tools/misc: prevent icon names from being translated
They are identifier strings, not human-readable.

bzr revid: p_christ@hol.gr-20101116150537-s7tyw7d6y0r1dl6c
2010-11-16 17:05:37 +02:00
P. Christeas 329bfb0d18 tools: Initial version of test_reports utility
With this utility module, YAML tests (or others) can quickly check a (pdf)
report.

bzr revid: p_christ@hol.gr-20101116145925-z4lshbefogbwz7r9
2010-11-16 16:59:25 +02:00
Olivier Dony 8472cfb7e3 [IMP] tools.translate: improved debug message for illegal values in PO terms
bzr revid: odo@openerp.com-20101116141508-jls1v2rqyvb7pf0v
2010-11-16 15:15:08 +01:00