Changeset 360

Show
Ignore:
Timestamp:
Fri Jan 4 17:49:38 2008
Author:
Brian
Message:

Update tests to work with current versions of Data and StartupData?

Files:

Legend:

Unmodified
Added
Removed
Modified
  • server/trunk/update/test/big_test_data.py

    r358 r360  
    22 22 # 060406 - Brian - big data that would mess up the test script  
    23 23  
    24   update2 = [{'Holiday': [], 'ColumnType': [{'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 1, 'Edit': False, 'T': 'A', 'ID': 1}, {'Name': 'Name', 'ReportTypeID': 1, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 2}, {'Name': 'StartDate', 'ReportTypeID': 1, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Start Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 3}, {'Name': 'TargetEndDate', 'ReportTypeID': 1, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Target\nEnd Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 4}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 2, 'Edit': False, 'T': 'B', 'ID': 5}, {'Name': 'Name', 'ReportTypeID': 2, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 6}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 3, 'Edit': False, 'T': 'A', 'ID': 7}, {'Name': 'ProjectID', 'ReportTypeID': 3, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Project\nID', 'Width': 80, 'Edit': False, 'T': 'A', 'ID': 8}, {'Name': 'Name', 'ReportTypeID': 3, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 9}, {'Name': 'StartDate', 'ReportTypeID': 3, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Start Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 10}, {'Name': 'DurationHours', 'ReportTypeID': 3, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Duration', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 11}, {'Name': 'CalculatedStartDate', 'ReportTypeID': 3, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Start Date\n(Calculated)', 'Width': 80, 'Edit': False, 'T': 'A', 'ID': 12}, {'Name': 'CalculatedEndDate', 'ReportTypeID': 3, 'DataType': 'd', 'AccessType': 'd', 'Label': 'End Date\n(Calculated)', 'Width': 80, 'Edit': False, 'T': 'A', 'ID': 13}, {'Name': 'Day/Gantt', 'DataType': 'g', 'AccessType': 's', 'ReportTypeID': 3, 'Edit': False, 'T': 'X', 'ID': 14}, {'Name': 'Day/Hours', 'DataType': 'i', 'AccessType': 's', 'ReportTypeID': 3, 'Edit': False, 'T': 'X', 'ID': 15}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 4, 'Edit': False, 'T': 'B', 'ID': 16}, {'Name': 'Resource/Name', 'ReportTypeID': 4, 'DataType': 't', 'AccessType': 'i', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 17}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 5, 'Edit': False, 'T': 'B', 'ID': 18}, {'Name': 'Prerequisite/Name', 'ReportTypeID': 5, 'DataType': 't', 'AccessType': 'i', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 19}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 6, 'Edit': False, 'T': 'A', 'ID': 20}, {'Name': 'Name', 'ReportTypeID': 6, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 21}, {'Name': 'SelectColumn', 'ReportTypeID': 6, 'DataType': 't', 'AccessType': 'd', 'Label': 'Select\nColumn', 'Width': 80, 'Edit': False, 'T': 'A', 'ID': 22}, {'Name': 'SelectValue', 'ReportTypeID': 6, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Select\nValue', 'Width': 80, 'Edit': False, 'T': 'A', 'ID': 23}, {'Name': 'ProjectID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'Project\nID', 'ReportTypeID': 6, 'Edit': False, 'T': 'A', 'ID': 24}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 7, 'Edit': False, 'T': 'B', 'ID': 25}, {'Name': 'Width', 'ReportTypeID': 7, 'DataType': 'i', 'AccessType': 'd', 'Width': 40, 'Edit': True, 'T': 'B', 'ID': 26}, {'Name': 'Label', 'ReportTypeID': 7, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 27}, {'Name': 'Periods', 'ReportTypeID': 7, 'DataType': 'i', 'AccessType': 'd', 'Width': 40, 'Edit': True, 'T': 'B', 'ID': 28}, {'Name': 'FirstDate', 'ReportTypeID': 7, 'DataType': 'd', 'AccessType': 'd', 'Label': 'First\nDate', 'Width': 80, 'Edit': True, 'T': 'B', 'ID': 29}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 8, 'Edit': False, 'T': 'A', 'ID': 30}, {'Name': 'ShortName', 'ReportTypeID': 8, 'DataType': 't', 'AccessType': 'd', 'Label': 'Short\nName', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 31}, {'Name': 'Name', 'ReportTypeID': 8, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 32}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 9, 'Edit': False, 'T': 'B', 'ID': 33}, {'Name': 'Task/Name', 'ReportTypeID': 9, 'DataType': 't', 'AccessType': 'i', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 34}, {'Name': 'Day/Hours', 'DataType': 'i', 'AccessType': 's', 'ReportTypeID': 9, 'Edit': False, 'T': 'X', 'ID': 35}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 10, 'Edit': False, 'T': 'A', 'ID': 36}, {'Name': 'Name', 'ReportTypeID': 10, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 37}, {'Name': 'Date', 'ReportTypeID': 10, 'DataType': 'd', 'AccessType': 'd', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 38}, {'Name': 'Hours', 'ReportTypeID': 10, 'DataType': 'i', 'AccessType': 'd', 'Width': 40, 'Edit': True, 'T': 'A', 'ID': 39}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 11, 'Edit': False, 'T': 'A', 'ID': 40}, {'Name': 'Also', 'ReportTypeID': 11, 'DataType': 'i', 'AccessType': 'd', 'Width': 40, 'Edit': False, 'T': 'A', 'ID': 41}, {'Name': 'Name', 'ReportTypeID': 11, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': False, 'T': 'A', 'ID': 42}, {'Name': 'TableA', 'ReportTypeID': 11, 'DataType': 't', 'AccessType': 'd', 'Label': 'Table\nA', 'Width': 100, 'Edit': False, 'T': 'A', 'ID': 43}, {'Name': 'TableB', 'ReportTypeID': 11, 'DataType': 't', 'AccessType': 'd', 'Label': 'Table\nB', 'Width': 100, 'Edit': False, 'T': 'A', 'ID': 44}, {'Name': 'Label', 'ReportTypeID': 11, 'DataType': 't', 'AccessType': 'd', 'Width': 120, 'Edit': True, 'T': 'A', 'ID': 45}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'ReportTypeID': 12, 'Edit': False, 'T': 'B', 'ID': 46}, {'Name': 'DataType', 'DataType': 't', 'AccessType': 'd', 'Label': 'Data Type', 'ReportTypeID': 12, 'Edit': False, 'T': 'B', 'ID': 47}, {'Name': 'AccessType', 'DataType': 't', 'AccessType': 'd', 'Label': 'Access Type', 'ReportTypeID': 12, 'Edit': False, 'T': 'B', 'ID': 48}, {'Name': 'Edit', 'DataType': 'b', 'AccessType': 'd', 'ReportTypeID': 12, 'Edit': False, 'T': 'B', 'ID': 49}, {'Name': 'Name', 'ReportTypeID': 12, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': False, 'T': 'B', 'ID': 50}, {'Name': 'Label', 'ReportTypeID': 12, 'DataType': 't', 'AccessType': 'd', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 51}], 'ReportType': [{'SuggestedColumns': ',Name,,;,StartDate,,;,TargetEndDate,,', 'TableA': 'Project', 'ID': 1, 'Name': 'Project'}, {'SuggestedColumns': 'Project,Name,,;,Name,,', 'Name': 'Project/Report', 'TableB': 'Report', 'Also': 1, 'TableA': 'Project', 'ID': 2}, {'SuggestedColumns': ',Name,,;,StartDate,,;,EffortHoura,,;,DurationHours,,;,CalculatedStartDate,,;,Day/Gantt,,21', 'TableA': 'Task', 'ID': 3, 'Name': 'Task'}, {'SuggestedColumns': 'Task,Name,,;,EffortHoura,,;,DurationHours,,;,Resource/Name,,', 'Name': 'Task/Assignment', 'TableB': 'Assignment', 'Also': 3, 'TableA': 'Task', 'ID': 4}, {'SuggestedColumns': 'Task,Name,,;,Prerequisite/Name,,', 'Name': 'Task/Dependency', 'TableB': 'Dependency', 'Also': 3, 'TableA': 'Task', 'ID': 5}, {'TableA': 'Report', 'ID': 6, 'Name': 'Report'}, {'TableB': 'ReportColumn', 'Also': 6, 'TableA': 'Report', 'ID': 7, 'Name': 'Report/ReportColumn'}, {'TableA': 'Resource', 'ID': 8, 'Name': 'Resource'}, {'SuggestedColumns': 'Resource,Name,,;,Task/Name,,', 'Name': 'Resource/Assignment', 'TableB': 'Assignment', 'Also': 8, 'TableA': 'Resource', 'ID': 9}, {'SuggestedColumns': ',Name,,;,Date,,;,Hours,,', 'TableA': 'Holiday', 'ID': 10, 'Name': 'Holiday'}, {'TableA': 'ReportType', 'ID': 11, 'Name': 'ReportType'}, {'TableB': 'ColumnType', 'Also': 11, 'TableA': 'ReportType', 'ID': 12, 'Name': 'ReportType/ColumnType'}], 'Assignment': [], 'TableAlias': [{'ID': 1, 'Prerequisite': 'Task', 'OtherData': 'Other'}], 'Project': [{'ID': 1, 'Name': 'All Projects'}, {'ID': 2, 'Name': 'New Project'}], 'Dependency': [], 'Other': [{'WeekHours': [8, 8, 8, 8, 8, 0, 0], 'FileSignature': 100, 'LastChange': 2, 'ID': 1}], 'ReportColumn': [{'A': 'Name', 'ColumnTypeID': 2, 'B': 'Name', 'TypeA': 'CHAR', 'Label': 'Name', 'Width': 140, 'NextColumn': 2, 'Periods': 0, 'TypeB': 'CHAR', 'ID': 1, 'ReportID': 1}, {'A': 'StartDate', 'ColumnTypeID': 3, 'TypeA': 'DATE', 'Label': 'Start Date', 'Width': 80, 'NextColumn': 3, 'Periods': 0, 'ID': 2, 'ReportID': 1}, {'A': 'TargetEndDate', 'ColumnTypeID': 4, 'TypeA': 'DATE', 'Label': 'Target Date', 'Width': 80, 'NextColumn': 0, 'Periods': 0, 'ID': 3, 'ReportID': 1}, {'A': 'Name', 'ColumnTypeID': 42, 'TypeA': 'CHAR', 'Label': 'Name', 'Width': 140, 'NextColumn': 12, 'Periods': 0, 'ID': 4, 'ReportID': 2}, {'A': 'Name', 'ColumnTypeID': 32, 'TypeA': 'CHAR', 'Label': 'Name', 'Width': 140, 'NextColumn': 0, 'Periods': 0, 'ID': 5, 'ReportID': 3}, {'A': 'Name', 'ColumnTypeID': 9, 'TypeA': 'CHAR', 'Label': 'Name', 'Width': 140, 'NextColumn': 7, 'Periods': 0, 'ID': 6, 'ReportID': 4}, {'A': 'StartDate', 'ColumnTypeID': 10, 'TypeA': 'DATE', 'Label': 'Start Date', 'Width': 80, 'NextColumn': 8, 'Periods': 0, 'ID': 7, 'ReportID': 4}, {'A': 'DurationHours', 'ColumnTypeID': 11, 'TypeA': 'INT', 'Label': 'Duration', 'Width': 80, 'NextColumn': 9, 'Periods': 0, 'ID': 8, 'ReportID': 4}, {'A': 'CalculatedStartDate', 'ColumnTypeID': 12, 'TypeA': 'DATE', 'Label': 'Start Date\n(Calculated)', 'Width': 80, 'NextColumn': 10, 'Periods': 0, 'ID': 9, 'ReportID': 4}, {'A': 'CalculatedEndDate', 'ColumnTypeID': 13, 'TypeA': 'DATE', 'Label': 'End Date\n(Calculated)', 'Width': 80, 'NextColumn': 11, 'Periods': 0, 'ID': 10, 'ReportID': 4}, {'ColumnTypeID': 14, 'Time': 'Day', 'TypeA': 'CHART', 'NextColumn': 0, 'ReportID': 4, 'FirstDate': '2006-03-16', 'ID': 11, 'Periods': 21}, {'ColumnTypeID': 50, 'ReportID': 2, 'ID': 12, 'Width': 140}], 'Report': [{'Name': 'Project/Report List', 'FirstColumn': 1, 'ProjectID': 1, 'FirstRow': 1, 'ReportTypeID': 2, 'ID': 1}, {'Name': 'Report Options', 'FirstColumn': 4, 'ProjectID': 1, 'FirstRow': 8, 'ReportTypeID': 12, 'ID': 2}, {'Name': 'Resource List', 'FirstColumn': 5, 'ProjectID': 1, 'FirstRow': 71, 'ReportTypeID': 8, 'ID': 3}, {'Web': 1, 'Name': 'Gantt Chart', 'FirstColumn': 6, 'SelectValue': 2, 'ProjectID': 2, 'SelectColumn': 'ProjectID', 'FirstRow': 4, 'ReportTypeID': 3, 'ID': 4}], 'Resource': [{'ID': 1, 'Name': 'First Resource'}], 'ReportRow': [{'TableID': 1, 'NextRow': 5, 'TableName': 'Project', 'ID': 1, 'ReportID': 1}, {'TableID': 2, 'NextRow': 3, 'TableName': 'Project', 'ID': 2, 'ReportID': 1}, {'TableID': 4, 'ParentRow': 2, 'TableName': 'Report', 'ReportID': 1, 'ID': 3}, {'TableID': 1, 'TableName': 'Task', 'ID': 4, 'ReportID': 4}, {'TableName': 'Report', 'NextRow': 6, 'TableID': 1, 'ParentRow': 1, 'ID': 5, 'ReportID': 1}, {'TableName': 'Report', 'NextRow': 7, 'TableID': 2, 'ReportID': 1, 'Hidden': True, 'ID': 6, 'ParentRow': 1}, {'TableName': 'Report', 'NextRow': 2, 'TableID': 3, 'ParentRow': 1, 'ID': 7, 'ReportID': 1}, {'TableID': 1, 'NextRow': 20, 'TableName': 'ReportType', 'ID': 8, 'ReportID': 2}, {'TableID': 2, 'NextRow': 24, 'TableName': 'ReportType', 'ID': 9, 'ReportID': 2}, {'TableID': 3, 'NextRow': 26, 'TableName': 'ReportType', 'ID': 10, 'ReportID': 2}, {'TableID': 4, 'NextRow': 35, 'TableName': 'ReportType', 'ID': 11, 'ReportID': 2}, {'TableID': 5, 'NextRow': 37, 'TableName': 'ReportType', 'ID': 12, 'ReportID': 2}, {'TableName': 'ReportType', 'NextRow': 39, 'TableID': 6, 'ReportID': 2, 'Hidden': True, 'ID': 13}, {'TableName': 'ReportType', 'NextRow': 44, 'TableID': 7, 'ReportID': 2, 'Hidden': True, 'ID': 14}, {'TableID': 8, 'NextRow': 49, 'TableName': 'ReportType', 'ID': 15, 'ReportID': 2}, {'TableID': 9, 'NextRow': 52, 'TableName': 'ReportType', 'ID': 16, 'ReportID': 2}, {'TableID': 10, 'NextRow': 55, 'TableName': 'ReportType', 'ID': 17, 'ReportID': 2}, {'TableName': 'ReportType', 'NextRow': 59, 'TableID': 11, 'ReportID': 2, 'Hidden': True, 'ID': 18}, {'TableName': 'ReportType', 'NextRow': 65, 'TableID': 12, 'ReportID': 2, 'Hidden': True, 'ID': 19}, {'TableName': 'ColumnType', 'NextRow': 21, 'TableID': 1, 'ParentRow': 8, 'ID': 20, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 22, 'TableID': 2, 'ParentRow': 8, 'ID': 21, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 23, 'TableID': 3, 'ParentRow': 8, 'ID': 22, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 9, 'TableID': 4, 'ParentRow': 8, 'ID': 23, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 25, 'TableID': 5, 'ParentRow': 9, 'ID': 24, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 10, 'TableID': 6, 'ParentRow': 9, 'ID': 25, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 27, 'TableID': 7, 'ParentRow': 10, 'ID': 26, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 28, 'TableID': 8, 'ParentRow': 10, 'ID': 27, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 29, 'TableID': 9, 'ParentRow': 10, 'ID': 28, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 30, 'TableID': 10, 'ParentRow': 10, 'ID': 29, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 31, 'TableID': 11, 'ParentRow': 10, 'ID': 30, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 32, 'TableID': 12, 'ParentRow': 10, 'ID': 31, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 33, 'TableID': 13, 'ParentRow': 10, 'ID': 32, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 34, 'TableID': 14, 'ParentRow': 10, 'ID': 33, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 11, 'TableID': 15, 'ReportID': 2, 'Hidden': True, 'ID': 34, 'ParentRow': 10}, {'TableName': 'ColumnType', 'NextRow': 36, 'TableID': 16, 'ParentRow': 11, 'ID': 35, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 12, 'TableID': 17, 'ParentRow': 11, 'ID': 36, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 38, 'TableID': 18, 'ParentRow': 12, 'ID': 37, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 13, 'TableID': 19, 'ParentRow': 12, 'ID': 38, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 40, 'TableID': 20, 'ReportID': 2, 'Hidden': True, 'ID': 39, 'ParentRow': 13}, {'TableName': 'ColumnType', 'NextRow': 41, 'TableID': 21, 'ReportID': 2, 'Hidden': True, 'ID': 40, 'ParentRow': 13}, {'TableName': 'ColumnType', 'NextRow': 42, 'TableID': 22, 'ReportID': 2, 'Hidden': True, 'ID': 41, 'ParentRow': 13}, {'TableName': 'ColumnType', 'NextRow': 43, 'TableID': 23, 'ReportID': 2, 'Hidden': True, 'ID': 42, 'ParentRow': 13}, {'TableName': 'ColumnType', 'NextRow': 14, 'TableID': 24, 'ReportID': 2, 'Hidden': True, 'ID': 43, 'ParentRow': 13}, {'TableName': 'ColumnType', 'NextRow': 45, 'TableID': 25, 'ReportID': 2, 'Hidden': True, 'ID': 44, 'ParentRow': 14}, {'TableName': 'ColumnType', 'NextRow': 46, 'TableID': 26, 'ReportID': 2, 'Hidden': True, 'ID': 45, 'ParentRow': 14}, {'TableName': 'ColumnType', 'NextRow': 47, 'TableID': 27, 'ReportID': 2, 'Hidden': True, 'ID': 46, 'ParentRow': 14}, {'TableName': 'ColumnType', 'NextRow': 48, 'TableID': 28, 'ReportID': 2, 'Hidden': True, 'ID': 47, 'ParentRow': 14}, {'TableName': 'ColumnType', 'NextRow': 15, 'TableID': 29, 'ReportID': 2, 'Hidden': True, 'ID': 48, 'ParentRow': 14}, {'TableName': 'ColumnType', 'NextRow': 50, 'TableID': 30, 'ParentRow': 15, 'ID': 49, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 51, 'TableID': 31, 'ParentRow': 15, 'ID': 50, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 16, 'TableID': 32, 'ParentRow': 15, 'ID': 51, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 53, 'TableID': 33, 'ParentRow': 16, 'ID': 52, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 54, 'TableID': 34, 'ParentRow': 16, 'ID': 53, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 17, 'TableID': 35, 'ReportID': 2, 'Hidden': True, 'ID': 54, 'ParentRow': 16}, {'TableName': 'ColumnType', 'NextRow': 56, 'TableID': 36, 'ParentRow': 17, 'ID': 55, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 57, 'TableID': 37, 'ParentRow': 17, 'ID': 56, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 58, 'TableID': 38, 'ParentRow': 17, 'ID': 57, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 18, 'TableID': 39, 'ParentRow': 17, 'ID': 58, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 60, 'TableID': 40, 'ReportID': 2, 'Hidden': True, 'ID': 59, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 61, 'TableID': 41, 'ReportID': 2, 'Hidden': True, 'ID': 60, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 62, 'TableID': 42, 'ReportID': 2, 'Hidden': True, 'ID': 61, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 63, 'TableID': 43, 'ReportID': 2, 'Hidden': True, 'ID': 62, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 64, 'TableID': 44, 'ReportID': 2, 'Hidden': True, 'ID': 63, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 19, 'TableID': 45, 'ReportID': 2, 'Hidden': True, 'ID': 64, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 66, 'TableID': 46, 'ReportID': 2, 'Hidden': True, 'ID': 65, 'ParentRow': 19}, {'TableName': 'ColumnType', 'NextRow': 67, 'TableID': 47, 'ReportID': 2, 'Hidden': True, 'ID': 66, 'ParentRow': 19}, {'TableName': 'ColumnType', 'NextRow': 68, 'TableID': 48, 'ReportID': 2, 'Hidden': True, 'ID': 67, 'ParentRow': 19}, {'TableName': 'ColumnType', 'NextRow': 69, 'TableID': 49, 'ReportID': 2, 'Hidden': True, 'ID': 68, 'ParentRow': 19}, {'TableName': 'ColumnType', 'NextRow': 70, 'TableID': 50, 'ReportID': 2, 'Hidden': True, 'ID': 69, 'ParentRow': 19}, {'TableName': 'ColumnType', 'TableID': 51, 'ParentRow': 19, 'Hidden': True, 'ID': 70, 'ReportID': 2}, {'TableID': 1, 'TableName': 'Resource', 'ID': 71, 'ReportID': 3}], 'Prerequisite': [{'StartDate': '2007-12-26', 'TotalFloatHours': 0, 'Name': 'New Name!!!', 'hES': 14576, 'ProjectID': 2, 'hLS': 14576, 'hEF': 14584, 'CalculatedEndDate': '2007-12-27', 'CalculatedEndHour': 0, 'FreeFloatHours': 0, 'hLF': 14584, 'CalculatedStartDate': '2007-12-26', 'ID': 1, 'CalculatedStartHour': 0}]}, {'Task': 'Prerequisite', 'OtherData': 'Other'}, {'NextID': {'Task': 2, 'Resource': 2, 'Holiday': 1, 'Assignment': 1, 'TableAlias': 2, 'Project': 3, 'Dependency': 1, 'Other': 2, 'ReportType': 13, 'Report': 5, 'ColumnType': 52, 'ReportRow': 71, 'ReportColumn': 13}}]  
      24 update2 = [{'Holiday': [], 'ColumnType': [{'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 1, 'T': 'A', 'ID': 1}, {'Name': 'Name', 'ReportTypeID': 1, 'DataType': 't', 'AccessType': 'd', 'Label': 'Name', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 2}, {'Name': 'StartDate', 'ReportTypeID': 1, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Start Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 3}, {'Name': 'TargetEndDate', 'ReportTypeID': 1, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Target\nEnd Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 4}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 2, 'T': 'B', 'ID': 5}, {'Name': 'Name', 'ReportTypeID': 2, 'DataType': 't', 'AccessType': 'd', 'Label': 'Name', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 6}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 3, 'T': 'A', 'ID': 7}, {'Name': 'ProjectID', 'ReportTypeID': 3, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Project\nID', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 8}, {'Name': 'Name', 'ReportTypeID': 3, 'DataType': 't', 'AccessType': 'd', 'Label': 'Name', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 9}, {'Name': 'StartDate', 'ReportTypeID': 3, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Start Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 10}, {'Name': 'DurationHours', 'ReportTypeID': 3, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Duration', 'Width': 60, 'Edit': True, 'T': 'A', 'ID': 11}, {'Name': 'CalculatedStartDate', 'ReportTypeID': 3, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Start Date\n(Calculated)', 'Width': 80, 'T': 'A', 'ID': 12}, {'Name': 'CalculatedEndDate', 'ReportTypeID': 3, 'DataType': 'd', 'AccessType': 'd', 'Label': 'End Date\n(Calculated)', 'Width': 80, 'T': 'A', 'ID': 13}, {'Name': 'Day/Gantt', 'DataType': 'g', 'AccessType': 's', 'Label': 'Day/Gantt', 'ReportTypeID': 3, 'T': 'X', 'ID': 14}, {'Name': 'Day/Hours', 'DataType': 'i', 'AccessType': 's', 'ReportTypeID': 3, 'T': 'X', 'ID': 15}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 4, 'T': 'B', 'ID': 16}, {'Name': 'Resource/Name', 'ReportTypeID': 4, 'DataType': 't', 'AccessType': 'i', 'Label': 'Resource/Name', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 17}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 5, 'T': 'B', 'ID': 18}, {'Name': 'Prerequisite/Name', 'ReportTypeID': 5, 'DataType': 't', 'AccessType': 'i', 'Label': 'Prerequisite/Name', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 19}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 6, 'T': 'A', 'ID': 20}, {'Name': 'Name', 'ReportTypeID': 6, 'DataType': 't', 'AccessType': 'd', 'Label': 'Name', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 21}, {'Name': 'SelectColumn', 'ReportTypeID': 6, 'DataType': 't', 'AccessType': 'd', 'Label': 'Select\nColumn', 'Width': 80, 'T': 'A', 'ID': 22}, {'Name': 'SelectValue', 'ReportTypeID': 6, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Select\nValue', 'Width': 80, 'T': 'A', 'ID': 23}, {'Name': 'ProjectID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'Project\nID', 'ReportTypeID': 6, 'T': 'A', 'ID': 24}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 7, 'T': 'B', 'ID': 25}, {'Name': 'Width', 'ReportTypeID': 7, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Width', 'Width': 40, 'Edit': True, 'T': 'B', 'ID': 26}, {'Name': 'Label', 'ReportTypeID': 7, 'DataType': 't', 'AccessType': 'd', 'Label': 'Label', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 27}, {'Name': 'Periods', 'ReportTypeID': 7, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Periods', 'Width': 40, 'Edit': True, 'T': 'B', 'ID': 28}, {'Name': 'FirstDate', 'ReportTypeID': 7, 'DataType': 'd', 'AccessType': 'd', 'Label': 'First\nDate', 'Width': 80, 'Edit': True, 'T': 'B', 'ID': 29}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 8, 'T': 'A', 'ID': 30}, {'Name': 'ShortName', 'ReportTypeID': 8, 'DataType': 't', 'AccessType': 'd', 'Label': 'Short\nName', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 31}, {'Name': 'Name', 'ReportTypeID': 8, 'DataType': 't', 'AccessType': 'd', 'Label': 'Name', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 32}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 9, 'T': 'B', 'ID': 33}, {'Name': 'Task/Name', 'ReportTypeID': 9, 'DataType': 't', 'AccessType': 'i', 'Label': 'Task/Name', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 34}, {'Name': 'Day/Hours', 'DataType': 'i', 'AccessType': 's', 'ReportTypeID': 9, 'T': 'X', 'ID': 35}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 10, 'T': 'A', 'ID': 36}, {'Name': 'Name', 'ReportTypeID': 10, 'DataType': 't', 'AccessType': 'd', 'Label': 'Name', 'Width': 140, 'Edit': True, 'T': 'A', 'ID': 37}, {'Name': 'Date', 'ReportTypeID': 10, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 38}, {'Name': 'Hours', 'ReportTypeID': 10, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Hours', 'Width': 60, 'Edit': True, 'T': 'A', 'ID': 39}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 11, 'T': 'A', 'ID': 40}, {'Name': 'Also', 'ReportTypeID': 11, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Also', 'Width': 40, 'T': 'A', 'ID': 41}, {'Name': 'Name', 'ReportTypeID': 11, 'DataType': 't', 'AccessType': 'd', 'Label': 'Name', 'Width': 140, 'T': 'A', 'ID': 42}, {'Name': 'TableA', 'ReportTypeID': 11, 'DataType': 't', 'AccessType': 'd', 'Label': 'Table\nA', 'Width': 100, 'T': 'A', 'ID': 43}, {'Name': 'TableB', 'ReportTypeID': 11, 'DataType': 't', 'AccessType': 'd', 'Label': 'Table\nB', 'Width': 100, 'T': 'A', 'ID': 44}, {'Name': 'Label', 'ReportTypeID': 11, 'DataType': 't', 'AccessType': 'd', 'Label': 'Label', 'Width': 120, 'Edit': True, 'T': 'A', 'ID': 45}, {'Name': 'ID', 'DataType': 'i', 'AccessType': 'd', 'Label': 'ID', 'ReportTypeID': 12, 'T': 'B', 'ID': 46}, {'Name': 'DataType', 'DataType': 't', 'AccessType': 'd', 'Label': 'Data Type', 'ReportTypeID': 12, 'T': 'B', 'ID': 47}, {'Name': 'AccessType', 'DataType': 't', 'AccessType': 'd', 'Label': 'Access Type', 'ReportTypeID': 12, 'T': 'B', 'ID': 48}, {'Name': 'Edit', 'DataType': 'b', 'AccessType': 'd', 'Label': 'Edit', 'ReportTypeID': 12, 'T': 'B', 'ID': 49}, {'Name': 'Name', 'ReportTypeID': 12, 'DataType': 't', 'AccessType': 'd', 'Label': 'Name', 'Width': 140, 'T': 'B', 'ID': 50}, {'Name': 'Label', 'ReportTypeID': 12, 'DataType': 't', 'AccessType': 'd', 'Label': 'Label', 'Width': 140, 'Edit': True, 'T': 'B', 'ID': 51}, {'Name': 'ActualEndDate', 'ReportTypeID': 1, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Actual\nEnd Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 52}, {'Name': 'Week/EffortHours', 'ReportTypeID': 1, 'DataType': 'i', 'AccessType': 's', 'Label': 'Week/Effort', 'Width': 40, 'Edit': True, 'T': 'X', 'ID': 53}, {'Name': 'Project/Name', 'ReportTypeID': 3, 'DataType': 't', 'AccessType': 'i', 'Label': 'Project\nName', 'Width': 140, 'Edit': False, 'T': 'A', 'ID': 54}, {'Name': 'EffortHours', 'ReportTypeID': 3, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Effort', 'Width': 60, 'Edit': True, 'T': 'A', 'ID': 55}, {'Name': 'ResourceNames', 'ReportTypeID': 3, 'DataType': 't', 'AccessType': 'list', 'Label': 'Resource\nNames', 'Width': 80, 'Edit': False, 'T': 'A', 'Path': 'ID/Assignment/TaskID/ResourceID/Resource/Name', 'ID': 56}, {'Name': 'ResourcesShortNames', 'ReportTypeID': 3, 'DataType': 't', 'AccessType': 'list', 'Label': 'Resource\nShort Names', 'Width': 80, 'Edit': False, 'T': 'A', 'Path': 'ID/Assignment/TaskID/ResourceID/Resource/ShortName', 'ID': 57}, {'Name': 'ActualEndDate', 'ReportTypeID': 3, 'DataType': 'd', 'AccessType': 'd', 'Label': 'Actual\nEnd Date', 'Width': 80, 'Edit': True, 'T': 'A', 'ID': 58}, {'Name': 'Week/EffortHours', 'ReportTypeID': 3, 'DataType': 'i', 'AccessType': 's', 'Label': 'Week/Effort', 'Width': 40, 'Edit': True, 'T': 'X', 'ID': 59}, {'Name': 'Day/EffortHours', 'ReportTypeID': 3, 'DataType': 'i', 'AccessType': 's', 'Label': 'Day/Effort', 'Width': 40, 'Edit': True, 'T': 'X', 'ID': 60}, {'Name': 'Role', 'ReportTypeID': 4, 'DataType': 't', 'AccessType': 'd', 'Label': 'Role', 'Width': 80, 'Edit': True, 'T': 'B', 'ID': 61}, {'Name': 'EffortHours', 'ReportTypeID': 4, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Assignment\nEffort', 'Width': 80, 'Edit': True, 'T': 'B', 'ID': 62}, {'Name': 'Week/EffortHours', 'ReportTypeID': 8, 'DataType': 'i', 'AccessType': 's', 'Label': 'Week/Effort', 'Width': 40, 'Edit': True, 'T': 'X', 'ID': 63}, {'Name': 'Day/EffortHours', 'ReportTypeID': 8, 'DataType': 'i', 'AccessType': 's', 'Label': 'Day/Effort', 'Width': 40, 'Edit': True, 'T': 'X', 'ID': 64}, {'Name': 'Task/ProjectID', 'ReportTypeID': 9, 'DataType': 'i', 'AccessType': 'i', 'Label': 'Project\nID', 'Width': 60, 'Edit': False, 'T': 'B', 'ID': 65}, {'Name': 'EffortHours', 'ReportTypeID': 9, 'DataType': 'i', 'AccessType': 'd', 'Label': 'Assignment\nEffort', 'Width': 80, 'Edit': True, 'T': 'B', 'ID': 66}], 'AssignmentDay': [], 'TaskWeek': [], 'TaskDay': [], 'Assignment': [], 'TableAlias': [{'ID': 1, 'Prerequisite': 'Task', 'OtherData': 'Other'}], 'Resource': [{'ID': 1, 'Name': 'First Resource'}], 'AssignmentWeek': [], 'Dependency': [], 'Project': [{'ID': 1, 'Name': 'All Projects'}, {'ID': 2, 'Name': 'New Project'}], 'ResourceDay': [], 'Other': [{'WeekHours': [8, 8, 8, 8, 8, 0, 0], 'FileSignature': 100, 'LastChange': 2, 'ID': 1}], 'ResourceWeek': [], 'ProjectWeek': [], 'Report': [{'Name': 'Project/Report List (Main Window)', 'FrameSizeH': 313, 'FirstColumn': 1, 'ProjectID': 1, 'FirstRow': 1, 'ReportTypeID': 2, 'ShowHidden': False, 'FrameSizeW': 422, 'Open': True, 'ID': 1}, {'Name': 'Report Options', 'FrameSizeH': 678, 'FirstColumn': 4, 'ProjectID': 1, 'FirstRow': 8, 'ReportTypeID': 12, 'FrameSizeW': 446, 'ID': 2}, {'Name': 'Resource List', 'FirstColumn': 5, 'ProjectID': 1, 'FirstRow': 71, 'ReportTypeID': 8, 'ID': 3}, {'Web': 1, 'Name': 'Gantt Chart (Task)', 'FrameSizeH': 311, 'FirstColumn': 6, 'SelectValue': 2, 'ProjectID': 2, 'SelectColumn': 'ProjectID', 'FirstRow': 4, 'ReportTypeID': 3, 'FrameSizeW': 768, 'ID': 4}], 'ReportType': [{'SuggestedColumns': ',Name;,StartDate;,TargetEndDate;,Week/EffortHours,,13', 'TableA': 'Project', 'AllOrEach': 'all', 'ID': 1, 'Name': 'Project'}, {'SuggestedColumns': 'Project,Name;,Name', 'Name': 'Project/Report', 'TableB': 'Report', 'Also': 1, 'TableA': 'Project', 'AllOrEach': 'all', 'ID': 2}, {'SuggestedColumns': ',Name;,StartDate;,DurationHours;,EffortHours;,CalculatedStartDate;,ResourceNames;,Day/Gantt,,21', 'TableA': 'Task', 'AllOrEach': 'both', 'ID': 3, 'Name': 'Task'}, {'SuggestedColumns': 'Task,Name;Task,DurationHours;Task,EffortHours;,Resource/Name;,Role;,EffortHours;Task,Day/EffortHours,,21', 'Name': 'Task/Assignment', 'TableB': 'Assignment', 'Also': 3, 'TableA': 'Task', 'AllOrEach': 'each', 'ID': 4}, {'SuggestedColumns': 'Task,Name;,Prerequisite/Name', 'Name': 'Task/Dependency', 'TableB': 'Dependency', 'Also': 3, 'TableA': 'Task', 'AllOrEach': 'both', 'ID': 5}, {'TableA': 'Report', 'AllOrEach': 'all', 'ID': 6, 'Name': 'Report'}, {'Name': 'Report/ReportColumn', 'TableB': 'ReportColumn', 'Also': 6, 'TableA': 'Report', 'AllOrEach': 'all', 'ID': 7}, {'SuggestedColumns': ',Name;,Day/EffortHours,,21', 'TableA': 'Resource', 'AllOrEach': 'all', 'ID': 8, 'Name': 'Resource'}, {'SuggestedColumns': 'Resource,Name;,Task/Name;,Role;,EffortHours;Resource,Day/EffortHours,,21', 'Name': 'Resource/Assignment', 'TableB': 'Assignment', 'Also': 8, 'TableA': 'Resource', 'AllOrEach': 'all', 'ID': 9}, {'SuggestedColumns': ',Name;,Date;,Hours', 'TableA': 'Holiday', 'AllOrEach': 'all', 'ID': 10, 'Name': 'Holiday'}, {'TableA': 'ReportType', 'AllOrEach': 'all', 'ID': 11, 'Name': 'ReportType'}, {'Name': 'ReportType/ColumnType', 'TableB': 'ColumnType', 'Also': 11, 'TableA': 'ReportType', 'AllOrEach': 'all', 'ID': 12}], 'Prerequisite': [{'StartDate': '2007-12-26', 'TotalFloatHours': 0, 'Name': 'New Name!!!', 'hES': 14576, 'ProjectID': 2, 'hLS': 14576, 'hEF': 14584, 'CalculatedEndDate': '2007-12-27', 'CalculatedEndHour': 0, 'FreeFloatHours': 0, 'hLF': 14584, 'CalculatedStartDate': '2007-12-26', 'ID': 1, 'CalculatedStartHour': 0}], 'ReportRow': [{'TableID': 1, 'NextRow': 5, 'TableName': 'Project', 'ID': 1, 'ReportID': 1}, {'TableID': 2, 'NextRow': 3, 'TableName': 'Project', 'ID': 2, 'ReportID': 1}, {'TableID': 4, 'ParentRow': 2, 'TableName': 'Report', 'ReportID': 1, 'ID': 3}, {'TableID': 1, 'TableName': 'Task', 'ID': 4, 'ReportID': 4}, {'TableName': 'Report', 'NextRow': 6, 'TableID': 1, 'ReportID': 1, 'Hidden': True, 'ID': 5, 'ParentRow': 1}, {'TableName': 'Report', 'NextRow': 7, 'TableID': 2, 'ReportID': 1, 'Hidden': True, 'ID': 6, 'ParentRow': 1}, {'TableName': 'Report', 'NextRow': 2, 'TableID': 3, 'ParentRow': 1, 'ID': 7, 'ReportID': 1}, {'TableID': 1, 'NextRow': 20, 'TableName': 'ReportType', 'ID': 8, 'ReportID': 2}, {'TableID': 2, 'NextRow': 24, 'TableName': 'ReportType', 'ID': 9, 'ReportID': 2}, {'TableID': 3, 'NextRow': 26, 'TableName': 'ReportType', 'ID': 10, 'ReportID': 2}, {'TableID': 4, 'NextRow': 35, 'TableName': 'ReportType', 'ID': 11, 'ReportID': 2}, {'TableID': 5, 'NextRow': 37, 'TableName': 'ReportType', 'ID': 12, 'ReportID': 2}, {'TableName': 'ReportType', 'NextRow': 39, 'TableID': 6, 'ReportID': 2, 'Hidden': True, 'ID': 13}, {'TableName': 'ReportType', 'NextRow': 44, 'TableID': 7, 'ReportID': 2, 'Hidden': True, 'ID': 14}, {'TableID': 8, 'NextRow': 49, 'TableName': 'ReportType', 'ID': 15, 'ReportID': 2}, {'TableID': 9, 'NextRow': 52, 'TableName': 'ReportType', 'ID': 16, 'ReportID': 2}, {'TableID': 10, 'NextRow': 55, 'TableName': 'ReportType', 'ID': 17, 'ReportID': 2}, {'TableName': 'ReportType', 'NextRow': 59, 'TableID': 11, 'ReportID': 2, 'Hidden': True, 'ID': 18}, {'TableName': 'ReportType', 'NextRow': 65, 'TableID': 12, 'ReportID': 2, 'Hidden': True, 'ID': 19}, {'TableName': 'ColumnType', 'NextRow': 21, 'TableID': 1, 'ParentRow': 8, 'ID': 20, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 22, 'TableID': 2, 'ParentRow': 8, 'ID': 21, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 23, 'TableID': 3, 'ParentRow': 8, 'ID': 22, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 72, 'TableID': 4, 'ParentRow': 8, 'ID': 23, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 25, 'TableID': 5, 'ParentRow': 9, 'ID': 24, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 10, 'TableID': 6, 'ParentRow': 9, 'ID': 25, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 27, 'TableID': 7, 'ParentRow': 10, 'ID': 26, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 34, 'TableID': 8, 'ParentRow': 10, 'ID': 27, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 29, 'TableID': 9, 'ParentRow': 10, 'ID': 28, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 30, 'TableID': 10, 'ParentRow': 10, 'ID': 29, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 75, 'TableID': 11, 'ParentRow': 10, 'ID': 30, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 32, 'TableID': 12, 'ParentRow': 10, 'ID': 31, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 78, 'TableID': 13, 'ParentRow': 10, 'ID': 32, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 80, 'TableID': 14, 'ParentRow': 10, 'ID': 33, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 74, 'TableID': 15, 'ReportID': 2, 'Hidden': True, 'ID': 34, 'ParentRow': 10}, {'TableName': 'ColumnType', 'NextRow': 36, 'TableID': 16, 'ParentRow': 11, 'ID': 35, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 81, 'TableID': 17, 'ParentRow': 11, 'ID': 36, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 38, 'TableID': 18, 'ParentRow': 12, 'ID': 37, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 13, 'TableID': 19, 'ParentRow': 12, 'ID': 38, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 40, 'TableID': 20, 'ParentRow': 13, 'ID': 39, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 41, 'TableID': 21, 'ParentRow': 13, 'ID': 40, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 42, 'TableID': 22, 'ReportID': 2, 'Hidden': True, 'ID': 41, 'ParentRow': 13}, {'TableName': 'ColumnType', 'NextRow': 43, 'TableID': 23, 'ReportID': 2, 'Hidden': True, 'ID': 42, 'ParentRow': 13}, {'TableName': 'ColumnType', 'NextRow': 14, 'TableID': 24, 'ParentRow': 13, 'ID': 43, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 45, 'TableID': 25, 'ParentRow': 14, 'ID': 44, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 46, 'TableID': 26, 'ReportID': 2, 'Hidden': True, 'ID': 45, 'ParentRow': 14}, {'TableName': 'ColumnType', 'NextRow': 47, 'TableID': 27, 'ParentRow': 14, 'ID': 46, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 48, 'TableID': 28, 'ParentRow': 14, 'ID': 47, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 15, 'TableID': 29, 'ParentRow': 14, 'ID': 48, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 51, 'TableID': 30, 'ParentRow': 15, 'ID': 49, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 84, 'TableID': 31, 'ParentRow': 15, 'ID': 50, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 50, 'TableID': 32, 'ParentRow': 15, 'ID': 51, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 53, 'TableID': 33, 'ParentRow': 16, 'ID': 52, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 54, 'TableID': 34, 'ParentRow': 16, 'ID': 53, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 85, 'TableID': 35, 'ReportID': 2, 'Hidden': True, 'ID': 54, 'ParentRow': 16}, {'TableName': 'ColumnType', 'NextRow': 56, 'TableID': 36, 'ParentRow': 17, 'ID': 55, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 57, 'TableID': 37, 'ParentRow': 17, 'ID': 56, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 58, 'TableID': 38, 'ParentRow': 17, 'ID': 57, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 18, 'TableID': 39, 'ParentRow': 17, 'ID': 58, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 60, 'TableID': 40, 'ParentRow': 18, 'ID': 59, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 61, 'TableID': 41, 'ReportID': 2, 'Hidden': True, 'ID': 60, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 62, 'TableID': 42, 'ParentRow': 18, 'ID': 61, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 63, 'TableID': 43, 'ReportID': 2, 'Hidden': True, 'ID': 62, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 64, 'TableID': 44, 'ReportID': 2, 'Hidden': True, 'ID': 63, 'ParentRow': 18}, {'TableName': 'ColumnType', 'NextRow': 19, 'TableID': 45, 'ParentRow': 18, 'ID': 64, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 66, 'TableID': 46, 'ParentRow': 19, 'ID': 65, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 67, 'TableID': 47, 'ReportID': 2, 'Hidden': True, 'ID': 66, 'ParentRow': 19}, {'TableName': 'ColumnType', 'NextRow': 68, 'TableID': 48, 'ReportID': 2, 'Hidden': True, 'ID': 67, 'ParentRow': 19}, {'TableName': 'ColumnType', 'NextRow': 69, 'TableID': 49, 'ReportID': 2, 'Hidden': True, 'ID': 68, 'ParentRow': 19}, {'TableName': 'ColumnType', 'NextRow': 70, 'TableID': 50, 'ParentRow': 19, 'ID': 69, 'ReportID': 2}, {'TableID': 51, 'ParentRow': 19, 'TableName': 'ColumnType', 'ReportID': 2, 'ID': 70}, {'TableID': 1, 'TableName': 'Resource', 'ID': 71, 'ReportID': 3}, {'TableName': 'ColumnType', 'NextRow': 73, 'TableID': 52, 'ParentRow': 8, 'ID': 72, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 9, 'TableID': 53, 'ParentRow': 8, 'ID': 73, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 28, 'TableID': 54, 'ParentRow': 10, 'ID': 74, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 31, 'TableID': 55, 'ParentRow': 10, 'ID': 75, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 77, 'TableID': 56, 'ParentRow': 10, 'ID': 76, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 33, 'TableID': 57, 'ParentRow': 10, 'ID': 77, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 76, 'TableID': 58, 'ParentRow': 10, 'ID': 78, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 11, 'TableID': 59, 'ParentRow': 10, 'ID': 79, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 79, 'TableID': 60, 'ParentRow': 10, 'ID': 80, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 82, 'TableID': 61, 'ParentRow': 11, 'ID': 81, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 12, 'TableID': 62, 'ParentRow': 11, 'ID': 82, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 16, 'TableID': 63, 'ParentRow': 15, 'ID': 83, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 83, 'TableID': 64, 'ParentRow': 15, 'ID': 84, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 86, 'TableID': 65, 'ParentRow': 16, 'ID': 85, 'ReportID': 2}, {'TableName': 'ColumnType', 'NextRow': 17, 'TableID': 66, 'ParentRow': 16, 'ID': 86, 'ReportID': 2}], 'ReportColumn': [{'A': 'Name', 'ColumnTypeID': 2, 'B': 'Name', 'TypeA': 'CHAR', 'Label': 'Name', 'Width': 140, 'NextColumn': 2, 'ReportID': 1, 'TypeB': 'CHAR', 'ID': 1}, {'A': 'StartDate', 'ColumnTypeID': 3, 'TypeA': 'DATE', 'Label': 'Start Date', 'Width': 80, 'NextColumn': 3, 'ReportID': 1, 'ID': 2}, {'A': 'TargetEndDate', 'ColumnTypeID': 4, 'TypeA': 'DATE', 'Label': 'Target Date', 'Width': 80, 'ReportID': 1, 'ID': 3}, {'A': 'Name', 'ColumnTypeID': 42, 'TypeA': 'CHAR', 'Label': 'Name', 'Width': 140, 'NextColumn': 12, 'ReportID': 2, 'ID': 4}, {'A': 'Name', 'ColumnTypeID': 32, 'TypeA': 'CHAR', 'Label': 'Name', 'Width': 140, 'ReportID': 3, 'ID': 5}, {'A': 'Name', 'ColumnTypeID': 9, 'TypeA': 'CHAR', 'Label': 'Name', 'Width': 140, 'NextColumn': 7, 'ReportID': 4, 'ID': 6}, {'A': 'StartDate', 'ColumnTypeID': 10, 'TypeA': 'DATE', 'Label': 'Start Date', 'Width': 80, 'NextColumn': 8, 'ReportID': 4, 'ID': 7}, {'A': 'DurationHours', 'ColumnTypeID': 11, 'TypeA': 'INT', 'Label': 'Duration', 'Width': 60, 'NextColumn': 13, 'ReportID': 4, 'ID': 8}, {'A': 'CalculatedStartDate', 'ColumnTypeID': 12, 'TypeA': 'DATE', 'Label': 'Start Date\n(Calculated)', 'Width': 80, 'NextColumn': 14, 'ReportID': 4, 'ID': 9}, {'A': 'CalculatedEndDate', 'ColumnTypeID': 13, 'TypeA': 'DATE', 'Label': 'End Date\n(Calculated)', 'Width': 80, 'NextColumn': 11, 'ReportID': 4, 'ID': 10}, {'ColumnTypeID': 14, 'TypeA': 'CHART', 'Periods': 21, 'Time': 'Day', 'ID': 11, 'ReportID': 4}, {'ColumnTypeID': 50, 'ReportID': 2, 'ID': 12, 'Width': 140}, {'ColumnTypeID': 55, 'ReportID': 4, 'NextColumn': 9, 'ID': 13, 'Width': 60}, {'ColumnTypeID': 56, 'ReportID': 4, 'NextColumn': 11, 'ID': 14, 'Width': 80}]}, {'Task': 'Prerequisite', 'OtherData': 'Other'}, {'NextID': {'Task': 2, 'Resource': 2, 'ReportType': 13, 'AssignmentDay': 1, 'TaskWeek': 1, 'TaskDay': 1, 'Assignment': 1, 'TableAlias': 2, 'AssignmentWeek': 1, 'ReportRow': 87, 'Project': 3, 'Dependency': 1, 'Other': 2, 'ResourceWeek': 1, 'ResourceDay': 1, 'ProjectWeek': 1, 'Report': 5, 'ColumnType': 67, 'Holiday': 1, 'ReportColumn': 15}}]  
  • server/trunk/update/test/test_update_server.py

    r358 r360  
    186 186  
    187 187     Test("verify test database has expected tables and row counts (get_next_ids [deprecated function]):")  
    188       nextids = {'Task': 2, 'Resource': 2, 'Holiday': 1, 'Assignment': 1,  
    189                  'TableAlias': 2, 'Project': 3, 'Dependency': 1,  
    190                  'Other': 2, 'ReportType': 13, 'Report': 5, 'ColumnType': 52,  
    191                  'ReportRow': 71, 'ReportColumn': 13}  
      188     nextids = {'Task': 2, 'Resource': 2, 'ReportType': 13, 'AssignmentDay': 1,  
      189                'TaskWeek': 1, 'TaskDay': 1, 'Assignment': 1, 'TableAlias': 2,  
      190                'AssignmentWeek': 1, 'ReportRow': 87, 'Project': 3,  
      191                'Dependency': 1, 'Other': 2, 'ResourceWeek': 1, 'ResourceDay': 1,  
      192                'ProjectWeek': 1, 'Report': 5, 'ColumnType': 67, 'Holiday': 1,  
      193                'ReportColumn': 15}  
    192 194     result = server.get_next_ids()  
    193 195     compare_dicts(nextids, result)  
     
    282 284         "Report": 4,  
    283 285         }  
    284       page = """  
    285   <html><HEAD><title>  
    286   New Project / Gantt Chart  
    287   """  
      286     page = """\n<html><HEAD><title>\nNew Project / Gantt Chart (Task)\n"""  
    288 287     result = server.get_html_report(web_parms)  
    289 288     compare_values('page text', page, result[:len(page)])  
     
    342 341     two_changes = [[{'Table': 'Report', 'ID': 4, 'Web': 1}],  
    343 342                    [{'Table': 'Task', '_Name': 'First Task', 'Name': 'New Name!!!', 'ID': 1, 'StartDate': '2007-12-26'}]]  
    344       expected_nextids = {'Task': 2, 'Resource': 2, 'Holiday': 1, 'Assignment': 1,  
    345                  'TableAlias': 2, 'Project': 3, 'Dependency': 1,  
    346                  'Other': 2, 'ReportType': 13, 'Report': 5, 'ColumnType': 52,  
    347                  'ReportRow': 71, 'ReportColumn': 13}  # same as before  
      343     expected_nextids = {'Task': 2, 'Resource': 2, 'ReportType': 13,  
      344                         'AssignmentDay': 1, 'TaskWeek': 1, 'TaskDay': 1,  
      345                         'Assignment': 1, 'TableAlias': 2, 'AssignmentWeek': 1,  
      346                         'ReportRow': 87, 'Project': 3, 'Dependency': 1,  
      347                         'Other': 2, 'ResourceWeek': 1, 'ResourceDay': 1,  
      348                         'ProjectWeek': 1, 'Report': 5, 'ColumnType': 67,  
      349                         'Holiday': 1, 'ReportColumn': 15}  # same as before  
    348 350     result, version, nextids = server.get_updates_since(parms, 0, {})  
    349 351     compare_aad(two_changes, result)  
     
    416 418                    }  
    417 419     # the server responds by reserving enough ID's for all of our new rows  
    418       the_nextids = {'Task': 2, 'Resource': 3, 'Holiday': 1, 'Dependency': 1, 'Assignment': 1,  
    419                      'Project': 3, 'ResourceDay': 1, 'ResourceMeasurement': 3, 'ReportType': 14,  
    420                      'Measurement': 2, 'Report': 6, 'ColumnType': 54, 'ReportRow': 71,  
    421                      'ReportColumn': 16, 'TableAlias': 2, 'Other': 2}  
      420     the_nextids = {'ResourceWeek': 1, 'TaskWeek': 1, 'TaskDay': 1,  
      421                    'AssignmentWeek': 1, 'Other': 2, 'Resource': 3,  
      422                    'Holiday': 1, 'Assignment': 1, 'ResourceDay': 1,  
      423                    'ResourceMeasurement': 3, 'Report': 6, 'ReportRow': 87,  
      424                    'Task': 2, 'ColumnType': 69, 'AssignmentDay': 1,  
      425                    'Project': 3, 'Dependency': 1, 'ReportType': 14,  
      426                    'TableAlias': 2, 'ProjectWeek': 1, 'Measurement': 2,  
      427                    'ReportColumn': 18}  
    422 428     # we are asking the server for only the most recent update (from the prior test)  
    423 429     updates, current_version, nextids = server.get_updates_since(parms, update_count-1, reserve_rows)  
     
    441 447         { "Table": "ReportType", "ID": 13, "Name": "Resource/ResourceMeasurement",  
    442 448           'TableA': 'Resource', 'TableB': 'ResourceMeasurement', 'Also': 8, 'AllOrEach': 'all' },  # also=Resource  
    443           { "Table": "ColumnType", "ID": 52, 'ReportTypeID': 13, "Name": "Measurement/Name",  
      449         { "Table": "ColumnType", "ID": 67, 'ReportTypeID': 13, "Name": "Measurement/Name",  
    443 449           'DataType': 't',  'AccessType': 'i', 'T': 'B', 'Edit': False, 'Width': 140 },  
    444           { "Table": "ColumnType", "ID": 53, 'ReportTypeID': 13, "Name": "Day/Measurement",  
      450         { "Table": "ColumnType", "ID": 68, 'ReportTypeID': 13, "Name": "Day/Measurement",  
    444 450           'DataType': 't',  'AccessType': 's', 'T': 'B', 'Edit': True,  'Width': 60 },  # DataType is ignored?  
    445 451         { "Table": "Report", "ID": 5, 'ReportTypeID': 13, "Name": "Resource Measurements", 'FirstColumn': 13,  
     
    450 456           'WebFilter': "ResourceID",  
    451 457           'Web': "Yes", 'ProjectID': 1 },  
    452           { "Table": "ReportColumn", "ID": 13, 'ReportID': 5, 'ColumnTypeID': 32, 'NextColumn': 14 },  
    453           { "Table": "ReportColumn", "ID": 14, 'ReportID': 5, 'ColumnTypeID': 52, 'NextColumn': 15 },  
    454           { "Table": "ReportColumn", "ID": 15, 'ReportID': 5, 'ColumnTypeID': 53, 'NextColumn': 0,  
      458         { "Table": "ReportColumn", "ID": 15, 'ReportID': 5, 'ColumnTypeID': 32, 'NextColumn': 16 },  
      459         { "Table": "ReportColumn", "ID": 16, 'ReportID': 5, 'ColumnTypeID': 52, 'NextColumn': 17 },  
      460         { "Table": "ReportColumn", "ID": 17, 'ReportID': 5, 'ColumnTypeID': 53, 'NextColumn': 0,  
    455 461           'WebEditDateRule': "PriorBusinessDay",  
    456 462           #'WebEditDateRule': "Today",  
     
    470 476         }  
    471 477     reserve_rows = { }  # don't reserve any row ID's  
    472       the_nextids['ReportRow'] += 10  # the server is expected to add 10 report rows  
      478     the_nextids['ReportRow'] += 9  # the server is expected to add 10 report rows  
    472 478     # we are asking the server for all changes from prior tests  
    473 479     updates, current_version, nextids = server.get_updates_since(parms, 0, reserve_rows)  
     
    489 495         else:  
    490 496             table_count[name] = 1  
    491       compare_values('server added rows', 10, new_rows)  
    492       compare_values('server changed report records', 2, table_count['Report'])  
      497     compare_values('server added rows', 9, new_rows)  
      498     compare_values('server changed report records', 1, table_count['Report'])  
    493 499     compare_values('server changed report row records', 12, table_count['ReportRow'])  
    494 500     Result((updates, current_version, nextids))