示例#1
0
文件: config.py 项目: mari0d/synapse
    def getConfDef(self, name):
        '''
        Get the defitition for a given

        Args:
            name (str): Name to get the definition of.

        Returns:
            dict: Dictionary containing the configuration definition for the given named option.

        Raises:
            NoSuchOpt: If the name is not a valid option.
        '''
        cdef = self._conf_defs.get(name)
        if cdef is None:
            raise s_common.NoSuchOpt(name=name)
        return cdef
示例#2
0
 def getConfDef(self, name):
     cdef = self._conf_defs.get(name)
     if cdef is None:
         raise s_common.NoSuchOpt(name=name)
     return cdef