(cls, config_id, domain)
return cls._get_report_config(wrapped, report_domain)
Returns a ReportConfiguration object, NOT StaticReportConfigurations.
Returns a ReportConfiguration object, NOT StaticReportConfigurations.
Returns a ReportConfiguration object NOT StaticReportConfigurations .
def by_id(cls, config_id, domain):
        """Returns a ReportConfiguration object, NOT StaticReportConfigurations.
        """
        try:
            report_domain, wrapped = cls.by_id_mapping()[config_id]
        except KeyError:
            raise BadSpecError(_('The report configuration referenced by this report could '
                                 'not be found: %(report_id)s') % {'report_id': config_id})

        if domain and report_domain != domain:
            raise DocumentNotFound("Document {} of class {} not in domain {}!".format(
                config_id,
                ReportConfiguration.__class__.__name__,
                domain,
            ))
        return cls._get_report_config(wrapped, report_domain)
def by_id ( cls , config_id , domain ) : try : report_domain , wrapped = cls . by_id_mapping ( ) [ config_id ] except KeyError : raise BadSpecError ( _ ( 'The report configuration referenced by this report could ' 'not be found: %(report_id)s' ) % { 'report_id' : config_id } ) if domain and report_domain != domain : raise DocumentNotFound ( "Document {} of class {} not in domain {}!" . format ( config_id , ReportConfiguration . __class__ . __name__ , domain , ) ) return cls . _get_report_config ( wrapped , report_domain )