Commit Graph

110 Commits

Author SHA1 Message Date
Vo Minh Thu 40bce2fead [REF] renamed modules.__init__ to modules.loading.
bzr revid: vmt@openerp.com-20110511174841-wk1yyr9971pu0pwh
2011-05-11 19:48:41 +02:00
Vo Minh Thu 1fe579d8ec [REF] module code goes into openerp.modules.module.
bzr revid: vmt@openerp.com-20110511172448-p12p1rizvf3lqv97
2011-05-11 19:24:48 +02:00
Vo Minh Thu fb476648e0 [REF] openerp.modules: migration manager code moved to openerp.modules.migration.
bzr revid: vmt@openerp.com-20110511164144-8o1bl6jfb8k7keak
2011-05-11 18:41:44 +02:00
Vo Minh Thu 52d1291506 [REF] moved graph code from modules.__init__ to modules.graph
- made upgrade_graph a method of Graph called add_modules
- removed unnecessary create_graph function.

bzr revid: vmt@openerp.com-20110511152810-etqru9pct1zwyqno
2011-05-11 17:28:10 +02:00
Vo Minh Thu 5ca0f64b4e [REF] moved init_db from tools.misc to modules.db.
bzr revid: vmt@openerp.com-20110511144754-m06exg4dsn2jbdgz
2011-05-11 16:47:54 +02:00
Vo Minh Thu b158805af7 [REF] module info (descriptor) dictionary default values in one place.
bzr revid: vmt@openerp.com-20110511135332-87kd5vo4rdeb6b3l
2011-05-11 15:53:32 +02:00
Vo Minh Thu 8b878de82d [REF] modules.__init__:
- added some comments
- the "updating modules list" log appears only when actually updating the list
- similar code to read the module descriptor file is combined
- default values for some descriptor entries are given only once
- in particular, the default version is always 0, instead of 0 when
  reading a descriptor for migration and 1.0 when writing its value in
  database.

bzr revid: vmt@openerp.com-20110511103455-lqezcrjf2996j7mc
2011-05-11 12:34:55 +02:00
Vo Minh Thu 71de92dc44 [FIX] db.get_progress was broken:
- the status dictionary was ignored
- it is still slightly broken (see added comment in openerp/modules/__init__.py)

bzr revid: vmt@openerp.com-20110510142849-p9kcd60agybpm8bd
2011-05-10 16:28:49 +02:00
Vo Minh Thu 853e354b55 [REF] modules.__init__: combined _load_data and _load_xml:
- pass the report argument to xml_import
- allow .sql in demo
- noupdate is True for both init and demo
- the pathname given to convert_csv_import is different
  but the way it is processed in convert_csv_import should
  make it alright.

bzr revid: vmt@openerp.com-20110510125242-ig74vtich2g3bjhc
2011-05-10 14:52:42 +02:00
Vo Minh Thu e82aeba808 [REF] it seems ok to get the ir.module.module model only once.
bzr revid: vmt@openerp.com-20110519090410-a89n7ivs2nvn60bt
2011-05-19 11:04:10 +02:00
Vo Minh Thu 7963da3f94 [REF] modules.__init__:
- combined code from load_init_update_xml and load_demo_xml
- made explicit the "report" kwarg of load_module_graph

bzr revid: vmt@openerp.com-20110510094908-txzj3oeypz7iralk
2011-05-10 11:49:08 +02:00
Vo Minh Thu 4ba3f3c804 [REF] osv, modules/__init__cosmetic renaming, added comments.
bzr revid: vmt@openerp.com-20110519090300-bodss011798ep5cy
2011-05-19 11:03:00 +02:00
Vo Minh Thu 0770057935 [REF] explicit service objects instanciation.
bzr revid: vmt@openerp.com-20110507112129-hfrly9easfby9hns
2011-05-07 13:21:29 +02:00
Vo Minh Thu e8df583f3b [FIX] forgot to add new file.
bzr revid: vmt@openerp.com-20110429075030-4o1vdtldc3rp3j1v
2011-04-29 09:50:30 +02:00
Vo Minh Thu 081b6d98ab [REF] separate/expose some code.
bzr revid: vmt@openerp.com-20110428151330-m8qkggoqmsry3w2z
2011-04-28 17:13:30 +02:00
Vo Minh Thu 041a61c1b1 [REF] openerp.conf: new module
- see its docstring for its purpose
- otherwise empty for now

