Commit 4138d409 authored by Perceval Guillou's avatar Perceval Guillou
Browse files

remove Reference and replace_reference

parent dd1c4e04
......@@ -5,7 +5,6 @@
# Copyright (c) 2015-2019 Beamline Control Unit, ESRF
# Distributed under the GNU LGPLv3. See LICENSE for more info.
from bliss.config.static import get_config
import re
from importlib.util import find_spec
......@@ -118,21 +117,6 @@ def _parse_list(config, value, placeholder):
return object_list
class Reference:
def __init__(self, name, *args, **kwargs):
self.__name = name.lstrip("$")
def name(self):
return self.__name
def __call__(self, *args, **kwargs):
return get_config().get(
def __str__(self):
return f"${}"
def replace_reference_by_object(
config, item_cfg_node, ref_objects=None, placeholder=None
......@@ -155,9 +139,3 @@ def replace_reference_by_object(
if subref:
referenced_objects[name] = subref
def replace_reference(config, item_cfg_node, ref_objects=None):
return replace_reference_by_object(
config, item_cfg_node, ref_objects, placeholder=Reference
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment