def check_config(quiet=False):
    """Checks if all required config options are set

    :param quiet: if True, return the result as a bool, otherwise
                  raise `IndicoError` if any setting is missing
    """
    from indico_chat.plugin import ChatPlugin
    settings = ChatPlugin.settings.get_all()
    missing = not all(settings[x] for x in ('server', 'muc_server', 'bot_jid', 'bot_password'))
    if missing and not quiet:
        raise IndicoError(_('Chat plugin is not configured properly'))
    return not missing
def check_config ( quiet = False ) : from indico_chat . plugin import ChatPlugin settings = ChatPlugin . settings . get_all ( ) missing = not all ( settings [ x ] for x in ( 'server' , 'muc_server' , 'bot_jid' , 'bot_password' ) ) if missing and not quiet : raise IndicoError ( _ ( 'Chat plugin is not configured properly' ) ) return not missing
Checks if all required config options are set

    :param quiet: if True, return the result as a bool, otherwise
                  raise `IndicoError` if any setting is missing