Follow-up from "confDB2: Use 'PublicToolHandle', 'PrivateToolHandle' and 'ServiceHandle' instead of GaudiHandleBase as cpp_type"
The following discussion from !1034 (merged) should be addressed:
-
@clemenci started a discussion: (+3 comments) I'd like to avoid having two ways of doing the same thing... I do not want to end up with the same kind of mess of the old Configurables, where we have a lot of duplications that we cannot remove because we do not know who uses them.
I'd rather add an opt-in like (after the
Configurable
class definition):if 'ENABLE_ATLAS_LEGACY_INTERFACE' in os.environ: Configurable.getName = lambda self: self.name Configurable.getGaudiType = lambda self: self.__component_type__
Note that it should be possible to add the backward compatibility hacks in an ATLAS module.