(self, existing_report)
Use an existing report to initialize some of the instance variables of this
        form. This method is used when editing an existing report.
Use an existing report to initialize some of the instance variables of this
        form. This method is used when editing an existing report.
Use an existing report to initialize some of the instance variables of this form . This method is used when editing an existing report .
def _bootstrap(self, existing_report):
        """
        Use an existing report to initialize some of the instance variables of this
        form. This method is used when editing an existing report.
        """
        self.report_name = existing_report.title

        self.source_type = get_source_type_from_report_config(existing_report)
        assert self.domain == existing_report.domain
        if self.source_type in APP_DATA_SOURCE_TYPE_VALUES:
            self.report_source_id = existing_report.config.meta.build.source_id
            app_id = existing_report.config.meta.build.app_id
            self.registry_slug = existing_report.config.meta.build.registry_slug
            self.app = None
            if app_id:
                self.app = Application.get(app_id)
            elif not self.registry_slug:
                raise BadBuilderConfigError(DATA_SOURCE_MISSING_APP_ERROR_MESSAGE)
        else:
            assert self.source_type == DATA_SOURCE_TYPE_RAW
            self.report_source_id = existing_report.config_id
            self.app = self.registry_slug = None
def _bootstrap ( self , existing_report ) : self . report_name = existing_report . title self . source_type = get_source_type_from_report_config ( existing_report ) assert self . domain == existing_report . domain if self . source_type in APP_DATA_SOURCE_TYPE_VALUES : self . report_source_id = existing_report . config . meta . build . source_id app_id = existing_report . config . meta . build . app_id self . registry_slug = existing_report . config . meta . build . registry_slug self . app = None if app_id : self . app = Application . get ( app_id ) elif not self . registry_slug : raise BadBuilderConfigError ( DATA_SOURCE_MISSING_APP_ERROR_MESSAGE ) else : assert self . source_type == DATA_SOURCE_TYPE_RAW self . report_source_id = existing_report . config_id self . app = self . registry_slug = None