ATLAS Offline Software
Loading...
Searching...
No Matches
python.AsgServiceConfig Namespace Reference

Classes

class  AsgServiceConfig
class  PrivateToolConfig
class  TestServiceTypeAndName
 Test case for the service type/name handling. More...
class  TestServiceProperties
 Test case for the service property handling. More...
class  TestServicePrivateTool
 Test case for using private tools. More...

Functions

 stringPropValue (value)
 indentBy (propValue, indent)

Function Documentation

◆ indentBy()

python.AsgServiceConfig.indentBy ( propValue,
indent )
Helper function used in the configuration printout

Definition at line 364 of file AsgServiceConfig.py.

364def indentBy( propValue, indent ):
365 """Helper function used in the configuration printout"""
366
367 stringValue = str( propValue )
368 result = ""
369 for stringLine in stringValue.split( '\n' ):
370 if len( result ):
371 result += "\n" + indent
372 pass
373 result += stringLine
374 pass
375 return result
376
377
378#
379# Declare some unit tests for the code
380#
381

◆ stringPropValue()

python.AsgServiceConfig.stringPropValue ( value)
Helper function producing a string property value

Definition at line 354 of file AsgServiceConfig.py.

354def stringPropValue( value ):
355 """Helper function producing a string property value"""
356
357 stringValue = str( value )
358 if isinstance( value, bool ):
359 stringValue = str( int( value ) )
360 pass
361 return stringValue
362
363