Skip to content
Snippets Groups Projects
Commit 6133847d authored by Walter Lampl's avatar Walter Lampl
Browse files

PublicHandleArraySemantics.store() : Accept PublicToolHandles and ServiceHandles as parameter

parent a5b04f0f
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!34812PublicHandleArraySemantics.store() : Accept PublicToolHandles and ServiceHandles as parameter
......@@ -2,7 +2,7 @@
from past.builtins import basestring
import GaudiConfig2.semantics
from GaudiKernel.GaudiHandles import PrivateToolHandleArray
from GaudiKernel.GaudiHandles import PrivateToolHandleArray, PublicToolHandle, ServiceHandle
import re
import collections
import copy
......@@ -142,13 +142,17 @@ class PublicHandleArraySemantics(GaudiConfig2.semantics.PropertySemantics):
format(value.__component_type__,v, self.name))
else:
newValue.append("{}/{}".format(v.__cpp_type__,v.name))
elif isinstance(v,(PublicToolHandle,ServiceHandle)):
newValue.append("{}/{}".format(v.getType(),v.getName()))
elif isinstance(v,basestring):
#Check if componet is known ...
newValue.append(v)
pass
else:
raise TypeError('Configurable expected, got {!r} in assignment to {}'.\
format(value,self.name))
format(v,self.name))
return newValue
def default(self, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment