summaryrefslogtreecommitdiff
path: root/openerp/modules/loading.py
AgeCommit message (Collapse)Author
2013-04-11[MERGE] from trunkRaphael Collet
bzr revid: rco@openerp.com-20130411073017-x6e4h8xbvmy3ofdw
2013-04-04[MERGE] forward merge 7.0 until revision 4919.Vo Minh Thu
bzr revid: vmt@openerp.com-20130404130704-24vsmczw34cssytd
2013-04-02[FIX] loading: typo.Vo Minh Thu
lp bug: https://launchpad.net/bugs/1162753 fixed bzr revid: vmt@openerp.com-20130402092914-cqrjxveg66gbpm3s
2013-03-29[IMP] replace all tests like 'registry.get(X)' by 'X in registry' where X is ↵Raphael Collet
non static bzr revid: rco@openerp.com-20130329140723-dnrl02saky570xg0
2013-03-27[MERGE] removed LocalService("workflow"), Logger class, and TEST log level.Vo Minh Thu
bzr revid: vmt@openerp.com-20130327170639-uamgg7shlmtxgpxv
2013-03-27[REF] tests: use the openerp.tests namespace for test-related logging.Vo Minh Thu
bzr revid: vmt@openerp.com-20130327153843-u62ftp74qv01u1ww
2013-03-27[REF] registry: begin to remove openerp.pooler:Vo Minh Thu
- call openerp.modules.registry.RegistryManager instead - expose openerp.get_pool() bzr revid: vmt@openerp.com-20130327093125-iqsyvvjm0ej7do14
2013-03-26[REF] logging: removed pseudo log-level TEST.Vo Minh Thu
When --test-enable is used, it is expected that test output is visible, thus using log-level INFO is natural. On the down side you lose the nice blue hint that tests did actually run when --log-level test was given. bzr revid: vmt@openerp.com-20130326155844-83e2tcqokvblr0ln
2013-02-09[IMP] The open openerp namespace is removed.Vo Minh Thu
bzr revid: vmt@openerp.com-20130209060246-o7qs51c2uc0kecjo
2013-01-17[FIX] module loading: call adapt_version() instead of computing it ourselfChristophe Simonis
bzr revid: chs@openerp.com-20130117135108-a4wt4wtbtfdwiui3
2013-03-01[FIX] registry: another pass of cleanup for registry signalingOlivier Dony
Some important points to consider: - signaling should be done after any schema alteration (including module [un]installation), service registration (e.g. reports) - the changes need to be committed to the database *before* signaling, otherwise an obvious race condition occurs during reload by other workers - any call to restart_pool() must be considered a possible candidate for signaling, and the 2 above conditions must be checked The number of explicit calls was reduced by forcing the signaling at the end of Registry.new() in case `update_module` was passed as True. In that situation we always want to signal the changes - so all the redundant signaling calls can be centralized. We can also assume that the relevant changes have already been committed at that point, otherwise the registry update would not have worked in the first place. This means that there is no need for explicit signaling anymore everytime `restart_pool` is called with `update_module=True`. Some missing cr.commit() and explicit signaling calls were added or moved to the right place. As a reminder: signaling must be done *after* committing the changes, and usually *after* reloading the registry on the current worker. bzr revid: odo@openerp.com-20130301143203-e2csf5pkllwhmwqs
2013-02-18[FIX] logging level of pooler loading, number of modules is info, the actual ↵Antony Lesuisse
list of modules is debug bzr revid: al@openerp.com-20130218121441-i8tidklmhafudp4k
2012-12-19[IMP] register_hook: improve a bit the codeRaphael Collet
bzr revid: rco@openerp.com-20121219132138-npf12n5l5ug6ujvx
2012-12-19[MERGE] from trunkRaphael Collet
bzr revid: rco@openerp.com-20121219130750-3ljqo3dyz05zww08
2012-12-17[IMP] loading.py: lint cleanup - unused codeOlivier Dony
bzr revid: odo@openerp.com-20121217151626-1pbzf7mxh9inx1y9
2012-12-16cleanupsAntony Lesuisse
bzr revid: al@openerp.com-20121216015214-kfo6zlarh4gdccrx
2012-12-14[FIX] registry: Set the fields_by_model attribute in __init__(), use None to ↵Vo Minh Thu
flag non-existing fields-per-model cache. bzr revid: vmt@openerp.com-20121214141114-em9r66e3sfy21t2r
2012-12-14[IMP] module loading: removed unnecessary indentation, added comments.Vo Minh Thu
bzr revid: vmt@openerp.com-20121214105820-9nlgzu9pm7cvh1pz
2012-12-11[IMP] Reduce considerably the loading time of a new registry.Vo Minh Thu
Loading time was mesured on the loading of a second database (identical to the first one), i.e. by passing -d xx,yy on the command line, using cProfile. The databases were installed with sale, mrp, and the crm. The cProfile code is commited as part of this patch and should be removed (or maybe guarded by some command-line flag) (just as the commenting-out of the cron startup). The patch was also applied on top of the trunk-simple-table-stats-vmt branch which provides SQL queries counters. Results indicate that the number of SQL queries are reduced from about 2100 to 27. Loading time is reduced from 1.3s to 0.26s (i.e. improved by 5). Changes: All calls to ir_model_fields to fetch manual (custom) fields are done in a single call (prior to instanciate all models). Checks for empty module descriptions are not done unless we are in init or update mode. (The behavior was the opposite, which was probably a mistake). Some calls to ir_translation, passing en_US because there was no lang in the context, are not done anymore. The improved time is also a result of a change in the decimal_precision module where precision_get fetches all digits/applications instead of one at a time (and thus implements its own caching instead of relying on openerp.tools.ormache). bzr revid: vmt@openerp.com-20121211105954-lwgs5js7yw3tzghs
2012-12-04[FIX] _register_hook & loaderArnaud Pineux
lp bug: https://launchpad.net/bugs/944197 fixed bzr revid: api@openerp.com-20121204161029-3gagt4lcci93g5lk
2012-12-03[IMP] Use the loglevel TEST when logging test file loading and testsuite ↵Vo Minh Thu
execution. bzr revid: vmt@openerp.com-20121203104228-8a5on97pn9r1klls
2012-11-29[REV] reverted install-all commit ↵Vo Minh Thu
(vmt@openerp.com-20121128142106-pdkcruhyz0sjltk8) bzr revid: vmt@openerp.com-20121129140745-wn2o9ek3beuf7y3y
2012-11-28[FIX] The previous merge killed a line.Vo Minh Thu
bzr revid: vmt@openerp.com-20121128141202-jncwohi169luyz0l
2012-11-28[MERGE] merged trunk.Vo Minh Thu
bzr revid: vmt@openerp.com-20121128135101-ko52od4hpngc9btz
2012-11-26[FIX] Automated action rulesArnaud Pineux
bzr revid: api@openerp.com-20121126112205-bf80xlf1ja5o2f7i
2012-11-15[IMP] loading: the warning about access rights give an example that can be ↵Vo Minh Thu
copied. bzr revid: vmt@openerp.com-20121115160611-9dkyx82d94pve2rx
2012-11-14[MERGE] merged trunk.Vo Minh Thu
bzr revid: vmt@openerp.com-20121114123943-oh8f0ni1e2itj1os
2012-11-14[IMP] loading.py: be a bit more explicit about valid/invalid data/test files.Vo Minh Thu
bzr revid: vmt@openerp.com-20121114103140-y0k40eb525ak99v1
2012-11-02[IMP] registry: the `assertion_report` is now a registry attribute.Vo Minh Thu
This allow us to report failure or success by inspecting the registry. bzr revid: vmt@openerp.com-20121102134732-5uy1vp59mp1bxgjs
2012-10-24[FIX] files filtering when loading... stuff.Xavier Morel
also, cleanup module file (remove extra imports, extra default key in manifest) bzr revid: xmo@openerp.com-20121024105454-nqw9taxladjofz2v
2012-10-22[MERGE] merged trunk.Vo Minh Thu
bzr revid: vmt@openerp.com-20121022121718-92ur1vmbrih9j8hy
2012-09-26[IMP] no certificateFabien Pinckaers
bzr revid: fp@tinyerp.com-20120926121536-9836j42ulu8wcir8
2012-08-31[REF] Replace the user id 1 by openerp.SUPERUSER_IDStephane Wirtel
bzr revid: stw@openerp.com-20120831135309-o4plzf5wp0kyuzgf
2012-08-22[IMP] yaml import: log as TEST only for test filesChristophe Simonis
bzr revid: chs@openerp.com-20120822101156-v5w2kljumas2cyq0
2012-08-16[MERGE] merged trunk.Vo Minh Thu
bzr revid: vmt@openerp.com-20120816104804-k5pwjk3j3um5mow7
2012-06-11[IMP] modules, ir.ui.view: improve view validation + avoid validation errors ↵Olivier Dony
during updates As of 7.0, RNG validation is not possible for form views that have a version attribute equal to "7.0", due to the allowed usage of HTML syntax mixed with the regular OpenERP view syntax. RNG validation is still enabled for regular form views (@version missing or less than "7.0"), and for all other views types. Validation of 7.0 form views should be improved with the addition of an assertion-based schema, still to be done. The above is also complemented with an explicit call to fields_view_get() during view installation, in order to immediately verify that the updated view hierarchy does not cause any issue when loaded along with its related views (i.e parent and siblings, for inheriting views). In addition to that, fields_view_get() will now only consider loading views that belong to modules that have already been loaded. This avoids a lot of validation errors during a module update operation, which runs on top of an existing database with all previous views visible, even those whose module is not loaded yet. bzr revid: odo@openerp.com-20120611122758-qcw9xdhupl24busq
2012-04-02[REM] Removed res.log feature in ORM. However, the res.log table stays, ↵Thibault Delavallée
because it is still used notably in publisher_warranty, that must be checked to see how it should be updated with OpenChatter. bzr revid: tde@openerp.com-20120402114746-unxkhxutivx2hp7f
2012-03-30[IMP] Move uninstall behavior in modules.loading where it belongsOlivier Dony
bzr revid: odo@openerp.com-20120330163422-jkatnkpw0cl8hd8t
2012-03-22[IMP] modules.loading: lint cleanupOlivier Dony
bzr revid: odo@openerp.com-20120322160806-y3g18dwn2z2xyuh2
2012-03-20[MERGE]: Merge with lp:openobject-serverAtul Patel (OpenERP)
bzr revid: atp@tinyerp.com-20120316042909-gb2e5cmrilyyhsef bzr revid: atp@tinyerp.com-20120320050251-bgk9xhsfmb1fws1p
2012-03-14[MERGE] Latest fixes from 6.1Olivier Dony
bzr revid: odo@openerp.com-20120314142043-9jpk3dkss1hkvb3q
2012-03-13[MERGE]: Merge with lp:openobject-serverAtul Patel (OpenERP)
bzr revid: atp@tinyerp.com-20120313133708-lc4x4ekn2xv517b8
2012-03-09[FIX]: uninstall module.Atul Patel (OpenERP)
Remove foreign key references. Remove sql constraint . Remove workflow activity and transition based on deleted cascade. Drop ir model fields columns and drop table. bzr revid: atp@tinyerp.com-20120309124753-c4yzeoij5p2fmhgg
2012-03-02[IMP] tests: removed the severity concept from `assert` tags.Vo Minh Thu
bzr revid: vmt@openerp.com-20120302112834-n1zyqf1g4v61ivje
2012-03-02[IMP] tests:Vo Minh Thu
- pass around the assertion_report to the YAML importer - removed TestReport, which was identical to assertion_report - assertion_report is simpler (no more severity level) - use the report to log a greppable sentence when some test failed. Previously the runbot had to grep for a Traceback which was an unreliable technique (e.g. an exception can be purposefuly generated as part of a test and the associated traceback visible in the logs). Now it can grep "At least one test failed when loading the modules". bzr revid: vmt@openerp.com-20120302110227-nqrl7i46ju28ntdr
2012-03-01[IMP] tests:Vo Minh Thu
- moved a few YAML tests to unittest2 for demonstration purpose - changed --test-disable to --test-enable (and swapped its meaning) bzr revid: vmt@openerp.com-20120301134608-szuktuj8imdhmn0r
2012-03-01[IMP] tests: move tests discovery and execution to openerp.modules.module, ↵Vo Minh Thu
removed unexisting column name, filter out more test outputs bzr revid: vmt@openerp.com-20120301121611-1gieqehm9wqog2fx
2012-02-29[IMP] unittest: run the fast_suite and checks tests when installing a module.Vo Minh Thu
bzr revid: vmt@openerp.com-20120229172520-n0k1dmxo5p0h0bar
2012-02-29[FIX]: Remove workflow activity and drop constraint during uninstalling module.Atul Patel (OpenERP)
bzr revid: atp@tinyerp.com-20120229135343-g0v04jb5nc723w9q
2012-02-20[FIX] Correct remaining SQL now() calls, must use UTCOlivier Dony
This is essential to have the proper behavior for timestamps: on the database side we exclusively store UTC data (no DST issues, etc.) as naive timestamps (to prevent Postgres from messing with them). Inside OpenERP server/addons we work again with pure UTC data (much simpler), and only render them according to the user's timezone when they are displayed in the user interface or rendered in a PDF report. lp bug: https://launchpad.net/bugs/918257 fixed bzr revid: odo@openerp.com-20120220105943-v3m0i50phrurt8x6