daemon/core/misc/xmlwriter1.py
def addDefaultServices(self):
        ''' Add default services and node types to the ServicePlan.
        '''
        defaultservices = self.createElement("CORE:defaultservices")
        for type in self.coreSession.services.defaultservices:
            defaults = self.coreSession.services.getdefaultservices(type)
            spn = self.createElement("device")
            spn.setAttribute("type", type)
            defaultservices.appendChild(spn)
            for svc in defaults:
                s = self.createElement("service")
                spn.appendChild(s)
                s.setAttribute("name", str(svc._name))
        if defaultservices.hasChildNodes():
            self.appendChild(defaultservices)
 Add default services and node types to the ServicePlan.
        
Add default services and node types to the ServicePlan.
Add default services and node types to the ServicePlan .
def addDefaultServices(self):
        defaultservices = self.createElement("CORE:defaultservices")
        for type in self.coreSession.services.defaultservices:
            defaults = self.coreSession.services.getdefaultservices(type)
            spn = self.createElement("device")
            spn.setAttribute("type", type)
            defaultservices.appendChild(spn)
            for svc in defaults:
                s = self.createElement("service")
                spn.appendChild(s)
                s.setAttribute("name", str(svc._name))
        if defaultservices.hasChildNodes():
            self.appendChild(defaultservices)
def addDefaultServices ( self ) : defaultservices = self . createElement ( "CORE:defaultservices" ) for type in self . coreSession . services . defaultservices : defaults = self . coreSession . services . getdefaultservices ( type ) spn = self . createElement ( "device" ) spn . setAttribute ( "type" , type ) defaultservices . appendChild ( spn ) for svc in defaults : s = self . createElement ( "service" ) spn . appendChild ( s ) s . setAttribute ( "name" , str ( svc . _name ) ) if defaultservices . hasChildNodes ( ) : self . appendChild ( defaultservices )
Add default services and node types to the ServicePlan.
Add default services and node types to the ServicePlan .
''' Add default services and node types to the ServicePlan.
        '''
self