def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'heating', REQUIRED, config, as_node) set_attribute(self, 'cooling', REQUIRED, config, as_node) set_attribute(self, 'temperature', REQUIRED, config, as_node) set_attribute(self, 'minimum', REQUIRED, config, float) set_attribute(self, 'maximum', REQUIRED, config, float)
def configure(self, config): set_attribute(self, 'debug', 0, config, int) set_attribute(self, 'ip', '', config) default = '${mpx.properties.%s_PORT}' % self.server_type set_attribute(self, 'port', default, config, int) set_attribute(self, 'user_manager', as_node('/services/User Manager'), config, as_node) set_attribute(self, 'authentication', 'form', config) if (self.authentication is not None and self.authentication not in ('digest', 'basic', 'form')): raise EInvalidValue('authentication', self.authentication, 'Authentication scheme not recognized.') set_attribute(self, 'port', default, config, int) set_attribute(self, 'maintenance_interval', 25, config, int) set_attribute(self, 'zombie_timeout', 600, config, int) set_attribute(self, 'thread_count', 3, config, int) if not self.has_child("Request Responder"): self._setup_request_responder() if not self.has_child("Authenticator"): self._setup_authentication_handler() if not self.has_child("PSP Handler"): self._setup_psp_handler() if not self.has_child("JSON-RPC Handler"): self._setup_json_handler() ServiceNode.configure(self, config)
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'heating', REQUIRED, config, as_node) set_attribute(self, 'cooling', REQUIRED, config, as_node) set_attribute(self, 'temperature', REQUIRED, config, as_node) set_attribute(self, 'minimum', REQUIRED, config, float) set_attribute(self, 'maximum', REQUIRED, config, float)
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'log', self.parent.parent, config, as_node) set_attribute(self, 'gm_time', 1, config, as_boolean) self.time_function = time.localtime if self.gm_time: self.time_function = time.gmtime
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'server_url', REQUIRED, config) set_attribute(self, 'node', REQUIRED, config) set_attribute(self, 'period', 30, config, int) set_attribute(self, 'connection', '/services/network', config, as_node) set_attribute(self, 'timeout', 60, config, int)
def configure(self, config): set_attribute(self, 'debug', 0, config, int) set_attribute(self, 'ip', '', config) default = '${mpx.properties.%s_PORT}' % self.server_type set_attribute(self,'port',default,config,int) set_attribute(self,'user_manager', as_node('/services/User Manager'),config,as_node) set_attribute(self,'authentication','form',config) if (self.authentication is not None and self.authentication not in ('digest','basic','form')): raise EInvalidValue('authentication',self.authentication, 'Authentication scheme not recognized.') set_attribute(self,'port',default,config,int) set_attribute(self, 'maintenance_interval', 25, config, int) set_attribute(self, 'zombie_timeout', 600, config, int) set_attribute(self, 'thread_count', 3, config, int) if not self.has_child("Request Responder"): self._setup_request_responder() if not self.has_child("Authenticator"): self._setup_authentication_handler() if not self.has_child("PSP Handler"): self._setup_psp_handler() if not self.has_child("JSON-RPC Handler"): self._setup_json_handler() ServiceNode.configure(self, config)
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'default_log', '/services/logger/local_view', config) set_attribute(self, 'use_cache', 1, config, int) set_attribute(self, 'debug', 1, config, int) return
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'server_url', REQUIRED, config) set_attribute(self, 'node', REQUIRED, config) set_attribute(self, 'period', 30, config, int) set_attribute(self,'connection','/services/network',config,as_node) set_attribute(self,'timeout',60,config,int)
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'log', self.parent.parent, config, as_node) set_attribute(self, 'gm_time', 1, config, as_boolean) self.time_function = time.localtime if self.gm_time: self.time_function = time.gmtime
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'connection', '/services/network', config, as_node) set_attribute(self, 'timeout', 60, config, int) set_attribute(self, 'gm_time', 1, config, as_boolean) self.time_function = time.localtime if self.gm_time: self.time_function = time.gmtime
def configure(self,config): ServiceNode.configure(self,config) set_attribute(self,'connection','/services/network',config,as_node) set_attribute(self,'timeout',60,config,int) set_attribute(self, 'gm_time', 1, config, as_boolean) self.time_function = time.localtime if self.gm_time: self.time_function = time.gmtime
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'security_level', 'NoSec', config) msglog.log('broadway', msglog.types.INFO, 'RNA_Socket.configure: security_level = %s.' % self.security_level) self.transportClass = SimpleTcpService if (self.security_level == 'Auth-Only') \ or (self.security_level == 'Full-Enc'): self.transportClass = SrnaService # Handle changes to the enabled attribute, once we've started. if self.enabled != self.was_enabled: if self.enabled: if self.start_count and self._start(): self.start_count += 1 self.was_enabled = self.enabled elif self.start_count > self.stop_count: self.stop_count += 1 self._stop() return
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'security_level', 'NoSec', config) msglog.log( 'broadway', msglog.types.INFO, 'RNA_Socket.configure: security_level = %s.' % self.security_level) self.transportClass = SimpleTcpService if (self.security_level == 'Auth-Only') \ or (self.security_level == 'Full-Enc'): self.transportClass = SrnaService # Handle changes to the enabled attribute, once we've started. if self.enabled != self.was_enabled: if self.enabled: if self.start_count and self._start(): self.start_count += 1 self.was_enabled = self.enabled elif self.start_count > self.stop_count: self.stop_count += 1 self._stop() return
def configure(self, cd): ServiceNode.configure(self, cd) set_attribute(self, "allow_ftp", "1", cd, int) return
def configure(self,config): ServiceNode.configure(self,config) set_attribute(self, 'minimum_size', 250, config, int) set_attribute(self, 'maximum_size', 500, config, int) self.log = mpx.lib.log.TrimmingLog(self.name) return
def configure(self, cd): ServiceNode.configure(self, cd) set_attribute(self, "allow_ftp", "1", cd, int) return
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'log', REQUIRED, config)
def configure(self, config): ServiceNode.configure(self, config) if self._id_manager is None: self._id_manager = UniqueID(self) return
def configure(self, config): ServiceNode.configure(self, config) set_attribute(self, 'log', REQUIRED, config)
def configure(self, config): ServiceNode.configure(self,config) set_attribute(self,'default_log','/services/logger/local_view',config) set_attribute(self,'use_cache', 1, config, int) set_attribute(self,'debug', 1, config, int) return
def configure(self,config): ServiceNode.configure(self,config)
def configure(self, config): ServiceNode.configure(self, config) if self._id_manager is None: self._id_manager = UniqueID(self) return