kolibri/plugins/base.py
def _installed_apps_add(cls):
        """Call this from your enable() method to have the plugin automatically
        added to Kolibri configuration"""
        module_path = cls._module_path()
        if module_path not in config["INSTALLED_APPS"]:
            config["INSTALLED_APPS"].append(module_path)
        else:
            logger.warning("{} already enabled".format(module_path))
Call this from your enable() method to have the plugin automatically
        added to Kolibri configuration
Call this from your enable() method to have the plugin automatically
added to Kolibri configuration
Call this from your enable () method to have the plugin automatically added to Kolibri configuration
def _installed_apps_add(cls):
        module_path = cls._module_path()
        if module_path not in config["INSTALLED_APPS"]:
            config["INSTALLED_APPS"].append(module_path)
        else:
            logger.warning("{} already enabled".format(module_path))
def _installed_apps_add ( cls ) : module_path = cls . _module_path ( ) if module_path not in config [ "INSTALLED_APPS" ] : config [ "INSTALLED_APPS" ] . append ( module_path ) else : logger . warning ( "{} already enabled" . format ( module_path ) )
Call this from your enable() method to have the plugin automatically
added to Kolibri configuration
Call this from your enable () method to have the plugin automatically added to Kolibri configuration
"""Call this from your enable() method to have the plugin automatically
        added to Kolibri configuration"""
cls