Commit 067fb83c authored by Walter Lampl's avatar Walter Lampl
Browse files

GaudiConfig2: Add toStringProperty() method, for compatiblity with GaudiHandles

parent 38ee4858
......@@ -244,6 +244,9 @@ class Configurable(ConfigMetaHelper):
def getFullJobOptName(self):
return "{}/{}".format(self.__cpp_type__, self.name)
def toStringProperty(self):
return "{}/{}".format(self.__cpp_type__, self.name)
def merge(self, other):
'''
Merge the properties of the other instance into the current one.
......
......@@ -73,6 +73,7 @@ def test_configurable():
assert a.getFullJobOptName() == MyAlg.__cpp_type__ + '/abc'
assert a.toStringProperty() == MyAlg.__cpp_type__ + '/abc'
def test_properties():
p = MyAlg()
......
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