00001 from AthenaCommon.Configurable import *
00002 from GaudiAlg.GaudiAlgConf import Sequencer
00003
00004 from AthenaCommon.Logging import logging
00005
00006
00007
00008 class IAddSequencer ( Sequencer ) :
00009
00010
00011
00012
00013
00014
00015
00016
00017 def __iadd__(self,alghandle):
00018
00019 try:
00020 Sequencer.__iadd__(self, alghandle)
00021 self.Members.append( alghandle.getFullName() )
00022 except (RuntimeError, TypeError):
00023 mlog = logging.getLogger( 'IAddSequencer::__iadd__ ' )
00024 if hasattr( alghandle, 'getFullName' ):
00025 mlog.error ("Could not add "+alghandle.getFullName()+" to IAddSequencer")
00026 else:
00027 mlog.error ("Could not add "+str(alghandle)+" to IAddSequencer")
00028 return self