Exemplo n.º 1
0
            if sDeltaList:
                deltaGroup.addSection(
                    HtmlReporter.Section(
                        's_deltas',
                        title = '%s Changes List' % SLAVE_NAME.title(),
                        description = '%s records that have changed important fields' % SLAVE_NAME,
                        data = sDeltaList.tabulate(
                            cols=allDeltaCols,
                            tablefmt='html'),
                        length = len(sDeltaList)
                    )
                )

            reporter.addGroup(deltaGroup)
            if mDeltaList:
                mDeltaList.exportItems(masterDeltaCsvPath, ColData_User.getColNames(allDeltaCols))
            if sDeltaList:
                sDeltaList.exportItems(slaveDeltaCsvPath, ColData_User.getColNames(allDeltaCols))


        report_matching = do_sync
        if report_matching:

            matchingGroup = HtmlReporter.Group('matching', 'Matching Results')
            matchingGroup.addSection(
                HtmlReporter.Section(
                    'perfect_matches',
                    **{
                        'title': 'Perfect Matches',
                        'description': "%s records match well with %s" % (SLAVE_NAME, MASTER_NAME),
                        'data': globalMatches.tabulate(tablefmt="html"),