bzr revid: vmt@openerp.com-20110420102627-j5zbn1phuc0pmffk
2011-04-20 12:26:27 +02:00
Vo Minh Thu 4b3357652d [REF] osv_pool cleaning:
- removed unused variables (module_list, module_object_list, created)
  - removed unecessary call to del on a dictionary
  (as its element is replaced anyway)
  - added some comments

bzr revid: vmt@openerp.com-20110519085035-p9ohve0nfkudgrx5
2011-05-19 10:50:35 +02:00
Vo Minh Thu 67aa6c461a [REF] pooler: expose a delete_pool method, can be useful to debug memory leaks.
bzr revid: vmt@openerp.com-20110427092836-284bci0an48nopwc
2011-04-27 11:28:36 +02:00
Vo Minh Thu 4f163f727a [IMP] orm: check for object _name validity.
bzr revid: vmt@openerp.com-20110427090846-pxqkyk2y0p8sjb8v
2011-04-27 11:08:46 +02:00
Vo Minh Thu 2856d16912 [ADD] sql_db: show file/line where the cursor was closed
This will be printed along the error message whenever an attempt to use
a closed cursor is made (only in debug_sql log level).

bzr revid: vmt@openerp.com-20110422112417-dbeqq4qm59sr2wvt
2011-04-22 13:24:17 +02:00
Vo Minh Thu aaedb68331 [ADD]: dummy cache class replacement.
bzr revid: vmt@openerp.com-20110422100720-5ffk1tp944b53c7a
2011-04-22 12:07:20 +02:00
Vo Minh Thu a659d1fa8c [REF] netsvc: explicit Agent thread creation.
bzr revid: vmt@openerp.com-20110421155836-70da1nhpb38zqbls
2011-04-21 17:58:36 +02:00
Vo Minh Thu 7008aa3e0e [FIX] sql_db: connection pool created lazily.
- This is necessary to give a chance to change the config just after importing openerp.

bzr revid: vmt@openerp.com-20110421103125-3lv609wnu3vh2m4f
2011-04-21 12:31:25 +02:00
Vo Minh Thu 2356412aea [FIX] openerp.addons: corrected wrong import syntax.
bzr revid: vmt@openerp.com-20110420153741-scgftlguxqvopgur
2011-04-20 17:37:41 +02:00
Vo Minh Thu 545a438c03 [REF] openerp.modules
- for the moment it is a copy of openerp.addons

bzr revid: vmt@openerp.com-20110420152718-eok61oule6p2x58z
2011-04-20 17:27:18 +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
Vo Minh Thu f96d58c9c6 [REF] pooler: added some comments.
bzr revid: vmt@openerp.com-20110420072346-os10xhy9lnvposi2
2011-04-20 09:23:46 +02:00
Vo Minh Thu 7410d8e410 [REF] config: removed duplicated list of options
- the list is still reconstructed from the optparse options.

bzr revid: vmt@openerp.com-20110419134016-og6ye1hjrb0j52cl
2011-04-19 15:40:16 +02:00
Vo Minh Thu 342f2047cf [REF] openerp-server: better imports.
bzr revid: vmt@openerp.com-20110418155733-gt8shgr0yilo20mw
2011-04-18 17:57:33 +02:00
Vo Minh Thu 0b42209314 [REF] osv.py: removed unused variable class_pool.
bzr revid: vmt@openerp.com-20110418134236-p5a1wikw10wtplvg
2011-04-18 15:42:36 +02:00
Vo Minh Thu 0c4e557129 [FIX] res_lang: when testing if there is some default value on res.partner, pass it as a list of strings, not as a string.
bzr revid: vmt@openerp.com-20110517120027-cj3nfku07hx521al
2011-05-17 14:00:27 +02:00
Vo Minh Thu a931e398bf [REF] consistent, grepable ir.values object naming.
bzr revid: vmt@openerp.com-20110516150534-2524fn6587jir72m
2011-05-16 17:05:34 +02:00
Vo Minh Thu 059083488e [IMP] res_lang: removed unneeded itertools import.
bzr revid: vmt@openerp.com-20110516101009-x1ih1y17ci4ihkne
2011-05-16 12:10:09 +02:00
Vo Minh Thu e248d008c0 [IMP] res_lang: using a regex instead of custom function,
based on rco comment.

