diff options
| author | Vo Minh Thu <vmt@openerp.com> | 2011-07-13 17:35:21 +0200 |
|---|---|---|
| committer | Vo Minh Thu <vmt@openerp.com> | 2011-07-13 17:35:21 +0200 |
| commit | b5daffc115f77d02b8e78ab6c437776f9d91e97c (patch) | |
| tree | 0f5b318a294f917f7ccdd043595a5452f7349de7 /openerp/sql_db.py | |
| parent | 6f5eb6b91e27f1c5aa83fd09badc3bb41fe88e3a (diff) | |
[IMP] registry: whene deleting a registry, also delete its cache and cron.
bzr revid: vmt@openerp.com-20110713153521-isn9bllnggbxwi0z
Diffstat (limited to 'openerp/sql_db.py')
| -rw-r--r-- | openerp/sql_db.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openerp/sql_db.py b/openerp/sql_db.py index 43a508f9082..37cb8b224bb 100644 --- a/openerp/sql_db.py +++ b/openerp/sql_db.py @@ -429,9 +429,8 @@ def db_connect(db_name): return Connection(_Pool, db_name) def close_db(db_name): - """ You might want to call openerp.netsvc.Agent.cancel(db_name) along this function.""" + """ You might want to call openerp.modules.registry.RegistryManager.delete(db_name) along this function.""" _Pool.close_all(dsn(db_name)) - tools.cache.clean_caches_for_db(db_name) ct = currentThread() if hasattr(ct, 'dbname'): delattr(ct, 'dbname') |
