Пример #1
0
    def do_reports_upgrade(self):
        mgr = CustomReportManager(self.env, self.log)
        r = __import__('reports', globals(), locals(), ['reports'])

        for report_group in r.reports:
            rlist = report_group['reports']
            group_title = report_group['title']
            for report in rlist:
                title = report['title']
                new_version = report['version']
                mgr.add_report(report["title"], 'Clients Plugin',
                               report['description'], report['sql'],
                               report['uuid'], report['version'],
                               'Timing and Estimation Plugin', group_title)
Пример #2
0
    def do_reports_upgrade(self):
        mgr = CustomReportManager(self.env, self.log)
        r = __import__('reports', globals(), locals(), ['reports'])

        for report_group in r.reports:
            rlist = report_group['reports']
            group_title = report_group['title']
            for report in rlist:
                title = report['title']
                new_version = report['version']
                mgr.add_report(report["title"], 'Clients Plugin', \
                               report['description'], report['sql'], \
                               report['uuid'], report['version'],
                               'Timing and Estimation Plugin',
                               group_title)
Пример #3
0
    def do_reports_upgrade(self):
        self.log.debug( "Beginning Reports Upgrade");
        mgr = CustomReportManager(self.env, self.log)
        r = __import__("reports", globals(), locals(), ["all_reports"])

        for report_group in r.all_reports:
            rlist = report_group["reports"]
            group_title = report_group["title"]
            for report in rlist:
                title = report["title"]
                new_version = report["version"]
                mgr.add_report(report["title"], "Timing and Estimation Plugin", \
                               "", report["sql"], \
                               report["uuid"], report["version"],
                               "Timing and Estimation Plugin",
                               group_title)
Пример #4
0
    def do_reports_upgrade(self):
        self.log.debug("Beginning Reports Upgrade")
        mgr = CustomReportManager(self.env, self.log)
        r = __import__("reports", globals(), locals(), ["all_reports"])

        for report_group in r.all_reports:
            rlist = report_group["reports"]
            group_title = report_group["title"]
            for report in rlist:
                title = report["title"]
                new_version = report["version"]
                mgr.add_report(report["title"], "Timing and Estimation Plugin", \
                               "", report["sql"], \
                               report["uuid"], report["version"],
                               "Timing and Estimation Plugin",
                               group_title)
Пример #5
0
    def do_reports_upgrade(self, force=False):
        self.log.debug( "Beginning Reports Upgrade");
        mgr = CustomReportManager(self.env, self.log)
        statuses = get_statuses(self)
        stat_vars = status_variables(statuses)

        for report_group in all_reports:
            rlist = report_group["reports"]
            group_title = report_group["title"]
            for report in rlist:
                title = report["title"]
                new_version = report["version"]

                sql = report["sql"].replace('#STATUSES#', stat_vars)
                mgr.add_report(report["title"], "Timing and Estimation Plugin", \
                               "Reports Must Be Accessed From the Management Screen",
                               sql, report["uuid"], report["version"],
                               CustomReportManager.TimingAndEstimationKey,
                               group_title, force)
Пример #6
0
    def do_reports_upgrade(self, force=False):
        self.log.debug("Beginning Reports Upgrade")
        mgr = CustomReportManager(self.env, self.log)
        statuses = get_statuses(self)
        stat_vars = status_variables(statuses)

        for report_group in all_reports:
            rlist = report_group["reports"]
            group_title = report_group["title"]
            for report in rlist:
                title = report["title"]
                new_version = report["version"]

                sql = report["sql"].replace('#STATUSES#', stat_vars)
                mgr.add_report(report["title"], "Timing and Estimation Plugin", \
                               "Reports Must Be Accessed From the Management Screen",
                               sql, report["uuid"], report["version"],
                               CustomReportManager.TimingAndEstimationKey,
                               group_title, force)