mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 17:52:01 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
14
odoo-bringout-oca-connector-component/component/utils.py
Normal file
14
odoo-bringout-oca-connector-component/component/utils.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Copyright 2023 Camptocamp SA
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from .core import _component_databases
|
||||
|
||||
|
||||
def get_component_registry(dbname):
|
||||
return _component_databases.get(dbname)
|
||||
|
||||
|
||||
def is_component_registry_ready(dbname):
|
||||
"""Return True if the registry is ready to be used."""
|
||||
comp_registry = get_component_registry(dbname)
|
||||
return comp_registry.ready if comp_registry else False
|
||||
Loading…
Add table
Add a link
Reference in a new issue