bzr revid: vmt@openerp.com-20110516100712-ezg0ul9bo81uto1h
2011-05-16 12:07:12 +02:00
Vo Minh Thu 584fc24bb3 [FIX] forgot to actually replace the function call by the new one.
bzr revid: vmt@openerp.com-20110516090908-umx4o2ar2w2igiid
2011-05-16 11:09:08 +02:00
Vo Minh Thu 12144cfc2b [FIX]: dont use the leading non-digits when splitting in the format.
bzr revid: vmt@openerp.com-20110516090312-8r5b63e7ln045h0p
2011-05-16 11:03:12 +02:00
Vo Minh Thu ffb6fdd3a9 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110516090036-d0yr21s1ofqu8tiq
2011-05-16 11:00:36 +02:00
Launchpad Translations on behalf of openerp 2015bd7a3e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110514045306-lh4jlor643nt2bpo
2011-05-14 04:53:06 +00:00
Vo Minh Thu 0da15bd185 [MERGE] slightly improved log message for cron jobs.
bzr revid: vmt@openerp.com-20110513142920-s0vw77xawgod5r13
2011-05-13 16:29:20 +02:00
Jacques-Etienne Baudoux 56b794c644 [FIX] removed unused imports, unused depth definition, changed indent definition
bzr revid: jba@openerp.com-20110513133514-zojsknaqrybu347e
2011-05-13 15:35:14 +02:00
Vo Minh Thu 94401ff9c1 [MERGE] yml test: more explicit message when some data is missing.
bzr revid: vmt@openerp.com-20110513125218-gnbtcpm3jlgnflff
2011-05-13 14:52:18 +02:00
Naresh (OpenERP) a94ccb1faf [IMP]:moved the logger exception before raise
bzr revid: nch@tinyerp.com-20110513122604-2ewsy6mcyghyci9f
2011-05-13 17:56:04 +05:30
Naresh (OpenERP) 6c210e6290 [IMP]:ValueError Message when running a YAML test that belong to a module test suite as standalone
lp bug: https://launchpad.net/bugs/722472 fixed

bzr revid: nch@tinyerp.com-20110513094405-dyn08nh7uqpu1rjq
2011-05-13 15:14:05 +05:30
Vo Minh Thu 48b2466676 [FIX] res_lang: the string to format cannot be empty.
- not yet fixed, but a new implementation of the grouping code
  is provided without that problem.
- some testing need to be done.
- removed unnecessary arguments
- eval() used only once

bzr revid: vmt@openerp.com-20110513093121-qo7walg7dff0kufl
2011-05-13 11:31:21 +02:00
Vo Minh Thu 4a6155d80c [MERGE] --i18n-overwrite can be used with --update.
bzr revid: vmt@openerp.com-20110512134553-7iomtd21nqsxs63q
2011-05-12 15:45:53 +02:00
Vo Minh Thu 6a3342acfb [MERGE] orm: pass the context around.
lp bug: https://launchpad.net/bugs/704696 fixed

bzr revid: vmt@openerp.com-20110512125239-b2s0etg1yrjoa970
2011-05-12 14:52:39 +02:00
Vo Minh Thu c666a297cf [REF] ir_ui_menu: _get_image_icon simplified, more general.
- code actually from chs a.k.a. Christophe (OpenERP) a.k.a. kangol.

bzr revid: vmt@openerp.com-20110512123752-l1gpv6qr193wt4yf
2011-05-12 14:37:52 +02:00
Vo Minh Thu a2e39003d8 [MERGE] ir.ui.menu form view: set parent_id in new submenus.
bzr revid: vmt@openerp.com-20110512113816-ebbosf5u932zq03t
2011-05-12 13:38:16 +02:00
Launchpad Translations on behalf of openerp 20dbc6e4a4 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110511043631-ouofbf2787kb2n1c
bzr revid: launchpad_translations_on_behalf_of_openerp-20110512043442-hwhv5k48fyhs2se7
2011-05-12 04:34:42 +00:00
Jacques-Etienne Baudoux 1ab0987803 [IMP] logging of rpc calls and cron jobs
lp bug: https://launchpad.net/bugs/781190 fixed

bzr revid: jba@openerp.com-20110511160707-lsf87msknw7rngus
2011-05-11 18:07:07 +02:00