def processServer(self, cmdDict=None, action=None):
     '''processServer: This method processes a server configuration object. It takes two parameters, a dictionary containing the command and the action (RW)'''
     self.logger.trace("processServer: cmdDict=%s" % cmdDict)
     if cmdDict == None:
         self.logger.error("processServer: No dictionary was passed to the generateCommands method")
         raise ProcessCommandException("No dictionary was passed to the generateCommands method")
     #end-if
     k = cmdDict.keys()[0]
     v = cmdDict.values()[0]
     self.logger.trace("processServer: key=%s, value=%s" % (k, v))
     if k and v != None:
         self.validateScope(v, 'processServer')
         srv = AdminConfig.getid(v['scope']+"%s:%s/" % (k, v['name']))
         self.logger.trace("processServer: srv=%s " % srv)
         if srv == "":
             self.logger.info("processServer: creating server %s" % v['name'])
         else:
             srvObj = AdminConfig.getObjectName(srv)
             self.logger.trace("processServer: srvObj %s" % srvObj)
             ptype = AdminControl.getAttribute(srvObj, 'processType')
             self.logger.trace("processServer: ptype %s" % ptype)
             if ptype != 'UnManagedProcess':
                 self.logger.info("processServer: This is a Network Deployment Profile so this command will run.")
             else:
                 self.logger.warn("processServer: This is not a Network Deployment Profile so this command won't be run.  Use the manageprofiles too to create servers." )
                 #raise ProcessCommandException("This is not a Network Deployment Profile so this command won't be run.  Use the manageprofiles too to create servers.")
             #end-if
         #end-if
     else:
         self.logger.error("processServer: key and value parameters were not suppled to the method.")
         raise ProcessCommandException("key and value parameters were not suppled to the method.")
 def processServer(self, cmdDict=None, action=None):
     '''processServer: This method processes a server configuration object. It takes two parameters, a dictionary containing the command and the action (RW)'''
     self.logger.trace("processServer: cmdDict=%s" % cmdDict)
     if cmdDict == None:
         self.logger.error("processServer: No dictionary was passed to the generateCommands method")
         raise ProcessCommandException("No dictionary was passed to the generateCommands method")
     #end-if
     k = cmdDict.keys()[0]
     v = cmdDict.values()[0]
     self.logger.trace("processServer: key=%s, value=%s" % (k, v))
     if k and v != None:
         self.validateScope(v, 'processServer')
         srv = AdminConfig.getid(v['scope']+"%s:%s/" % (k, v['name']))
         self.logger.trace("processServer: srv=%s " % srv)
         if srv == "":
             self.logger.info("processServer: creating server %s" % v['name'])
         else:
             srvObj = AdminConfig.getObjectName(srv)
             self.logger.trace("processServer: srvObj %s" % srvObj)
             ptype = AdminControl.getAttribute(srvObj, 'processType')
             self.logger.trace("processServer: ptype %s" % ptype)
             if ptype != 'UnManagedProcess':
                 self.logger.info("processServer: This is a Network Deployment Profile so this command will run.")
             else:
                 self.logger.warn("processServer: This is not a Network Deployment Profile so this command won't be run.  Use the manageprofiles too to create servers." )
                 #raise ProcessCommandException("This is not a Network Deployment Profile so this command won't be run.  Use the manageprofiles too to create servers.")
             #end-if
         #end-if
     else:
         self.logger.error("processServer: key and value parameters were not suppled to the method.")
         raise ProcessCommandException("key and value parameters were not suppled to the method.")