Commit Graph

17 Commits

Author SHA1 Message Date
Raphael Collet 980f6fc4b1 [IMP] registry: avoid every direct access registry.db, and rename attribute as registry._db
bzr revid:
2014-04-09 15:35:15 +02:00
Vo Minh Thu 314a8dab70 [REF] pooler: mark the functions as deprecated.
bzr revid:
2013-03-27 15:16:53 +01:00
Olivier Dony 4fd1bc7b3c [IMP] cron: remove useless pooljobs and schedule_cron_jobs methods
The pooljobs and scheduled_cron_jobs stuff was only used to
delay the processing of cron jobs until after the registry
was fully loaded. However this is already the case because only sets the flag at the end of the
init step.
The flag was named `registry.cron` but simply meant that the
registry was fully loaded and ready, so it is simpler to
rename it to `registry.ready`.

In multiprocess mode this flag is enterily irrelevant
so there is no need to selectively set it to True or
False. `registry.ready` is simpler.

bzr revid:
2012-12-21 14:37:51 +01:00
Olivier Dony f349a6cbd3 [FIX] pooler: when reloading registry, preserve the cron-active status of the previous registry
bzr revid:
2012-12-21 11:29:10 +01:00
Vo Minh Thu b5daffc115 [IMP] registry: whene deleting a registry, also delete its cache and cron.
bzr revid:
2011-07-13 17:35:21 +02:00
Vo Minh Thu 26f22874d9 [LINT] removed unused variable, forgot to change two variables in last commit, corrected typo introduced at 3417.6.6.
bzr revid:
2011-06-15 09:22:31 +02:00
Vo Minh Thu e375049414 [REF] osv: moved osv_pool to modules/registry.
bzr revid:
2011-06-14 16:22:26 +02:00
Vo Minh Thu 16ac84af68 [REF] moved openerp/registry/ => openerp/modules/
- Maybe it should be called Argh, consistency...

bzr revid:
2011-05-19 09:39:35 +02:00
Vo Minh Thu 6c051106ae [FIX] fix bad copy/paste.
bzr revid:
2011-05-13 11:37:01 +02:00
Vo Minh Thu 09079b0102 [REF] pooler code goes in openerp.registry.manager.
bzr revid:
2011-05-12 10:46:46 +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/

bzr revid:
2011-05-10 16:28:49 +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:
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:
2011-04-27 11:28:36 +02:00
Vo Minh Thu 545a438c03 [REF] openerp.modules
- for the moment it is a copy of openerp.addons

bzr revid:
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:
2011-04-20 16:14:07 +02:00
Vo Minh Thu f96d58c9c6 [REF] pooler: added some comments.
bzr revid:
2011-04-20 09:23:46 +02:00
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from to
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to
- Moved outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid:
2011-02-07 13:57:23 +01:00