diff options
| author | Raphael Collet <rco@openerp.com> | 2016-08-30 15:03:37 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-09-01 13:43:45 +0200 |
| commit | a7445b4053f2e31866b5f608619dfb3859fe0a68 (patch) | |
| tree | 137c4627ae14925efc83d2cb1a85df36f32b5efe /openerp/cli/shell.py | |
| parent | 3019f4a48d465fc36e7edef4622e1317751fbff8 (diff) | |
[REF] registry: move functionalities from `RegistryManager` to `Registry`
The API of `Registry` has been modified as follows:
- `Registry(name)` returns the registry of the given database
- `Registry.new(name)` forces the creation of a new `Registry` object
- `Registry.delete(name)` discards the given registry
- `Registry.delete_all()` discards all registries
- `registry.setup_signaling()` initializes the signaling for `registry`
- `registry.check_signaling()` returns an up-to-date `registry`
- `registry.signal_registry_change()` notifies that `registry` has changed
- `registry.signal_caches_change()` notifies potential cache invalidation
Diffstat (limited to 'openerp/cli/shell.py')
| -rw-r--r-- | openerp/cli/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/cli/shell.py b/openerp/cli/shell.py index 2e11645032d..0d1ed59813e 100644 --- a/openerp/cli/shell.py +++ b/openerp/cli/shell.py @@ -48,7 +48,7 @@ class Shell(Command): } with openerp.api.Environment.manage(): if dbname: - registry = openerp.modules.registry.RegistryManager.get(dbname) + registry = openerp.registry(dbname) with registry.cursor() as cr: uid = openerp.SUPERUSER_ID ctx = openerp.api.Environment(cr, uid, {})['res.users'].context_get() |
