def make_simple():
    """
    Create a L{SimpleAuthenticator} instance using values read from coilmq configuration.

    @return: The configured L{SimpleAuthenticator}
    @rtype: L{SimpleAuthenticator}
    @raise ConfigError: If there is a configuration error.
    """
    authfile = config.get('coilmq', 'auth.simple.file')
    if not authfile:
        raise ConfigError('Missing configuration parameter: auth.simple.file')
    sa = SimpleAuthenticator()
    sa.from_configfile(authfile)
    return sa
def make_simple ( ) : authfile = config . get ( 'coilmq' , 'auth.simple.file' ) if not authfile : raise ConfigError ( 'Missing configuration parameter: auth.simple.file' ) sa = SimpleAuthenticator ( ) sa . from_configfile ( authfile ) return sa
Create a L{SimpleAuthenticator} instance using values read from coilmq configuration.

    @return: The configured L{SimpleAuthenticator}
    @rtype: L{SimpleAuthenticator}
    @raise ConfigError: If there is a configuration error.