예제 #1
0
    def __loadattrs__(self):
        def excludes(x):
            return not {
                'threadPool': None,
                'listenerPorts': None
            }.has_key(x[0])

        if self.exists():
            for name, value in filter(
                    excludes,
                    map(splitAttrs,
                        AdminConfig.show(
                            self.__getconfigid__()).splitlines())):
                self.__was_cfg_attrmap__[name] = self.__parseattr__(
                    name, value)
예제 #2
0
	def __loadattrs__(self):
		def excludes(x): return not {'threadPool' : None, 'listenerPorts':None}.has_key(x[0])
		if self.exists():
			for name, value in filter(excludes, map(splitAttrs, AdminConfig.show(self.__getconfigid__()).splitlines())):
				self.__was_cfg_attrmap__[name] = self.__parseattr__(name, value)