#NEWLINE# def setupServices( self , services = None ) : #NEWLINE# #INDENT# 'Sets up services in the passed list for this node' #NEWLINE# if ( services is None ) : #NEWLINE# #INDENT# raise Exception ( 'Passed empty services parameter\n' ) #NEWLINE# #UNINDENT# if any ( ( True for k in services if ( k in self . services ) ) ) : #NEWLINE# #INDENT# raise Exception ( 'Cannot setup same service twice\n' ) #NEWLINE# #UNINDENT# self . services . update ( services ) #NEWLINE# for ( service , serviceProperties ) in services . items ( ) : #NEWLINE# #INDENT# service . setupNode ( self , serviceProperties )