Beispiel #1
0
def printBasicColumns(users):
    # print len(users)
    usrList = UsrObjList()
    for user in users:
        usrList.append(user)
        # SanitationUtils.safePrint( "BILLING ADDRESS:", repr(user), user['First Name'], user.get('First Name'), user.name.__unicode__(out_schema="flat"))

    cols = colData.getBasicCols()

    SanitationUtils.safePrint( usrList.tabulate(
        cols,
        tablefmt = 'simple'
    ))
Beispiel #2
0
            deltaCols = ColData_User.getDeltaCols()

            allDeltaCols = OrderedDict(
                ColData_User.getBasicCols().items() +
                ColData_User.nameCols(deltaCols.keys()+deltaCols.values()).items()
            )

            if mDeltaList:
                deltaGroup.addSection(
                    HtmlReporter.Section(
                        'm_deltas',
                        title = '%s Changes List' % MASTER_NAME.title(),
                        description = '%s records that have changed important fields' % MASTER_NAME,
                        data = mDeltaList.tabulate(
                            cols=allDeltaCols,
                            tablefmt='html'),
                        length = len(mDeltaList)
                    )
                )

            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)