Vo Minh Thu
16ac84af68
[REF] moved openerp/registry/manager.py => openerp/modules/registry.py
...
- Maybe it should be called registries.py... Argh, consistency...
bzr revid: vmt@openerp.com-20110519073935-81kwuhlqcxxw1z32
2011-05-19 09:39:35 +02:00
Vo Minh Thu
a09b91d8fd
[REF] simplified init_db/load_modules:
...
- removed unnecessary call to openerp.modules.db.initialize() in openerp/service/web_services.py
as the pooler.restart_pool() call just next after is already doing it.
- made the try/finally section bigger in openerp/modules/loading.py, to inlcude
the first cr.execute.
- abstracted the test to check if a database is initialized.
- removed unnecessary "if cr:" as the cr is nevertheless used after that.
bzr revid: vmt@openerp.com-20110517091822-pjtw6sc1s5assbr5
2011-05-17 11:18:22 +02:00
Vo Minh Thu
6c051106ae
[FIX] fix bad copy/paste.
...
bzr revid: vmt@openerp.com-20110513093701-1lgbe077o72djjbt
2011-05-13 11:37:01 +02:00
Vo Minh Thu
09079b0102
[REF] pooler code goes in openerp.registry.manager.
...
bzr revid: vmt@openerp.com-20110512084646-k0s6dlkpbz5s4mcs
2011-05-12 10:46:46 +02:00
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
255aaa14d2
[REF] openerp-server: cleaned imports.
...
bzr revid: vmt@openerp.com-20110418143448-bezvdw97ybtlyqhc
2011-04-18 16:34:48 +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
Fabien Meghazi
bdd3a72499
[FIX] Fixed infinite loop under Internet Explorer 8
...
bzr revid: fme@openerp.com-20110517104628-xtjcqeb0n8y1fa43
2011-05-17 12:46:28 +02:00
Xavier Morel
a656834516
[IMP] add ability to return a different object (than 'this') from Class.init, for factory-type scenarios
...
bzr revid: xmo@openerp.com-20110517095923-8lr1pjelf94nwu44
2011-05-17 11:59:23 +02:00
Xavier Morel
fba3f1bfc7
[IMP] better use underscore methods, don't subscript a 1-character string to get its first character (that's an identity function)
...
bzr revid: xmo@openerp.com-20110517093503-9kb6newmr7q30z4f
2011-05-17 11:35:03 +02:00
Fabien Meghazi
9d49ade263
[FIX] Fixed action flags
...
bzr revid: fme@openerp.com-20110517092627-oz2rj1hkpfi5zp30
2011-05-17 11:26:27 +02:00
Launchpad Translations on behalf of openerp
8bed1f4c7b
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20110517044035-gujm452234pbeq87
2011-05-17 04:40:35 +00:00
Vo Minh Thu
a37a4404fb
[REF] consistent, grepable ir.values object naming.
...
bzr revid: vmt@openerp.com-20110516153331-vusrrgr3hvlcyei0
2011-05-16 17:33:31 +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
f99e8db427
[MERGE] merged fix for res_lang.
...
bzr revid: vmt@openerp.com-20110516101941-ufa4ue8u5hlcfekm
2011-05-16 12:19:41 +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
Xavier Morel
d10cf199b9
[REM] broken method
...
bzr revid: xmo@openerp.com-20110516072544-bj7shdl9e1of34sr
2011-05-16 09:25:44 +02:00