Source code for slidge_whatsapp.config

"""
Config contains plugin-specific configuration for WhatsApp, and is loaded automatically by the
core configuration framework.
"""

from slidge import global_config

# FIXME: workaround because global_config.HOME_DIR is not defined unless
#        called by slidge's main(), which is a problem for test and docs
try:
[docs] DB_PATH = global_config.HOME_DIR / "whatsapp" / "whatsapp.db"
DB_PATH__DOC = "The path to the database used for the WhatsApp plugin." except AttributeError: pass
[docs]ALWAYS_SYNC_ROSTER = False
[docs]ALWAYS_SYNC_ROSTER__DOC = ( "Whether or not to perform a full sync of the WhatsApp roster on startup." )
[docs]SKIP_VERIFY_TLS = False
[docs]SKIP_VERIFY_TLS__DOC = ( "Whether or not HTTPS connections made by this plugin should verify TLS" " certificates." )