description = '%s records that have badly formatted names' % MASTER_NAME, data = UsrObjList(maParser.badName.values()).tabulate( cols = name_cols, tablefmt='html', ), length = len(maParser.badName) ) ) # for row in maParser.badName.values(): # ACTCsvWriter.writerow(OrderedDict(map(SanitationUtils.coerceUnicode, (key, value)) for key, value in row.items())) if maParser.badName or maParser.badAddress: UsrObjList(maParser.badName.values() + maParser.badAddress.values())\ .exportItems(masterResCsvPath, csv_colnames) reporter.addGroup(sanitizingGroup) if do_sync and (mDeltaUpdates + sDeltaUpdates): deltaGroup = HtmlReporter.Group('deltas', 'Field Changes') mDeltaList = UsrObjList(filter(None, [syncUpdate.newMObject for syncUpdate in mDeltaUpdates])) sDeltaList = UsrObjList(filter(None, [syncUpdate.newSObject for syncUpdate in sDeltaUpdates])) deltaCols = ColData_User.getDeltaCols() allDeltaCols = OrderedDict( ColData_User.getBasicCols().items() +