#NEWLINE# def adddefaultservices( self ) : #NEWLINE# #INDENT# ' Add default services and node types to the ServicePlan.\n        ' #NEWLINE# for type in self . session . services . defaultservices : #NEWLINE# #INDENT# defaults = self . session . services . getdefaultservices ( spn ) #NEWLINE# spn = self . createElement ( 'Node' ) #NEWLINE# spn . setAttribute ( 'type' , type ) #NEWLINE# self . sp . appendChild ( spn ) #NEWLINE# for svc in defaults : #NEWLINE# #INDENT# s = self . createElement ( 'Service' ) #NEWLINE# spn . appendChild ( s ) #NEWLINE# s . setAttribute ( 'name' , str ( svc . _name ) )