(self, config)
return pre != post
Update datasources enabled based on app config.

        Follows similar logic to CallCenterIndicators
        :returns: True if changes were made
Update datasources enabled based on app config.
Update datasources enabled based on app config .
def update_from_app_config(self, config):
        """Update datasources enabled based on app config.

        Follows similar logic to CallCenterIndicators
        :returns: True if changes were made
        """
        pre = (self.form_datasource_enabled, self.case_datasource_enabled, self.case_actions_datasource_enabled)
        self.form_datasource_enabled = config.forms_submitted.enabled or bool(config.custom_form)
        self.case_datasource_enabled = (
            config.cases_total.enabled
            or config.cases_opened.enabled
            or config.cases_closed.enabled
        )
        self.case_actions_datasource_enabled = config.cases_active.enabled
        post = (self.form_datasource_enabled, self.case_datasource_enabled, self.case_actions_datasource_enabled)
        return pre != post
def update_from_app_config ( self , config ) : pre = ( self . form_datasource_enabled , self . case_datasource_enabled , self . case_actions_datasource_enabled ) self . form_datasource_enabled = config . forms_submitted . enabled or bool ( config . custom_form ) self . case_datasource_enabled = ( config . cases_total . enabled or config . cases_opened . enabled or config . cases_closed . enabled ) self . case_actions_datasource_enabled = config . cases_active . enabled post = ( self . form_datasource_enabled , self . case_datasource_enabled , self . case_actions_datasource_enabled ) return pre != post