Commit Graph

14 Commits

Author SHA1 Message Date
Olivier Dony 356e4ed9bd [FIX] translation: remove calls to trans_update_res_ids
Calling this method is no longer required since the
merge of the new code for loading translations using
a temporary table. The method itself has been removed
at revision 3919, so all calls to it should have been
cleaned up as well.
Rev.3919 = rco@openerp.com-20111223104824-fup1cjbjni1fsty1

bzr revid: odo@openerp.com-20120109140958-10i1ti16tw327580
2012-01-09 15:09:58 +01:00
Vo Minh Thu b71c0095c9 [MERGE] tools.translate: use misc.file_open() to load .po files even from .zip files.
bzr revid: vmt@openerp.com-20120104103212-qq2ad04b1ffydrur
2012-01-04 11:32:12 +01:00
Vo Minh Thu 842cb1ad41 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20111201153214-0iintvpp7crnr2jc
2011-12-01 16:32:14 +01:00
Naresh (OpenERP) f211942d6a [FIX]:loading translation of .zip module
lp bug: https://launchpad.net/bugs/885134 fixed

bzr revid: nch@tinyerp.com-20111130085452-vcrxnv86avhfihom
2011-11-30 14:24:52 +05:30
Vo Minh Thu ec3ea4197e [FIX] tools.translate: release.support_email has been removed, so we no longer set the Report-Msgid-Bugs-To value in .po files.
lp bug: https://launchpad.net/bugs/873959 fixed

bzr revid: vmt@openerp.com-20111014150210-qs7n58cocvnjputl
2011-10-14 17:02:10 +02:00
Vo Minh Thu 180ffb18a1 [REF] openerp-server: streamlining startup script.
bzr revid: vmt@openerp.com-20110823103343-rvy2zkre8bo9cq6g
2011-08-23 12:33:43 +02:00
Vo Minh Thu e375049414 [REF] osv: moved osv_pool to modules/registry.
bzr revid: vmt@openerp.com-20110614142226-yd3y39a8z3ubwvxm
2011-06-14 16:22:26 +02:00
P. Christeas f1558730f6 ir.translation, import: push the algo. to SQL, improve performance
At a language import (translation files), we want to push a big batch of
translation records into the database. These will need update-or-insert
logic (against existing ones) or even resolution of ir.model.data .
Doing this loop in Python had been slow (invoking 2x read()s, +1 for
ir.model.data, 1 insert or update), triggered the cache (fill and clean
at each iteration).

Instead, follow the old-school db recipe for mass records insertion:
 - create a temporary table w/o indexes or constraints
 - quickly populate the temp with all records of the batch
   (through a dedicated "cursor" object)
 - process the table, doing lookups in collective SQL queries (yes, SQL
   is all about loops of data processing, efficiently)
 - insert all records from temp into ir.model.data
 - call (implicitly) all constraints of ir.model.data at the end of that
   single query.

This improves performance of translation imports by ~3x at least.

bzr revid: xrg@linux.gr-20110608162059-rfy1vvwp8w66ry0i
2011-06-08 19:20:59 +03:00
P. Christeas 28e3960004 Revert "[IMP] translation: Added two columns to ir_translation to fix the res_ids after loading is done."
This reverts commit a78cd642cd956afe3f3cee54558b214549f0a9a5.

Conflicts:

	openerp/addons/base/ir/ir_translation.py
	openerp/tools/translate.py

bzr revid: xrg@linux.gr-20110608092941-f2ycamq0k52y4nc8
2011-06-08 12:29:41 +03:00
Antony Lesuisse 6aa240ca19 [IMP] ir_translation only display installed lang, 10% speedup in translation loading
bzr revid: al@openerp.com-20110601163455-2o732ssum24kwshu
2011-06-01 18:34:55 +02:00
Vo Minh Thu 0e1186dd3d [REF] openerp.pooler/openerp.sql_db: cleaner dependencies:
- openerp.pooler no longer provides get_db_only, which is a provided by sql_db
- openerp.sql_db does not rely anymore on netsvc, which is goog as it was
making a circular import. The downside is that db_close callers have to clean
also the Agent themselves.

bzr revid: vmt@openerp.com-20110420141407-au0oanwjc0t15vy5
2011-04-20 16:14:07 +02:00
Naresh (OpenERP) dce1a9ab59 [FIX]:added missing of parsing of 'help' attribute while synchronizing translations
bzr revid: nch@tinyerp.com-20110421093400-aigxqul71iw2avph
2011-04-21 15:04:00 +05:30
Olivier Dony 14ebc46e3a [FIX] tools.translate: add missing imports after previous merge
bzr revid: odo@openerp.com-20110209090231-odqbf8leyurdh945
2011-02-09 10:02:31 +01:00
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00