[Erp5-report] ERP5 r21992: 1456 Tests, 286 Errors, 8 Failures

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jun 27 07:03:19 CEST 2008


Test Suite: ERP5
Revision: 21992
Result: FAIL

All tests: 1456
Failures: 8
Errors: 286


The following tests failed:

  testTaskReportDivergence                           (3 errors)
   test_01_TestReportLineChangeQuantity (testTaskReportDivergence.TestTaskReportDivergence)
   test_02_TestReportListChangeDestination (testTaskReportDivergence.TestTaskReportDivergence)
   test_03_TaskReportChangeStartDate (testTaskReportDivergence.TestTaskReportDivergence)

  testDomainTool                                     (3 failures, 1 errors)
   test_01_SearchPredidateListWithNoTest (testDomainTool.TestDomainTool)
   test_02_SearchPredidateListWithTest (testDomainTool.TestDomainTool)
   test_04_GenerateMappedValueWithRanges (testDomainTool.TestDomainTool)
   test_06_SQLQueryDoesNotReturnTooManyPredicates (testDomainTool.TestDomainTool)

  testTransformation                                 (1 errors)
   test_01_getAggregatedAmountList (testTransformation.TestTransformation)

  testRule                                           (12 errors)
   test_01_ValidatedRuleWithNoScript (testRule.TestRule)
   test_02_WrongTestMethod (testRule.TestRule)
   test_03_GoodTestMethod (testRule.TestRule)
   test_04_NotValidatedRule (testRule.TestRule)
   test_05_ValidatedRule (testRule.TestRule)
   test_06_WrongDateRange (testRule.TestRule)
   test_07_GoodDateRange (testRule.TestRule)
   test_08_updateAppliedRule (testRule.TestRule)
   test_09_expandTwoRules (testRule.TestRule)
   test_10_expandAddsRule (testRule.TestRule)
   test_11_expandRemovesRule (testRule.TestRule)
   test_12_expandReplacesRule (testRule.TestRule)

  testPackingList                                    (24 errors)
   test_01_PackingListDecreaseQuantity (testPackingList.TestPackingList)
   test_02_PackingListChangeDestination (testPackingList.TestPackingList)
   test_03_PackingListChangeStartDate (testPackingList.TestPackingList)
   test_04_PackingListDeleteLine (testPackingList.TestPackingList)
   test_05_SimulationChangeQuantity (testPackingList.TestPackingList)
   test_06_SimulationChangeStartDate (testPackingList.TestPackingList)
   test_07_SimulationChangeStartDateWithTwoOrderLine (testPackingList.TestPackingList)
   test_08_AddContainers (testPackingList.TestPackingList)
   test_09_AddContainersWithVariatedResources (testPackingList.TestPackingList)
   test_10_PackingListIncreaseQuantity (testPackingList.TestPackingList)
   test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery (testPackingList.TestPackingList)
   test_12_PackingListLineChangeResource (testPackingList.TestPackingList)
   test_01_PackingListDecreaseQuantity (testPackingList.TestPurchasePackingList)
   test_02_PackingListChangeDestination (testPackingList.TestPurchasePackingList)
   test_03_PackingListChangeStartDate (testPackingList.TestPurchasePackingList)
   test_04_PackingListDeleteLine (testPackingList.TestPurchasePackingList)
   test_05_SimulationChangeQuantity (testPackingList.TestPurchasePackingList)
   test_06_SimulationChangeStartDate (testPackingList.TestPurchasePackingList)
   test_07_SimulationChangeStartDateWithTwoOrderLine (testPackingList.TestPurchasePackingList)
   test_08_AddContainers (testPackingList.TestPurchasePackingList)
   test_09_AddContainersWithVariatedResources (testPackingList.TestPurchasePackingList)
   test_10_PackingListIncreaseQuantity (testPackingList.TestPurchasePackingList)
   test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery (testPackingList.TestPurchasePackingList)
   test_12_PackingListLineChangeResource (testPackingList.TestPurchasePackingList)

  testCalendar                                       (4 errors)
   test_03_getAvailableTime (testCalendar.TestCalendar)
   test_GroupCalendarConstraint (testCalendar.TestCalendar)
   test_LeaveRequestCalendarConstraint (testCalendar.TestCalendar)
   test_PresenceRequestCalendarConstraint (testCalendar.TestCalendar)

  testPayroll                                        (8 errors)
   test_04_paySheetCalculation (testPayroll.TestPayroll)
   test_05_caculationWithANonNullMinimumValueSlice (testPayroll.TestPayroll)
   test_AccountingLineGeneration (testPayroll.TestPayroll)
   test_NetSalaryReport (testPayroll.TestPayroll)
   test_PayrollTaxesReport (testPayroll.TestPayroll)
   test_PayrollTaxesReportDifferentSalaryRange (testPayroll.TestPayroll)
   test_createPaySheetLineNonePrice (testPayroll.TestPayroll)
   test_paysheet_consistency (testPayroll.TestPayroll)

  testItem                                           (2 errors)
   test_01_ItemSimpleTest (testItem.TestItem)
   test_02_ItemWithInvoice (testItem.TestItem)

  testPurchaseOrder                                  (22 errors)
   test_05_OrderLine_Matrix (testPurchaseOrder.TestPurchaseOrder)
   test_06_OrderLine_getTotalQuantity (testPurchaseOrder.TestPurchaseOrder)
   test_07_OrderLine_getTotalPrice (testPurchaseOrder.TestPurchaseOrder)
   test_07b_OrderLine_getTotalPriceAndQuantityFastParameter (testPurchaseOrder.TestPurchaseOrder)
   test_08_Order_testTotalQuantity (testPurchaseOrder.TestPurchaseOrder)
   test_08b_Order_testTotalPriceAndQuantityFastParameter (testPurchaseOrder.TestPurchaseOrder)
   test_09_Order_testTotalPrice (testPurchaseOrder.TestPurchaseOrder)
   test_10_Order_testSimulationState (testPurchaseOrder.TestPurchaseOrder)
   test_11_testPropertiesAcquisition (testPurchaseOrder.TestPurchaseOrder)
   test_12_testAppliedRuleGeneration (testPurchaseOrder.TestPurchaseOrder)
   test_13_testAppliedRuleUpdate (testPurchaseOrder.TestPurchaseOrder)
   test_15_deliveryBuilder (testPurchaseOrder.TestPurchaseOrder)
   test_16_deliveryBuilderWithNoTic (testPurchaseOrder.TestPurchaseOrder)
   test_17_orderExpand (testPurchaseOrder.TestPurchaseOrder)
   test_18_SimulationStateIndexation (testPurchaseOrder.TestPurchaseOrder)
   test_19b_getTotalQuantityAndPrice (testPurchaseOrder.TestPurchaseOrder)
   test_Order_viewAsODT (testPurchaseOrder.TestPurchaseOrder)
   test_Order_viewAsODT_image (testPurchaseOrder.TestPurchaseOrder)
   test_Order_viewAsODT_non_ascii (testPurchaseOrder.TestPurchaseOrder)
   test_Order_viewAsODT_person (testPurchaseOrder.TestPurchaseOrder)
   test_order_cell_getTotalPrice (testPurchaseOrder.TestPurchaseOrder)
   test_order_payment_condition_not_copied (testPurchaseOrder.TestPurchaseOrder)

  testTask                                           (5 errors)
   test_01_testTaskBasicUseCase (testTask.TestTask)
   test_02_testMultipleLineTaskBasicUseCase (testTask.TestTask)
   test_03_testTaskReportBasicUseCase (testTask.TestTask)
   test_04_checkNotMergedTaskReportLine (testTask.TestTask)
   Test creation of task and (automatic) task_report with strict

  testDivergenceTester                               (1 failures, 3 errors)
   test_01_QuantityDivergenceTester (testDivergenceTester.TestDivergenceTester)
   test_02_CategoryDivergenceTester (testDivergenceTester.TestDivergenceTester)
   test_03_PropertyDivergenceTester (testDivergenceTester.TestDivergenceTester)
   test_04_CategoryDivergenceTester (testDivergenceTester.TestDivergenceTester)

  testAccountingRules                                (10 errors)
   Simple Invoice.
   Same test as SimpleInvoice but directly confirm the invoice
   Simple Invoice, 2 lines.
   Simple Invoice, 2 cells.
   Add a new line then updateAppliedRule.
   Tests that editing a line updates simulation correctly
   Tests that removing a line updates simulation correctly
   Tests that replacing a line by cells updates simulation correctly
   Tests that updating an applied rule many times doesn't break the
   Multiple lines invoice.

  testOrder                                          (23 errors)
   test_05_OrderLine_Matrix (testOrder.TestOrder)
   test_06_OrderLine_getTotalQuantity (testOrder.TestOrder)
   test_07_OrderLine_getTotalPrice (testOrder.TestOrder)
   test_07b_OrderLine_getTotalPriceAndQuantityFastParameter (testOrder.TestOrder)
   test_08_Order_testTotalQuantity (testOrder.TestOrder)
   test_08b_Order_testTotalPriceAndQuantityFastParameter (testOrder.TestOrder)
   test_09_Order_testTotalPrice (testOrder.TestOrder)
   test_10_Order_testSimulationState (testOrder.TestOrder)
   test_11_testPropertiesAcquisition (testOrder.TestOrder)
   test_12_testAppliedRuleGeneration (testOrder.TestOrder)
   test_13_testAppliedRuleUpdate (testOrder.TestOrder)
   test_15_deliveryBuilder (testOrder.TestOrder)
   test_16_deliveryBuilderWithNoTic (testOrder.TestOrder)
   test_17_orderExpand (testOrder.TestOrder)
   test_18_SimulationStateIndexation (testOrder.TestOrder)
   test_19b_getTotalQuantityAndPrice (testOrder.TestOrder)
   test_20_testHierarchicalOrderAppliedRuleGeneration (testOrder.TestOrder)
   test_Order_viewAsODT (testOrder.TestOrder)
   test_Order_viewAsODT_image (testOrder.TestOrder)
   test_Order_viewAsODT_non_ascii (testOrder.TestOrder)
   test_Order_viewAsODT_person (testOrder.TestOrder)
   test_order_cell_getTotalPrice (testOrder.TestOrder)
   test_order_payment_condition_not_copied (testOrder.TestOrder)

  testProductionOrder                                (6 errors)
   test_01_testProductionSimulationExpand (testProductionOrder.TestProductionOrder)
   test_02_testSourcingSimulationExpand (testProductionOrder.TestProductionOrder)
   test_03_testIndustrialPhase (testProductionOrder.TestProductionOrder)
   test_04_testProductionSimulationBuild (testProductionOrder.TestProductionOrder)
   test_05_testSourcingSimulationBuild (testProductionOrder.TestProductionOrder)
   test_06_testIndustrialPhase (testProductionOrder.TestProductionOrder)

  testProductionPackingList                          (2 errors)
   test_01_checkForProductionPackingListWorkflow (testProductionPackingList.TestProductionPackingList)
   test_01_checkForProductionPackingListWorkflow (testProductionPackingList.TestProductionReport)

  testResource                                       (2 errors)
   test_10_getPriceWithOptions (testResource.TestResource)
   test_12_getPurchaseVsSalePrice (testResource.TestResource)

  testPackingListRoundingPrecision                   (12 errors)
   test_01_PackingListDecreaseQuantity (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_02_PackingListChangeDestination (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_03_PackingListChangeStartDate (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_04_PackingListDeleteLine (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_05_SimulationChangeQuantity (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_06_SimulationChangeStartDate (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_07_SimulationChangeStartDateWithTwoOrderLine (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_08_AddContainers (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_09_AddContainersWithVariatedResources (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_10_PackingListIncreaseQuantity (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
   test_12_PackingListLineChangeResource (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)

  testInvoice                                        (21 errors)
   test_01_SimpleInvoice (testInvoice.TestInvoice)
   test_02_TwoInvoicesFromTwoPackingList (testInvoice.TestInvoice)
   test_03_InvoiceEditAndInvoiceRule (testInvoice.TestInvoice)
   test_04_PackingListEditAndInvoiceRule (testInvoice.TestInvoice)
   test_05_InvoiceEditPackingListLine (testInvoice.TestInvoice)
   test_06_InvoiceDeletePackingListLine (testInvoice.TestInvoice)
   test_07_InvoiceAddPackingListLine (testInvoice.TestInvoice)
   test_08_InvoiceDecreaseQuantity (testInvoice.TestInvoice)
   test_09_InvoiceChangeStartDateFail (testInvoice.TestInvoice)
   test_09b_InvoiceChangeStartDateSucceed (testInvoice.TestInvoice)
   test_10_AcceptDecisionOnPackingList (testInvoice.TestInvoice)
   test_11_AcceptDecisionOnPackingListAndInvoice (testInvoice.TestInvoice)
   test_12_SplitPackingListAndAcceptInvoice (testInvoice.TestInvoice)
   test_13_SplitAndDeferInvoice (testInvoice.TestInvoice)
   test_14_AcceptDecisionOnInvoice (testInvoice.TestInvoice)
   test_16_ManuallyAddedMovements (testInvoice.TestInvoice)
   test_17_ManuallyAddedWrongMovements (testInvoice.TestInvoice)
   test_18_compareInvoiceAndPackingList (testInvoice.TestInvoice)
   test_19_invoice_transaction_line_resource (testInvoice.TestInvoice)
   test_20_modify_planned_order_invoicing_rule (testInvoice.TestInvoice)
   test_21_modify_planned_order_invoice_transaction_rule (testInvoice.TestInvoice)

  testInventory                                      (3 errors)
   test_01_getInventory (testInventory.TestInventory)
   test_02_InventoryModule (testInventory.TestInventory)
   test_02_InventoryModuleWithVariation (testInventory.TestInventory)

  testInventoryModule                                (4 errors)
   test_01_NotVariatedInventory (testInventoryModule.TestInventoryModule)
   test_02_VariatedInventory (testInventoryModule.TestInventoryModule)
   test_03_VariatedAggregatedInventory (testInventoryModule.TestInventoryModule)
   test_04_VariatedAggregatedInventoryGetInventoryList (testInventoryModule.TestInventoryModule)

  testTradeCondition                                 (52 errors)
   test_discount_line_consistency (testTradeCondition.TestApplyTradeConditionSaleOrder)
   test_discount_model_line_consistency (testTradeCondition.TestApplyTradeConditionSaleOrder)
   test_tax_line_consistency (testTradeCondition.TestApplyTradeConditionSaleOrder)
   test_tax_model_line_consistency (testTradeCondition.TestApplyTradeConditionSaleOrder)
   test_view_discount_line (testTradeCondition.TestApplyTradeConditionSaleOrder)
   test_view_tax_line (testTradeCondition.TestApplyTradeConditionSaleOrder)
   test_discount_line_consistency (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
   test_discount_model_line_consistency (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
   test_tax_line_consistency (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
   test_tax_model_line_consistency (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
   test_view_discount_line (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
   test_view_tax_line (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
   test_hierarchical_order_line_and_tax_line (testTradeCondition.TestTaxLineCalculationSaleOrder)
   test_multiple_order_line_multiple_tax_line (testTradeCondition.TestTaxLineCalculationSaleOrder)
   test_order_cell_and_tax_line (testTradeCondition.TestTaxLineCalculationSaleOrder)
   test_simple_tax_model_line_calculation (testTradeCondition.TestTaxLineCalculationSaleOrder)
   test_tax_model_line_calculation_with_two_lines (testTradeCondition.TestTaxLineCalculationSaleOrder)
   test_tax_on_tax (testTradeCondition.TestTaxLineCalculationSaleOrder)
   test_update_order_line_quantity_update_tax_line (testTradeCondition.TestTaxLineCalculationSaleOrder)
   test_hierarchical_order_line_and_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
   test_multiple_order_line_multiple_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
   test_order_cell_and_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
   test_simple_tax_model_line_calculation (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
   test_tax_model_line_calculation_with_two_lines (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
   test_tax_on_tax (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
   test_update_order_line_quantity_update_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
   test_multiple_order_line_multiple_tax_line (testTradeCondition.TestTaxLineCalculationSaleInvoice)
   test_order_cell_and_tax_line (testTradeCondition.TestTaxLineCalculationSaleInvoice)
   test_simple_tax_model_line_calculation (testTradeCondition.TestTaxLineCalculationSaleInvoice)
   test_tax_model_line_calculation_with_two_lines (testTradeCondition.TestTaxLineCalculationSaleInvoice)
   test_tax_on_tax (testTradeCondition.TestTaxLineCalculationSaleInvoice)
   test_update_order_line_quantity_update_tax_line (testTradeCondition.TestTaxLineCalculationSaleInvoice)
   test_multiple_order_line_multiple_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
   test_order_cell_and_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
   test_simple_tax_model_line_calculation (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
   test_tax_model_line_calculation_with_two_lines (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
   test_tax_on_tax (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
   test_update_order_line_quantity_update_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
   test_2_tax_lines_simulation (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
   test_tax_line_build (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
   test_tax_line_build_accounting (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
   test_tax_line_merged_build (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
   test_tax_line_simulation (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
   test_tax_line_updated_on_invoice_line_change (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
   test_2_tax_lines_simulation (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
   test_tax_line_build (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
   test_tax_line_build_accounting (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
   test_tax_line_merged_build (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
   test_tax_line_simulation (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
   test_tax_line_updated_on_invoice_line_change (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
   test_tax_line_simulation (testTradeCondition.TestTaxLineInvoiceSimulationPurchaseInvoice)
   test_tax_line_simulation (testTradeCondition.TestTaxLineInvoiceSimulationSaleInvoice)

  testImmobilisation                                 (40 errors)
   test_03_complexItemStructureImmobilisationStateChange (testImmobilisation.TestImmobilisation)
   test_03_complexItemStructureImmobilisationStateChange (testImmobilisation.TestImmobilisation)
   test_04_TestContinuousMethodMovementValidity (testImmobilisation.TestImmobilisation)
   test_04_TestContinuousMethodMovementValidity (testImmobilisation.TestImmobilisation)
   test_05_TestImmobilisationPeriodsWithContinuousMethodDuringContinuousTime (testImmobilisation.TestImmobilisation)
   test_05_TestImmobilisationPeriodsWithContinuousMethodDuringContinuousTime (testImmobilisation.TestImmobilisation)
   test_06_TestImmobilisationPeriodsWithContinuousMethodDuringUncontinuousTime (testImmobilisation.TestImmobilisation)
   test_06_TestImmobilisationPeriodsWithContinuousMethodDuringUncontinuousTime (testImmobilisation.TestImmobilisation)
   test_07_TestImmobilisationPeriodsWithUncontinuousMethodDuringContinuousTime (testImmobilisation.TestImmobilisation)
   test_07_TestImmobilisationPeriodsWithUncontinuousMethodDuringContinuousTime (testImmobilisation.TestImmobilisation)
   test_08_TestImmobilisationPeriodsWithUncontinuousMethodDuringUncontinuousTime (testImmobilisation.TestImmobilisation)
   test_08_TestImmobilisationPeriodsWithUncontinuousMethodDuringUncontinuousTime (testImmobilisation.TestImmobilisation)
   test_09_TestAmortisationPriceAndSimulationForLinearAmortisation (testImmobilisation.TestImmobilisation)
   test_09_TestAmortisationPriceAndSimulationForLinearAmortisation (testImmobilisation.TestImmobilisation)
   test_10_TestAmortisationPriceForDegressiveAmortisation (testImmobilisation.TestImmobilisation)
   test_10_TestAmortisationPriceForDegressiveAmortisation (testImmobilisation.TestImmobilisation)
   test_11_TestAmortisationPriceAndSimulationForUncontinuousDegressiveAmortisation (testImmobilisation.TestImmobilisation)
   test_11_TestAmortisationPriceAndSimulationForUncontinuousDegressiveAmortisation (testImmobilisation.TestImmobilisation)
   test_12_TestAmortisationPriceForActualUseDegressiveAmortisation (testImmobilisation.TestImmobilisation)
   test_12_TestAmortisationPriceForActualUseDegressiveAmortisation (testImmobilisation.TestImmobilisation)
   test_13_TestAmortisationPriceForNoAmortisationMethod (testImmobilisation.TestImmobilisation)
   test_13_TestAmortisationPriceForNoAmortisationMethod (testImmobilisation.TestImmobilisation)
   test_14_TestOwnerChangeSimulationForContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
   test_14_TestOwnerChangeSimulationForContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
   test_15_TestOwnerChangeSimulationForUnContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
   test_15_TestOwnerChangeSimulationForUnContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
   test_16_TestOwnerChangeSimulationForContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
   test_16_TestOwnerChangeSimulationForContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
   test_17_TestMonthlyAmortisation (testImmobilisation.TestImmobilisation)
   test_17_TestMonthlyAmortisation (testImmobilisation.TestImmobilisation)
   test_18_TestAccountingBuilding (testImmobilisation.TestImmobilisation)
   test_18_TestAccountingBuilding (testImmobilisation.TestImmobilisation)
   test_19BIS_TestAccountingBuildAndOwngerChange (testImmobilisation.TestImmobilisation)
   test_19BIS_TestAccountingBuildAndOwngerChange (testImmobilisation.TestImmobilisation)
   test_19_TestAccountingBuildingAndDivergence (testImmobilisation.TestImmobilisation)
   test_19_TestAccountingBuildingAndDivergence (testImmobilisation.TestImmobilisation)
   test_20_TestAccountingAcceptDecisionSolver (testImmobilisation.TestImmobilisation)
   test_20_TestAccountingAcceptDecisionSolver (testImmobilisation.TestImmobilisation)
   test_21_TestSimulationBuildingWithValidatedTransactions (testImmobilisation.TestImmobilisation)
   test_21_TestSimulationBuildingWithValidatedTransactions (testImmobilisation.TestImmobilisation)

  testInventoryAPI                                   (22 errors)
   testPrecision (testInventoryAPI.TestInventory)
   testPrecisionAndFloatRoundingIssues (testInventoryAPI.TestInventory)
   test_OmitInputOmitOutput (testInventoryAPI.TestInventory)
   test_OmitInputOmitOutputWithDifferentPayment (testInventoryAPI.TestInventory)
   test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection (testInventoryAPI.TestInventory)
   test_OmitInputOmitOutputWithDifferentSections (testInventoryAPI.TestInventory)
   test_CurentAvailableFutureInventoryList (testInventoryAPI.TestInventoryList)
   test_OmitInputOmitOutput (testInventoryAPI.TestInventoryList)
   test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection (testInventoryAPI.TestInventoryList)
   testPrecision (testInventoryAPI.TestMovementHistoryList)
   testPrecisionAndFloatRoundingIssues (testInventoryAPI.TestMovementHistoryList)
   testRunningQuantityWithQuantity0 (testInventoryAPI.TestMovementHistoryList)
   test_OmitInputOmitOutput (testInventoryAPI.TestMovementHistoryList)
   test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection (testInventoryAPI.TestMovementHistoryList)
   Test that a running_total_price attribute is set on brains
   Test running_total_price and running_total_quantity with an initial
   testStockUidQuantity (testInventoryAPI.TestInventoryStat)
   testNode (testInventoryAPI.TestNextNegativeInventoryDate)
   testDates (testInventoryAPI.TestTrackingList)
   testNodeUid (testInventoryAPI.TestTrackingList)
   testSeveralAggregateOnMovement (testInventoryAPI.TestTrackingList)
   test_14_TwoInventoryWithSameDateAndResourceAndNode (testInventoryAPI.TestInventoryDocument)

  testDms                                            (1 failures, 1 errors)
   test_08_EmbeddedDocumentState (testDms.TestDocument)
   test_ShowPreviewAfterSubmitted (testDms.TestDocumentWithSecurity)

  testArchive                                        (1 errors)
   test_Archive (testArchive.TestArchive)

  testERP5Catalog                                    (3 failures)
   test_SearchedStringIsNotStripped (testERP5Catalog.TestERP5Catalog)
   test_complex_query (testERP5Catalog.TestERP5Catalog)
   test_sortOnRelatedKeyWithUnsetRelation (testERP5Catalog.TestERP5Catalog)

  testERP5LdapCatalog                                (2 errors)
   test_01_HasEverything (testERP5LdapCatalog.TestERP5LdapCatalog)
   test_02_person_ldap_cataloging (testERP5LdapCatalog.TestERP5LdapCatalog)
-------------- next part --------------

ERROR: test_01_TestReportLineChangeQuantity (testTaskReportDivergence.TestTaskReportDivergence)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTaskReportDivergence.py", line 147, in test_01_TestReportLineChangeQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetStrictSecurity
      Login
      CreateOrganisation
      CreateOrganisation
      CreateResource
      CreateProject
      CreateRequirement
      CreateSimpleTask
      CreateCurrency
      FillTaskWithData
      SetTaskPriceCurrency
      ConfirmTask
    > Tic
      SetTaskReport
      CheckTaskReportIsSolved
      ChangeTaskReportLineQuantity
      CheckTaskReportIsCalculating
      Tic
      CheckTaskReportIsDiverged
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 161, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_d415278c2191f0802fc65b44c8b10984/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/task_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44a76d10>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_02_TestReportListChangeDestination (testTaskReportDivergence.TestTaskReportDivergence)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTaskReportDivergence.py", line 170, in test_02_TestReportListChangeDestination
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetStrictSecurity
      Login
      CreateOrganisation
      Login
      CreateOrganisation
      CreateOrganisation
      CreateResource
      CreateProject
      CreateRequirement
      CreateSimpleTask
      CreateCurrency
      FillTaskWithData
      SetTaskPriceCurrency
      ConfirmTask
    > Tic
      SetTaskReport
      CheckTaskReportIsSolved
      ChangeTaskReportDestination
      CheckTaskReportIsCalculating
      Tic
      CheckTaskReportIsDiverged
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 161, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_d415278c2191f0802fc65b44c8b10984/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/task_module/1', 'expand', -2, 6), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/task_module/2', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 45326b00>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_03_TaskReportChangeStartDate (testTaskReportDivergence.TestTaskReportDivergence)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTaskReportDivergence.py", line 191, in test_03_TaskReportChangeStartDate
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetStrictSecurity
      Login
      CreateOrganisation
      CreateOrganisation
      CreateResource
      CreateProject
      CreateRequirement
      CreateSimpleTask
      CreateCurrency
      FillTaskWithData
      SetTaskPriceCurrency
      ConfirmTask
    > Tic
      SetTaskReport
      CheckTaskReportIsSolved
      ChangeTaskReportStartDate
      CheckTaskReportIsCalculating
      Tic
      CheckTaskReportIsDiverged
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 161, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_d415278c2191f0802fc65b44c8b10984/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/task_module/1', 'expand', -2, 6), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/task_module/2', 'expand', -2, 6), ('/erp5_portal_d415278c2191f0802fc65b44c8b10984/task_module/3', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44a76d10>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_01_SearchPredidateListWithNoTest (testDomainTool.TestDomainTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDomainTool.py", line 279, in test_01_SearchPredidateListWithNoTest
    self.checkPredicate(test=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDomainTool.py", line 142, in checkPredicate
    portal_type=rule_query)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_02_SearchPredidateListWithTest (testDomainTool.TestDomainTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDomainTool.py", line 286, in test_02_SearchPredidateListWithTest
    self.checkPredicate(test=1)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDomainTool.py", line 142, in checkPredicate
    portal_type=rule_query)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_04_GenerateMappedValueWithRanges (testDomainTool.TestDomainTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDomainTool.py", line 330, in test_04_GenerateMappedValueWithRanges
    mapped_value = domain_tool.generateMappedValue(order_line,**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 206, in generateMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



FAIL: test_06_SQLQueryDoesNotReturnTooManyPredicates (testDomainTool.TestDomainTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDomainTool.py", line 418, in test_06_SQLQueryDoesNotReturnTooManyPredicates
    self.assertSameSet(portal_domains.searchPredicateList(document, test=0), [predicate_both_match])
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 536, in failIfDifferentSet
    self.failUnless(i in b, msg)
AssertionError: [<Predicate at /erp5_portal_e409e02fd9d3331c5822785a4fd66452/predicate_unit_test_folder/2>, <Predicate at /erp5_portal_e409e02fd9d3331c5822785a4fd66452/predicate_unit_test_folder/1>] != [<Predicate at /erp5_portal_e409e02fd9d3331c5822785a4fd66452/predicate_unit_test_folder/1>]



ERROR: test_01_getAggregatedAmountList (testTransformation.TestTransformation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTransformation.py", line 720, in test_01_getAggregatedAmountList
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateComponentDict
      CreateOperationDict
      Tic
      CreateVariatedResource
      Tic
      CreateTransformation
      Tic
      CreateTransformationLine
      Tic
      CreateIncludedTransformation
      Tic
      CreateIncludedTransformationLine
      Tic
    > VerifyTransformationAggregatedAmountList
      VerifyIncludedTransformationAggregatedAmountList
      IncludeTransformation
      Tic
      VerifySpecialisedTransformationAggregatedAmountList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTransformation.py", line 467, in stepVerifyTransformationAggregatedAmountList
    self.verifyAggregatedAmountList(transformation, expected_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTransformation.py", line 636, in verifyAggregatedAmountList
    a_price = a_amount.getTotalPrice()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Amount.py", line 408, in getTotalPrice
    price = self.getResourcePrice()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Amount.py", line 377, in getResourcePrice
    return resource.getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 766, in getPrice
    context=context, REQUEST=REQUEST, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_01_ValidatedRuleWithNoScript (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 57, in afterSetUp
    self.pl = self.createPackingList()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 104, in createPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_02_WrongTestMethod (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_03_GoodTestMethod (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_04_NotValidatedRule (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_05_ValidatedRule (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_06_WrongDateRange (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_07_GoodDateRange (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_08_updateAppliedRule (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_09_expandTwoRules (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_10_expandAddsRule (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_11_expandRemovesRule (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_12_expandReplacesRule (testRule.TestRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testRule.py", line 66, in afterSetUp
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_1e613e31ddc4ef272d77a4cb130c20af/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 449d6b60>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY\n  versioning.version DESC\nLIMIT 1000' at line 9")





ERROR: test_01_PackingListDecreaseQuantity (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 683, in test_01_PackingListDecreaseQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_02_PackingListChangeDestination (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 701, in test_02_PackingListChangeDestination
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ChangePackingListDestination
      CheckPackingListIsCalculating
      AcceptDecisionPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListIsNotDivergent
      CheckSimulationDestinationUpdated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_03_PackingListChangeStartDate (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 719, in test_03_PackingListChangeStartDate
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ChangePackingListStartDate
      CheckPackingListIsCalculating
      AcceptDecisionPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListIsNotDivergent
      CheckSimulationStartDateUpdated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_04_PackingListDeleteLine (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 735, in test_04_PackingListDeleteLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      CheckSimulationConnected
      DeletePackingListLine
      CheckPackingListIsNotDivergent
      Tic
      CheckSimulationDisconnected
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_05_SimulationChangeQuantity (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 754, in test_05_SimulationChangeQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineQuantity
      Tic
      CheckPackingListIsDiverged
      AdoptPrevision
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckPackingListLineWithNewQuantityPrevision
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_06_SimulationChangeStartDate (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 773, in test_06_SimulationChangeStartDate
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineStartDate
      Tic
      CheckPackingListIsDiverged
      AdoptPrevision
      Tic
      CheckPackingListIsSolved
      CheckNewPackingListAfterStartDateAdopt
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_07_SimulationChangeStartDateWithTwoOrderLine (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 794, in test_07_SimulationChangeStartDateWithTwoOrderLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineStartDate
      Tic
      CheckPackingListIsDiverged
      CheckPackingListIsDivergent
      AdoptPrevision
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckNewPackingListAfterStartDateAdopt
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08_AddContainers (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 813, in test_08_AddContainers
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineSmallQuantity
      CheckPackingListIsNotPacked
      SetContainerFullQuantity
      Tic
      CheckPackingListIsPacked
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_09_AddContainersWithVariatedResources (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 832, in test_09_AddContainersWithVariatedResources
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineSmallQuantity
      CheckPackingListIsNotPacked
      SetContainerFullQuantity
      Tic
      CheckPackingListIsPacked
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_10_PackingListIncreaseQuantity (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 860, in test_10_PackingListIncreaseQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      IncreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsDiverged
      CheckPackingListIsDivergent
      CheckPackingListNotSolved
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 892, in test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckNewPackingListIsDivergent
      NewPackingListAdoptPrevision
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplittedTwoTimes
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_12_PackingListLineChangeResource (testPackingList.TestPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 911, in test_12_PackingListLineChangeResource
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      CreateNotVariatedResource
      ChangePackingListLineResource
      CheckPackingListIsCalculating
      Tic
      CheckPackingListIsDivergent
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_01_PackingListDecreaseQuantity (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 683, in test_01_PackingListDecreaseQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_02_PackingListChangeDestination (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 701, in test_02_PackingListChangeDestination
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ChangePackingListDestination
      CheckPackingListIsCalculating
      AcceptDecisionPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListIsNotDivergent
      CheckSimulationDestinationUpdated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_03_PackingListChangeStartDate (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 719, in test_03_PackingListChangeStartDate
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ChangePackingListStartDate
      CheckPackingListIsCalculating
      AcceptDecisionPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListIsNotDivergent
      CheckSimulationStartDateUpdated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_04_PackingListDeleteLine (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 735, in test_04_PackingListDeleteLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      CheckSimulationConnected
      DeletePackingListLine
      CheckPackingListIsNotDivergent
      Tic
      CheckSimulationDisconnected
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_05_SimulationChangeQuantity (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 754, in test_05_SimulationChangeQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineQuantity
      Tic
      CheckPackingListIsDiverged
      AdoptPrevision
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckPackingListLineWithNewQuantityPrevision
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_06_SimulationChangeStartDate (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 773, in test_06_SimulationChangeStartDate
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineStartDate
      Tic
      CheckPackingListIsDiverged
      AdoptPrevision
      Tic
      CheckPackingListIsSolved
      CheckNewPackingListAfterStartDateAdopt
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_07_SimulationChangeStartDateWithTwoOrderLine (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 794, in test_07_SimulationChangeStartDateWithTwoOrderLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineStartDate
      Tic
      CheckPackingListIsDiverged
      CheckPackingListIsDivergent
      AdoptPrevision
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckNewPackingListAfterStartDateAdopt
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08_AddContainers (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 813, in test_08_AddContainers
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineSmallQuantity
      CheckPackingListIsNotPacked
      SetContainerFullQuantity
      Tic
      CheckPackingListIsPacked
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_09_AddContainersWithVariatedResources (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 832, in test_09_AddContainersWithVariatedResources
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineSmallQuantity
      CheckPackingListIsNotPacked
      SetContainerFullQuantity
      Tic
      CheckPackingListIsPacked
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_10_PackingListIncreaseQuantity (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 860, in test_10_PackingListIncreaseQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      IncreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsDiverged
      CheckPackingListIsDivergent
      CheckPackingListNotSolved
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 892, in test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckNewPackingListIsDivergent
      NewPackingListAdoptPrevision
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplittedTwoTimes
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_12_PackingListLineChangeResource (testPackingList.TestPurchasePackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 911, in test_12_PackingListLineChangeResource
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      CreateNotVariatedResource
      ChangePackingListLineResource
      CheckPackingListIsCalculating
      Tic
      CheckPackingListIsDivergent
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_03_getAvailableTime (testCalendar.TestCalendar)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testCalendar.py", line 605, in test_03_getAvailableTime
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreatePerson
      CreateGroupCalendar
      SetGroupCalendarSource
      CreateGroupPresencePeriod
      SetGroupPresencePeriodValues
      Tic
      SetGroupPresencePeriodToCheck
      SetGroupPresencePeriodDates
      SetGroupPresencePeriodPerStopDate
    > ConfirmActionGroupCalendar
      Tic
      CheckCatalogued
      CheckGetTimeAvailability
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testCalendar.py", line 238, in stepConfirmActionGroupCalendar
    'group_calendar_workflow')
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 301, in doActionFor
    return self._invokeWithNotification(
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 616, in _invokeWithNotification
    res = func(*args, **kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 287, in doActionFor
    self._changeStateOf(ob, tdef, kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 472, in _changeStateOf
    sdef = self._executeTransition(ob, tdef, kwargs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DCWorkflow.py", line 324, in DCWorkflowDefinition_executeTransition
    script(sci)  # May throw an exception.
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 2, in GroupCalendar_checkConsistency
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Base_checkConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_GroupCalendarConstraint (testCalendar.TestCalendar)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testCalendar.py", line 759, in test_GroupCalendarConstraint
    self.assertEquals(0, len(group_calendar.checkConsistency()))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_LeaveRequestCalendarConstraint (testCalendar.TestCalendar)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testCalendar.py", line 775, in test_LeaveRequestCalendarConstraint
    self.assertEquals(1, len(leave_request.checkConsistency()))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_PresenceRequestCalendarConstraint (testCalendar.TestCalendar)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testCalendar.py", line 794, in test_PresenceRequestCalendarConstraint
    self.assertEquals(1, len(presence_request.checkConsistency()))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_04_paySheetCalculation (testPayroll.TestPayroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 664, in test_04_paySheetCalculation
    pay_sheet_line_list = self.calculatePaySheet(paysheet=paysheet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 481, in calculatePaySheet
    paysheet_line_list = \
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/PaySheetTransaction.py", line 473, in createPaySheetLineList
    cell=cell,)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 4, in PaySheetTransaction_defaultCalculationScript
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_05_caculationWithANonNullMinimumValueSlice (testPayroll.TestPayroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 740, in test_05_caculationWithANonNullMinimumValueSlice
    pay_sheet_line_list = self.calculatePaySheet(paysheet=paysheet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 481, in calculatePaySheet
    paysheet_line_list = \
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/PaySheetTransaction.py", line 473, in createPaySheetLineList
    cell=cell,)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 4, in PaySheetTransaction_defaultCalculationScript
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_AccountingLineGeneration (testPayroll.TestPayroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 2350, in test_AccountingLineGeneration
    cell_employee.edit(price=1, quantity=2000, tax_category='employee_share')
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_NetSalaryReport (testPayroll.TestPayroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 2083, in test_NetSalaryReport
    cell_employee.edit(price=1, quantity=2000, tax_category='employee_share')
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_PayrollTaxesReport (testPayroll.TestPayroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 1705, in test_PayrollTaxesReport
    cell_employee.edit(price=-.50, quantity=2000, tax_category='employee_share')
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_PayrollTaxesReportDifferentSalaryRange (testPayroll.TestPayroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 1865, in test_PayrollTaxesReportDifferentSalaryRange
    salary_range='france/tranche_a')
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_createPaySheetLineNonePrice (testPayroll.TestPayroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 1433, in test_createPaySheetLineNonePrice
    pay_sheet.PaySheetTransaction_createAllPaySheetLineList()
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 16, in PaySheetTransaction_createAllPaySheetLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/PaySheetTransaction.py", line 473, in createPaySheetLineList
    cell=cell,)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 4, in PaySheetTransaction_defaultCalculationScript
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_paysheet_consistency (testPayroll.TestPayroll)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPayroll.py", line 1477, in test_paysheet_consistency
    self.assertEquals([], paysheet.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_01_ItemSimpleTest (testItem.TestItem)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testItem.py", line 131, in test_01_ItemSimpleTest
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateItemList
      CreateOrder
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderLineSetAggregationList
      ConfirmOrder
      Tic
      CheckOrderLineAggregate
      CheckOrderSimulation
      CheckSimulationAggregate
      CheckDeliveryBuilding
      CheckPackingListLineAggregate
      CheckPackingListIsNotDivergent
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_02_ItemWithInvoice (testItem.TestItem)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testItem.py", line 178, in test_02_ItemWithInvoice
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateItemList
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderLineSetAggregationList
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderLineAggregate
      CheckOrderSimulation
      CheckSimulationAggregate
      CheckDeliveryBuilding
      CheckPackingListLineAggregate
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
      CheckInvoiceLineAggregate
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_05_OrderLine_Matrix (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1202, in test_05_OrderLine_Matrix
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateVariatedResource
      Tic
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
      CheckOrderLineEmptyMatrix
      SetOrderLineFullVCL
      CheckOrderLineRange
      CheckOrderLineEmptyMatrix
    > CompleteOrderLineMatrix
      Tic
      CheckOrderLineCompleteMatrix
      SetOrderLineHalfVCL
      Tic
      CheckOrderLineRange
      CheckOrderLineCompleteMatrix
      SetOrderLineEmptyVCL
      Tic
      CheckOrderLineEmptyMatrix
      CheckOrderLineRange
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 361, in stepCompleteOrderLineMatrix
    variation_category_list=cell_key)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_06_OrderLine_getTotalQuantity (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1256, in test_06_OrderLine_getTotalQuantity
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_07_OrderLine_getTotalPrice (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1277, in test_07_OrderLine_getTotalPrice
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalPrice
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_07b_OrderLine_getTotalPriceAndQuantityFastParameter (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1292, in test_07b_OrderLine_getTotalPriceAndQuantityFastParameter
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      CheckOrderLineTotalPriceAndQuantityFastParameter
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08_Order_testTotalQuantity (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1328, in test_08_Order_testTotalQuantity
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderTotalQuantity
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08b_Order_testTotalPriceAndQuantityFastParameter (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1345, in test_08b_Order_testTotalPriceAndQuantityFastParameter
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      CreateNotVariatedResource
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      CheckOrderTotalPriceAndQuantityFastParameter
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_09_Order_testTotalPrice (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1381, in test_09_Order_testTotalPrice
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderTotalPrice
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_10_Order_testSimulationState (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1406, in test_10_Order_testSimulationState
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      CheckOrder
      CheckOrderInitialState
      Tic
      CheckOrderLineState
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      Tic
      CheckOrderCellState
      PlanOrder
      Tic
      CheckOrderPlanned
      CheckOrderLineState
      CheckOrderCellState
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_11_testPropertiesAcquisition (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1426, in test_11_testPropertiesAcquisition
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      CheckOrder
      CheckOrderInitialState
      CheckOrderLineAcquisition
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      CheckOrderCellAcquisition
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_12_testAppliedRuleGeneration (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1523, in test_12_testAppliedRuleGeneration
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderSimulation
      PlanOrder
      Tic
      CheckOrderSimulation
      OrderOrder
      Tic
      CheckOrderSimulation
      CancelOrder
      Tic
      Tic
      CheckOrderSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_13_testAppliedRuleUpdate (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1577, in test_13_testAppliedRuleUpdate
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      OrderOrder
      Tic
      ModifyOrderStartDate
      Tic
      CheckOrderSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_15_deliveryBuilder (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1709, in test_15_deliveryBuilder
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrder
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckDeliveryBuilding
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_16_deliveryBuilderWithNoTic (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1744, in test_16_deliveryBuilderWithNoTic
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      Tic
      CreateOrder
      SetOrderProfile
      CreateVariatedResource
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      CreateNotVariatedResource
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      OrderOrder
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckDeliveryBuilding
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_17_orderExpand (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1817, in test_17_orderExpand
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrder
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ModifyOrderLineQuantity
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckOrderSimulationStable
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_18_SimulationStateIndexation (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1855, in test_18_SimulationStateIndexation
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      Tic
      CheckCatalogued
      CheckCataloguedSimulation
      PlanOrder
      Tic
      CheckCatalogued
      CheckCataloguedSimulation
      OrderOrder
      Tic
      CheckCatalogued
      CheckCataloguedSimulation
      CancelOrder
      Tic
      CheckCatalogued
      CheckCataloguedSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_19b_getTotalQuantityAndPrice (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2001, in test_19b_getTotalQuantityAndPrice
    variation_category_list=cell_key)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_Order_viewAsODT (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2401, in test_Order_viewAsODT
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/26', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44f556b0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_Order_viewAsODT_image (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2470, in test_Order_viewAsODT_image
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/26', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/27', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 457c6f80>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_Order_viewAsODT_non_ascii (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2512, in test_Order_viewAsODT_non_ascii
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/26', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/27', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/28', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44f556b0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_Order_viewAsODT_person (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2433, in test_Order_viewAsODT_person
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/26', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/27', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/28', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/29', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 457c6f80>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_order_cell_getTotalPrice (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2320, in test_order_cell_getTotalPrice
    edit_order=[])
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_order_payment_condition_not_copied (testPurchaseOrder.TestPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2371, in test_order_payment_condition_not_copied
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/portal_deliveries/purchase_packing_list_builder', 'build', -1, 1), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/26', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/27', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/28', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/29', 'expand', -2, 6), ('/erp5_portal_00858f2c2de98c339f32fc0be4cfdf31/purchase_order_module/30', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 457c6f80>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_01_testTaskBasicUseCase (testTask.TestTask)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 545, in test_01_testTaskBasicUseCase
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      Login
      CreateOrganisation
      CreateOrganisation
      CreateResource
      CreateProject
      CreateRequirement
      CreateSimpleTask
      CreateCurrency
      FillTaskWithData
      SetTaskPriceCurrency
      ConfirmTask
    > Tic
      SetTaskReport
      VerifyGeneratedByBuilderTaskReport
      StartTaskReport
      FinishTaskReport
      CloseTaskReport
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 161, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_5b804c5b31c4569bb4c49764b8e724c6/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_5b804c5b31c4569bb4c49764b8e724c6/task_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44a67d10>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_02_testMultipleLineTaskBasicUseCase (testTask.TestTask)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 561, in test_02_testMultipleLineTaskBasicUseCase
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      Login
      CreateOrganisation
      CreateOrganisation
      CreateResource
      CreateResource
      CreateProject
      CreateSimpleTask
      CreateCurrency
      FillTaskWithData
      SetTaskPriceCurrency
      CreateTaskLine
    > FillTaskLineWithData
      ConfirmTask
      Tic
      SetTaskReport
      VerifyGeneratedTaskReportLines
      StartTaskReport
      FinishTaskReport
      CloseTaskReport
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 407, in stepFillTaskLineWithData
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_03_testTaskReportBasicUseCase (testTask.TestTask)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 578, in test_03_testTaskReportBasicUseCase
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      Login
      CreateOrganisation
      CreateOrganisation
      CreateResource
      CreateSimpleTaskReport
      CreateCurrency
      FillTaskReportWithData
      SetTaskReportPriceCurrency
    > CreateTaskReportLine
      ConfirmTaskReport
      Tic
      VerifyTaskReportCausalityState
      StartTaskReport
      FinishTaskReport
      CloseTaskReport
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 351, in stepCreateTaskReportLine
    price = self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_04_checkNotMergedTaskReportLine (testTask.TestTask)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 607, in test_04_checkNotMergedTaskReportLine
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      Login
      CreateOrganisation
      CreateOrganisation
      CreateResource
      CreateResource
      CreateSimpleTask
      SetTaskValues
      CreateTaskLine
    > FillTaskLineWithData
      CreateTaskLine
      FillTaskLineWithData
      ConfirmTask
      Tic
      SetTaskReport
      VerifyMergedTaskLine
      StartTaskReport
      FinishTaskReport
      CloseTaskReport
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 407, in stepFillTaskLineWithData
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: Test creation of task and (automatic) task_report with strict
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 631, in test_05_testStrictSimulationSecurity
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      Login
      CreateOrganisation
      CreateOrganisation
      CreateResource
      CreateProject
      CreateRequirement
      CreateSimpleTask
      CreateCurrency
      FillTaskWithData
      SetTaskPriceCurrency
      ConfirmTask
    > Tic
      SetTaskReport
      VerifyGeneratedByBuilderTaskReport
      StartTaskReport
      FinishTaskReport
      CloseTaskReport
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTask.py", line 161, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_5b804c5b31c4569bb4c49764b8e724c6/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_5b804c5b31c4569bb4c49764b8e724c6/portal_deliveries/task_report_builder', 'build', -1, 1), ('/erp5_portal_5b804c5b31c4569bb4c49764b8e724c6/task_module/1', 'expand', -2, 6), ('/erp5_portal_5b804c5b31c4569bb4c49764b8e724c6/task_module/4', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44a67d10>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_01_QuantityDivergenceTester (testDivergenceTester.TestDivergenceTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 360, in setUp
    PortalTestCase.setUp(self)
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 51, in setUp
    self.afterSetUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDivergenceTester.py", line 95, in afterSetUp
    self.bootstrapSite()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDivergenceTester.py", line 83, in bootstrapSite
    sequence_list.play(self, quiet=self.quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      RemoveDivergenceTesters
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



FAIL: test_02_CategoryDivergenceTester (testDivergenceTester.TestDivergenceTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDivergenceTester.py", line 228, in test_02_CategoryDivergenceTester
    sequence_list.play(self, quiet=self.quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
    > GetPackingList
      CheckPackingListIsNotDivergent
      SetNewSource
      CheckPackingListIsNotDivergent
      AddCategoryDivergenceTester
      CheckPackingListIsNotDivergent
      ConfigureCategoryDivergenceTesterForSource
      CheckPackingListIsDivergent
      SetPreviousSource
      CheckPackingListIsNotDivergent
      Tic
      RemoveDivergenceTesters
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDivergenceTester.py", line 103, in stepGetPackingList
    self.assertEquals(1, len(sql_result))
AssertionError: 1 != 0



FAIL: test_03_PropertyDivergenceTester (testDivergenceTester.TestDivergenceTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDivergenceTester.py", line 287, in test_03_PropertyDivergenceTester
    sequence_list.play(self, quiet=self.quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
    > GetPackingList
      CheckPackingListIsNotDivergent
      SetNewStartDate
      CheckPackingListIsNotDivergent
      AddPropertyDivergenceTester
      CheckPackingListIsNotDivergent
      ConfigurePropertyDivergenceTesterForStartDate
      CheckPackingListIsDivergent
      SetPreviousStartDate
      CheckPackingListIsNotDivergent
      Tic
      RemoveDivergenceTesters
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDivergenceTester.py", line 103, in stepGetPackingList
    self.assertEquals(1, len(sql_result))
AssertionError: 1 != 0



FAIL: test_04_CategoryDivergenceTester (testDivergenceTester.TestDivergenceTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDivergenceTester.py", line 338, in test_04_CategoryDivergenceTester
    sequence_list.play(self, quiet=self.quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
    > GetPackingList
      CheckPackingListIsNotDivergent
      SetNewAggregate
      CheckPackingListIsNotDivergent
      AddCategoryDivergenceTester
      CheckPackingListIsNotDivergent
      ConfigureCategoryDivergenceTesterForAggregate
      CheckPackingListIsDivergent
      SetPreviousAggregate
      CheckPackingListIsNotDivergent
      Tic
      RemoveDivergenceTesters
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testDivergenceTester.py", line 103, in stepGetPackingList
    self.assertEquals(1, len(sql_result))
AssertionError: 1 != 0



ERROR: Simple Invoice.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1463, in test_04_SimpleInvoice
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
      CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateSimpleSaleInvoice
      PlanInvoice
    > Tic
      CheckFirstRuleIsApplied
      CheckPaymentRuleIsApplied
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCoherantWithSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 190, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Same test as SimpleInvoice but directly confirm the invoice
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1498, in test_04b_SimpleInvoiceConfirm
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateSimpleSaleInvoice
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForSimpleInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Simple Invoice, 2 lines.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1532, in test_04c_SimpleInvoiceTwoLines
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateSimpleSaleInvoiceTwoLines
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForSimpleInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Simple Invoice, 2 cells.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1566, in test_04d_SimpleInvoiceTwoCells
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateSimpleSaleInvoiceTwoCells
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForSimpleInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Add a new line then updateAppliedRule.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1603, in test_05a_SimpleInvoiceReExpandAddLine
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateEmptyInvoice
      PlanInvoice
      Tic
      AddInvoiceLine
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForSimpleInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Tests that editing a line updates simulation correctly
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1638, in test_05b_SimpleInvoiceReExpandEditLine
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateOtherSimpleSaleInvoice
      PlanInvoice
      Tic
      EditInvoiceLine
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForSimpleInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Tests that removing a line updates simulation correctly
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1673, in test_05c_SimpleInvoiceReExpandDeleteLine
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateSimpleSaleInvoice
      AddInvoiceLine
      PlanInvoice
      Tic
      DeleteInvoiceLine
      Tic
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForSimpleInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Tests that replacing a line by cells updates simulation correctly
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1710, in test_05d_SimpleInvoiceReExpandCreateCell
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateOtherSimpleSaleInvoice
      PlanInvoice
      Tic
      AddCellsInInvoiceLine
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForSimpleInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Tests that updating an applied rule many times doesn't break the
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1773, in test_05e_SimpleInvoiceExpandManyTimes
    """, quiet=quiet )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      CreateNotebookFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateSimpleSaleInvoice
      PlanInvoice
      Tic
      EditInvoiceLine
      UpdateAppliedRule
      Tic
      EditInvoiceLine
      UpdateAppliedRule
      Tic
      EditInvoiceLine
      UpdateAppliedRule
      Tic
      EditInvoiceLine
      UpdateAppliedRule
      Tic
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForSimpleInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: Multiple lines invoice.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 1787, in test_06_MultiLineInvoice
    self.playSequence("""
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateAccounts
      CreateEntities
      CreateCurrencies
      CreateProducts
    > CreateSaleInvoiceTransactionRule
      Tic
      UpdateSaleInvoiceTransactionRuleMatrix
      ValidateSaleInvoiceTransaction
      Tic
      CreateNotebookFranceCell
      CreateBareboneFranceCell
      Tic
      ClearSimulation
      ClearAccountingModule
      CreateMultiLineSaleInvoice
      PlanInvoice
      ConfirmInvoice
      Tic
      CheckNoAccountingLinesBuiltYet
      StartInvoice
      Tic
      CheckAccountingLinesCreatedForMultiLineInvoice
      RebuildAndCheckNothingIsCreated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 200, in stepCreateSaleInvoiceTransactionRule
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_9c64445d15dbcc26e9c517f7a696daa6/accounting_module/simple_invoice', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.InvoiceRule, line 83, in expand
  Module Products.ERP5.Document.DeliveryRule, line 176, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44b7d860>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_05_OrderLine_Matrix (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1202, in test_05_OrderLine_Matrix
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateVariatedResource
      Tic
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
      CheckOrderLineEmptyMatrix
      SetOrderLineFullVCL
      CheckOrderLineRange
      CheckOrderLineEmptyMatrix
    > CompleteOrderLineMatrix
      Tic
      CheckOrderLineCompleteMatrix
      SetOrderLineHalfVCL
      Tic
      CheckOrderLineRange
      CheckOrderLineCompleteMatrix
      SetOrderLineEmptyVCL
      Tic
      CheckOrderLineEmptyMatrix
      CheckOrderLineRange
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 361, in stepCompleteOrderLineMatrix
    variation_category_list=cell_key)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_06_OrderLine_getTotalQuantity (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1256, in test_06_OrderLine_getTotalQuantity
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_07_OrderLine_getTotalPrice (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1277, in test_07_OrderLine_getTotalPrice
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalPrice
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_07b_OrderLine_getTotalPriceAndQuantityFastParameter (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1292, in test_07b_OrderLine_getTotalPriceAndQuantityFastParameter
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      CheckOrderLineTotalPriceAndQuantityFastParameter
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08_Order_testTotalQuantity (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1328, in test_08_Order_testTotalQuantity
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderTotalQuantity
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08b_Order_testTotalPriceAndQuantityFastParameter (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1345, in test_08b_Order_testTotalPriceAndQuantityFastParameter
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      CreateNotVariatedResource
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      CheckOrderTotalPriceAndQuantityFastParameter
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_09_Order_testTotalPrice (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1381, in test_09_Order_testTotalPrice
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderTotalPrice
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_10_Order_testSimulationState (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1406, in test_10_Order_testSimulationState
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      CheckOrder
      CheckOrderInitialState
      Tic
      CheckOrderLineState
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      Tic
      CheckOrderCellState
      PlanOrder
      Tic
      CheckOrderPlanned
      CheckOrderLineState
      CheckOrderCellState
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_11_testPropertiesAcquisition (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1426, in test_11_testPropertiesAcquisition
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      CheckOrder
      CheckOrderInitialState
      CheckOrderLineAcquisition
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      CheckOrderCellAcquisition
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_12_testAppliedRuleGeneration (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1523, in test_12_testAppliedRuleGeneration
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderSimulation
      PlanOrder
      Tic
      CheckOrderSimulation
      OrderOrder
      Tic
      CheckOrderSimulation
      CancelOrder
      Tic
      Tic
      CheckOrderSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_13_testAppliedRuleUpdate (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1577, in test_13_testAppliedRuleUpdate
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateVariatedResource
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      OrderOrder
      Tic
      ModifyOrderStartDate
      Tic
      CheckOrderSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_15_deliveryBuilder (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1709, in test_15_deliveryBuilder
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrder
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckDeliveryBuilding
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_16_deliveryBuilderWithNoTic (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1744, in test_16_deliveryBuilderWithNoTic
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      Tic
      CreateOrder
      SetOrderProfile
      CreateVariatedResource
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderLineTotalQuantity
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      CreateNotVariatedResource
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      OrderOrder
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckDeliveryBuilding
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_17_orderExpand (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1817, in test_17_orderExpand
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrder
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ModifyOrderLineQuantity
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckOrderSimulationStable
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_18_SimulationStateIndexation (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 1855, in test_18_SimulationStateIndexation
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      Tic
      CheckCatalogued
      CheckCataloguedSimulation
      PlanOrder
      Tic
      CheckCatalogued
      CheckCataloguedSimulation
      OrderOrder
      Tic
      CheckCatalogued
      CheckCataloguedSimulation
      CancelOrder
      Tic
      CheckCatalogued
      CheckCataloguedSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_19b_getTotalQuantityAndPrice (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2001, in test_19b_getTotalQuantityAndPrice
    variation_category_list=cell_key)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_20_testHierarchicalOrderAppliedRuleGeneration (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2278, in test_20_testHierarchicalOrderAppliedRuleGeneration
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation
      CreateOrder
      CreateNotVariatedResource
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CreateSubOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
      SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CreateSubSubOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
      SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CreateSubSubOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
      SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CreateSubOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
      SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CreateOrderLine
      CheckOrderLineEmptyMatrix
      SetOrderLineResource
      SetOrderLineDefaultValues
      CheckOrderLineDefaultValues
      CheckOrderSimulation
      PlanOrder
      Tic
      CheckOrderSimulation
      OrderOrder
      Tic
      CheckOrderSimulation
      CancelOrder
      Tic
      CheckOrderSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_Order_viewAsODT (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2401, in test_Order_viewAsODT
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/27', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44fd7cb0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_Order_viewAsODT_image (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2470, in test_Order_viewAsODT_image
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/27', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/28', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 457990b0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_Order_viewAsODT_non_ascii (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2512, in test_Order_viewAsODT_non_ascii
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/27', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/28', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/29', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44fd7cb0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_Order_viewAsODT_person (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2433, in test_Order_viewAsODT_person
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/27', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/28', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/29', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/30', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 457990b0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_order_cell_getTotalPrice (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2320, in test_order_cell_getTotalPrice
    edit_order=[])
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Predicate.py", line 406, in edit
    return self._edit(**kwd)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 160, in _edit
    reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/MappedValue.py", line 90, in _edit
    Predicate._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryCell.py", line 98, in getPrice
    return Movement.getPrice(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_order_payment_condition_not_copied (testOrder.TestOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 2371, in test_order_payment_condition_not_copied
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/portal_deliveries/sale_packing_list_builder', 'build', -1, 1), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/27', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/28', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/29', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/30', 'expand', -2, 6), ('/erp5_portal_f56e40505f8cecd1db294fdab2822698/sale_order_module/31', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.OrderRule, line 143, in expand
  Module Products.ERP5.Document.Rule, line 139, in expand
  Module Products.ERP5Type.Document.SimulationMovement, line 238, in expand
  Module Products.ERP5.Tool.RuleTool, line 141, in searchRuleList
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 457990b0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 9")





ERROR: test_01_testProductionSimulationExpand (testProductionOrder.TestProductionOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionOrder.py", line 866, in test_01_testProductionSimulationExpand
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      ClearActivities
      CreateProductionOrganisation1
      CreateProductionSC
      CreateVariatedResource
      CreateComponent1
      CreateTransformation
      CreateOrganisation
      CreateOrder
      CreateOrderLine
      Tic
    > OrderOrder
      Tic
      CheckProductionSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 748, in stepOrderOrder
    self.modifyOrderState('order_action', sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 742, in modifyOrderState
    order.portal_workflow.doActionFor(order, transition_name)
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 301, in doActionFor
    return self._invokeWithNotification(
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 616, in _invokeWithNotification
    res = func(*args, **kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 287, in doActionFor
    self._changeStateOf(ob, tdef, kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 472, in _changeStateOf
    sdef = self._executeTransition(ob, tdef, kwargs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DCWorkflow.py", line 324, in DCWorkflowDefinition_executeTransition
    script(sci)  # May throw an exception.
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Order_validateData
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Base_checkConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_02_testSourcingSimulationExpand (testProductionOrder.TestProductionOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionOrder.py", line 893, in test_02_testSourcingSimulationExpand
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      ClearActivities
      CreateProductionOrganisation1
      CreateSupplyOrganisation1
      CreateSourcingSC
      CreateVariatedResource
      CreateComponent1
      CreateTransformation
      CreateOrganisation
      CreateOrder
      CreateOrderLine
      Tic
    > OrderOrder
      Tic
      CheckSourcingSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 748, in stepOrderOrder
    self.modifyOrderState('order_action', sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 742, in modifyOrderState
    order.portal_workflow.doActionFor(order, transition_name)
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 301, in doActionFor
    return self._invokeWithNotification(
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 616, in _invokeWithNotification
    res = func(*args, **kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 287, in doActionFor
    self._changeStateOf(ob, tdef, kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 472, in _changeStateOf
    sdef = self._executeTransition(ob, tdef, kwargs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DCWorkflow.py", line 324, in DCWorkflowDefinition_executeTransition
    script(sci)  # May throw an exception.
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Order_validateData
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Base_checkConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_03_testIndustrialPhase (testProductionOrder.TestProductionOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionOrder.py", line 921, in test_03_testIndustrialPhase
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      ClearActivities
      CreateProductionOrganisation1
      CreateProductionOrganisation2
      CreateSupplyOrganisation1
      CreateSupplyOrganisation2
      CreateTwoPhasesSC
      CreateVariatedResource
      CreateComponent1
      CreateComponent2
      CreateTransformation
      CreateOrganisation
      CreateOrder
      CreateOrderLine
      Tic
    > OrderOrder
      Tic
      CheckTwoPhasesSimulation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 748, in stepOrderOrder
    self.modifyOrderState('order_action', sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 742, in modifyOrderState
    order.portal_workflow.doActionFor(order, transition_name)
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 301, in doActionFor
    return self._invokeWithNotification(
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 616, in _invokeWithNotification
    res = func(*args, **kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 287, in doActionFor
    self._changeStateOf(ob, tdef, kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 472, in _changeStateOf
    sdef = self._executeTransition(ob, tdef, kwargs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DCWorkflow.py", line 324, in DCWorkflowDefinition_executeTransition
    script(sci)  # May throw an exception.
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Order_validateData
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Base_checkConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_04_testProductionSimulationBuild (testProductionOrder.TestProductionOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionOrder.py", line 948, in test_04_testProductionSimulationBuild
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      ClearActivities
      CreateProductionOrganisation1
      CreateProductionSC
      CreateVariatedResource
      CreateComponent1
      CreateTransformation
      CreateOrganisation
      CreateOrder
      CreateOrderLine
      Tic
    > OrderOrder
      Tic
      ConfirmOrder
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 748, in stepOrderOrder
    self.modifyOrderState('order_action', sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 742, in modifyOrderState
    order.portal_workflow.doActionFor(order, transition_name)
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 301, in doActionFor
    return self._invokeWithNotification(
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 616, in _invokeWithNotification
    res = func(*args, **kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 287, in doActionFor
    self._changeStateOf(ob, tdef, kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 472, in _changeStateOf
    sdef = self._executeTransition(ob, tdef, kwargs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DCWorkflow.py", line 324, in DCWorkflowDefinition_executeTransition
    script(sci)  # May throw an exception.
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Order_validateData
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Base_checkConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_05_testSourcingSimulationBuild (testProductionOrder.TestProductionOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionOrder.py", line 977, in test_05_testSourcingSimulationBuild
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      ClearActivities
      CreateProductionOrganisation1
      CreateSupplyOrganisation1
      CreateSourcingSC
      CreateVariatedResource
      CreateComponent1
      CreateTransformation
      CreateOrganisation
      CreateOrder
      CreateOrderLine
      Tic
    > OrderOrder
      Tic
      ConfirmOrder
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 748, in stepOrderOrder
    self.modifyOrderState('order_action', sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 742, in modifyOrderState
    order.portal_workflow.doActionFor(order, transition_name)
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 301, in doActionFor
    return self._invokeWithNotification(
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 616, in _invokeWithNotification
    res = func(*args, **kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 287, in doActionFor
    self._changeStateOf(ob, tdef, kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 472, in _changeStateOf
    sdef = self._executeTransition(ob, tdef, kwargs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DCWorkflow.py", line 324, in DCWorkflowDefinition_executeTransition
    script(sci)  # May throw an exception.
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Order_validateData
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Base_checkConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_06_testIndustrialPhase (testProductionOrder.TestProductionOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionOrder.py", line 1008, in test_06_testIndustrialPhase
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      ClearActivities
      CreateProductionOrganisation1
      CreateProductionOrganisation2
      CreateSupplyOrganisation1
      CreateSupplyOrganisation2
      CreateTwoPhasesSC
      CreateVariatedResource
      CreateComponent1
      CreateComponent2
      CreateTransformation
      CreateOrganisation
      CreateOrder
      CreateOrderLine
      Tic
    > OrderOrder
      Tic
      ConfirmOrder
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 748, in stepOrderOrder
    self.modifyOrderState('order_action', sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 742, in modifyOrderState
    order.portal_workflow.doActionFor(order, transition_name)
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 301, in doActionFor
    return self._invokeWithNotification(
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 616, in _invokeWithNotification
    res = func(*args, **kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 287, in doActionFor
    self._changeStateOf(ob, tdef, kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 472, in _changeStateOf
    sdef = self._executeTransition(ob, tdef, kwargs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DCWorkflow.py", line 324, in DCWorkflowDefinition_executeTransition
    script(sci)  # May throw an exception.
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Order_validateData
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Base_checkConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_01_checkForProductionPackingListWorkflow (testProductionPackingList.TestProductionPackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionPackingList.py", line 197, in test_01_checkForProductionPackingListWorkflow
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      ClearActivities
      CreatePackingList
      SetPackingListProfile
      CreateNotVariatedResource
      Tic
      CreatePackingListLine
      SetPackingListLineResource
    > SetPackingListLineDefaultValues
      Tic
      ConfirmPackingList
      Tic
      SetReadyPackingList
      Tic
      StartPackingList
      Tic
      StopPackingList
      Tic
      DeliverPackingList
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionPackingList.py", line 139, in stepSetPackingListLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_01_checkForProductionPackingListWorkflow (testProductionPackingList.TestProductionReport)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionPackingList.py", line 197, in test_01_checkForProductionPackingListWorkflow
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      ClearActivities
      CreatePackingList
      SetPackingListProfile
      CreateNotVariatedResource
      Tic
      CreatePackingListLine
      SetPackingListLineResource
    > SetPackingListLineDefaultValues
      Tic
      ConfirmPackingList
      Tic
      SetReadyPackingList
      Tic
      StartPackingList
      Tic
      StopPackingList
      Tic
      DeliverPackingList
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testProductionPackingList.py", line 139, in stepSetPackingListLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_10_getPriceWithOptions (testResource.TestResource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testResource.py", line 644, in test_10_getPriceWithOptions
    self.assertEquals(1, product.getPrice(context=supply_line))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 766, in getPrice
    context=context, REQUEST=REQUEST, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_12_getPurchaseVsSalePrice (testResource.TestResource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testResource.py", line 802, in test_12_getPurchaseVsSalePrice
    self.assertEquals(sale_order_line.getPrice(), 400.0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_01_PackingListDecreaseQuantity (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 683, in test_01_PackingListDecreaseQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_02_PackingListChangeDestination (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 701, in test_02_PackingListChangeDestination
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ChangePackingListDestination
      CheckPackingListIsCalculating
      AcceptDecisionPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListIsNotDivergent
      CheckSimulationDestinationUpdated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_03_PackingListChangeStartDate (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 719, in test_03_PackingListChangeStartDate
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ChangePackingListStartDate
      CheckPackingListIsCalculating
      AcceptDecisionPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListIsNotDivergent
      CheckSimulationStartDateUpdated
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_04_PackingListDeleteLine (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 735, in test_04_PackingListDeleteLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      CheckSimulationConnected
      DeletePackingListLine
      CheckPackingListIsNotDivergent
      Tic
      CheckSimulationDisconnected
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_05_SimulationChangeQuantity (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 754, in test_05_SimulationChangeQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineQuantity
      Tic
      CheckPackingListIsDiverged
      AdoptPrevision
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckPackingListLineWithNewQuantityPrevision
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_06_SimulationChangeStartDate (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 773, in test_06_SimulationChangeStartDate
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineStartDate
      Tic
      CheckPackingListIsDiverged
      AdoptPrevision
      Tic
      CheckPackingListIsSolved
      CheckNewPackingListAfterStartDateAdopt
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_07_SimulationChangeStartDateWithTwoOrderLine (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 794, in test_07_SimulationChangeStartDateWithTwoOrderLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      ModifySimulationLineStartDate
      Tic
      CheckPackingListIsDiverged
      CheckPackingListIsDivergent
      AdoptPrevision
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckNewPackingListAfterStartDateAdopt
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08_AddContainers (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 813, in test_08_AddContainers
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineSmallQuantity
      CheckPackingListIsNotPacked
      SetContainerFullQuantity
      Tic
      CheckPackingListIsPacked
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_09_AddContainersWithVariatedResources (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 832, in test_09_AddContainersWithVariatedResources
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      SetOrderLineFullVCL
      CompleteOrderLineMatrix
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineSmallQuantity
      CheckPackingListIsNotPacked
      SetContainerFullQuantity
      Tic
      CheckPackingListIsPacked
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_10_PackingListIncreaseQuantity (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 860, in test_10_PackingListIncreaseQuantity
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      IncreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsDiverged
      CheckPackingListIsDivergent
      CheckPackingListNotSolved
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 892, in test_11_PackingListDecreaseTwoTimesQuantityAndUpdateDelivery
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckNewPackingListIsDivergent
      NewPackingListAdoptPrevision
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplittedTwoTimes
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_12_PackingListLineChangeResource (testPackingListRoundingPrecision.TestPackingListRoundingPrecision)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testPackingList.py", line 911, in test_12_PackingListLineChangeResource
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      CreateNotVariatedResource
      ChangePackingListLineResource
      CheckPackingListIsCalculating
      Tic
      CheckPackingListIsDivergent
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_01_SimpleInvoice (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1174, in test_01_SimpleInvoice
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_02_TwoInvoicesFromTwoPackingList (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1208, in test_02_TwoInvoicesFromTwoPackingList
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      DecreasePackingListLineQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      DefineNewPackingListContainer
      Tic
      CheckNewPackingListIsPacked
      SetReadyPackingList
      SetReadyNewPackingList
      Tic
      StartPackingList
      StartNewPackingList
      Tic
      CheckTwoInvoices
      RemoveDateMovementGroupForTransactionBuilder
      StartTwoInvoices
      Tic
      CheckTwoInvoicesTransactionLines
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_03_InvoiceEditAndInvoiceRule (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1240, in test_03_InvoiceEditAndInvoiceRule
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      EditInvoice
      CheckInvoiceRuleNotAppliedOnInvoiceEdit
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_04_PackingListEditAndInvoiceRule (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1260, in test_04_PackingListEditAndInvoiceRule
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      EditPackingList
      CheckDeliveryRuleNotAppliedOnPackingListEdit
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_05_InvoiceEditPackingListLine (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1285, in test_05_InvoiceEditPackingListLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      EditPackingListLine
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_06_InvoiceDeletePackingListLine (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1311, in test_06_InvoiceDeletePackingListLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      Tic
      SetContainerFullQuantity
      Tic
      CheckPackingListIsPacked
      DeletePackingListLine
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_07_InvoiceAddPackingListLine (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1339, in test_07_InvoiceAddPackingListLine
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      AddPackingListLine
      SetContainerFullQuantity
      Tic
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08_InvoiceDecreaseQuantity (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1377, in test_08_InvoiceDecreaseQuantity
    self.playSequence(sequence, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      DecreaseInvoiceLineQuantity
      CheckInvoiceIsDivergent
      CheckInvoiceIsCalculating
      SplitAndDeferInvoice
      Tic
      CheckInvoiceIsNotDivergent
      CheckInvoiceIsSolved
      CheckInvoiceSplitted
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_09_InvoiceChangeStartDateFail (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1411, in test_09_InvoiceChangeStartDateFail
    self.playSequence(sequence, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      ChangeInvoiceStartDate
      CheckInvoiceIsDivergent
      CheckInvoiceIsCalculating
      AcceptDecisionInvoice
      Tic
      CheckInvoiceNotSplitted
      CheckInvoiceIsNotDivergent
      CheckInvoiceIsSolved
      CheckPackingListIsDivergent
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_09b_InvoiceChangeStartDateSucceed (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1455, in test_09b_InvoiceChangeStartDateSucceed
    self.playSequence(sequence, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      StopPackingList
      Tic
      DeliverPackingList
      Tic
      ChangeInvoiceStartDate
      CheckInvoiceIsDivergent
      CheckInvoiceIsCalculating
      AcceptDecisionInvoice
      Tic
      CheckInvoiceNotSplitted
      CheckInvoiceIsNotDivergent
      CheckInvoiceIsSolved
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_10_AcceptDecisionOnPackingList (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1519, in test_10_AcceptDecisionOnPackingList
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      CheckInvoicingRule
      DecreasePackingListLineQuantity
      SetContainerFullQuantity
      CheckPackingListIsCalculating
      AcceptDecisionPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListNotSplitted
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      StopPackingList
      Tic
      DeliverPackingList
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      StartInvoice
      Tic
      StopInvoice
      Tic
      DeliverInvoice
      Tic
      CheckInvoiceNotSplitted
      CheckInvoiceIsNotDivergent
      CheckInvoiceIsSolved
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_11_AcceptDecisionOnPackingListAndInvoice (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1601, in test_11_AcceptDecisionOnPackingListAndInvoice
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      CheckInvoicingRule
      DecreasePackingListLineQuantity
      SetContainerFullQuantity
      CheckPackingListIsCalculating
      AcceptDecisionPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListNotSplitted
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      StopPackingList
      Tic
      DeliverPackingList
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      IncreaseInvoiceLineQuantity
      Tic
      CheckInvoiceIsDiverged
      AcceptDecisionInvoice
      Tic
      StartInvoice
      Tic
      StopInvoice
      Tic
      DeliverInvoice
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      CheckInvoiceNotSplitted
      CheckInvoiceIsNotDivergent
      CheckInvoiceIsSolved
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_12_SplitPackingListAndAcceptInvoice (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1709, in test_12_SplitPackingListAndAcceptInvoice
    self.playSequence(sequence, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      CheckInvoicingRule
      DecreasePackingListLineQuantity
      SetContainerFullQuantity
      CheckPackingListIsCalculating
      SplitAndDeferPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      StopPackingList
      Tic
      DeliverPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListSplitted
      IncreaseInvoiceLineQuantity
      CheckInvoiceIsCalculating
      AcceptDecisionInvoice
      Tic
      StartInvoice
      Tic
      StopInvoice
      Tic
      DeliverInvoice
      Tic
      CheckInvoiceIsSolved
      CheckInvoiceNotSplitted
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
      SwitchPackingLists
      AddPackingListContainer
      SetContainerFullQuantity
      Tic
      CheckPackingListIsSolved
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      StopPackingList
      Tic
      DeliverPackingList
      Tic
      CheckPackingListIsSolved
      SetInvoiceLineQuantityToZero
      CheckInvoiceIsCalculating
      AcceptDecisionInvoice
      Tic
      StartInvoice
      Tic
      StopInvoice
      Tic
      DeliverInvoice
      Tic
      CheckInvoiceIsSolved
      CheckInvoiceNotSplitted
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_13_SplitAndDeferInvoice (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1778, in test_13_SplitAndDeferInvoice
    self.playSequence(sequence, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testAccountingRules.py", line 102, in playSequence
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      StopPackingList
      Tic
      DeliverPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListNotSplitted
      DecreaseInvoiceLineQuantity
      CheckInvoiceIsDivergent
      CheckInvoiceIsCalculating
      SplitAndDeferInvoice
      Tic
      StartInvoice
      Tic
      StopInvoice
      Tic
      DeliverInvoice
      Tic
      CheckInvoiceIsNotDivergent
      CheckInvoiceIsSolved
      CheckInvoiceSplitted
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      SwitchInvoices
      StartInvoice
      Tic
      StopInvoice
      Tic
      DeliverInvoice
      Tic
      CheckInvoiceIsNotDivergent
      CheckInvoiceIsSolved
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_14_AcceptDecisionOnInvoice (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1844, in test_14_AcceptDecisionOnInvoice
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      CheckInvoiceTransactionRule
      Tic
      CheckInvoiceBuilding
      StopPackingList
      Tic
      DeliverPackingList
      Tic
      CheckPackingListIsSolved
      CheckPackingListNotSplitted
      DecreaseInvoiceLineQuantity
      CheckInvoiceIsDivergent
      CheckInvoiceIsCalculating
      AcceptDecisionInvoice
      Tic
      StartInvoice
      Tic
      StopInvoice
      Tic
      DeliverInvoice
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      CheckInvoiceTransactionRule
      CheckInvoiceNotSplitted
      CheckInvoiceIsNotDivergent
      CheckInvoiceIsSolved
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_16_ManuallyAddedMovements (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1919, in test_16_ManuallyAddedMovements
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      RebuildAndCheckNothingIsCreated
      CheckInvoicesConsistency
      AddInvoiceLines
      Tic
      StartInvoice
      Tic
      CheckSimulationTrees
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_17_ManuallyAddedWrongMovements (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1946, in test_17_ManuallyAddedWrongMovements
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      AddWrongInvoiceLines
      Tic
      StartInvoice
      CheckStartInvoiceFail
      CheckSimulationTrees
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_18_compareInvoiceAndPackingList (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1969, in test_18_compareInvoiceAndPackingList
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
      CheckDeliveryBuilding
      ConfirmOrder
      Tic
      CheckOrderRule
      CheckOrderSimulation
      CheckDeliveryBuilding
      AddPackingListContainer
      AddPackingListContainerLine
      SetContainerLineFullQuantity
      Tic
      CheckPackingListIsPacked
      SetReadyPackingList
      Tic
      StartPackingList
      CheckInvoicingRule
      Tic
      CheckInvoiceBuilding
      CheckInvoicesConsistency
      CheckPackingListInvoice
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_19_invoice_transaction_line_resource (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1994, in test_19_invoice_transaction_line_resource
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_20_modify_planned_order_invoicing_rule (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 2033, in test_20_modify_planned_order_invoicing_rule
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_21_modify_planned_order_invoice_transaction_rule (testInvoice.TestInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInvoice.py", line 2212, in test_21_modify_planned_order_invoice_transaction_rule
    sequence_list.play(self, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateEntities
      CreateCurrency
      CreateSaleInvoiceTransactionRule
      CreateOrder
      SetOrderProfile
      SetOrderPriceCurrency
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
    > SetOrderLineDefaultValues
      OrderOrder
      Tic
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 434, in stepSetOrderLineDefaultValues
    price=self.default_price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 105, in edit
    return self._edit(REQUEST=REQUEST, force_update=force_update, reindex_object=reindex_object, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 97, in _edit
    force_update = force_update, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 681, in getPriceCalculationOperandDict
    price_parameter_dict = self.getPriceParameterDict(
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_01_getInventory (testInventory.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventory.py", line 1839, in test_01_getInventory
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisationList
      CreateOrder
      CreateVariatedResourceList
      CreatePackingListList
      Tic
      CreateTestingCategories
      Tic
      TestInventoryListBrainGetQuantity
      TestGetInventoryOnNode
      TestGetInventoryOnVariationCategory
      TestGetInventoryOnPayment
      TestGetInventoryOnSection
      TestGetInventoryOnMirrorSection
      TestGetInventoryOnResource
      TestGetInventoryWithOmitInput
      TestGetInventoryWithOmitOutput
    > TestGetInventoryOnSimulationState
      TestGetInventoryOnSectionCategory
      TestGetInventoryOnPaymentCategory
      TestGetInventoryOnNodeCategory
      TestGetInventoryOnMirrorSectionCategory
      TestGetInventoryOnResourceCategory
      TestGetInventoryOnVariationText
      TestGetInventoryListOnSection
      TestGetInventoryListOnNode
      TestGetInventoryListWithOmitInput
      TestGetInventoryListWithOmitOutput
      TestGetInventoryListWithGroupBy
      TestGetNextNegativeInventoryDate
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventory.py", line 1197, in stepTestGetInventoryOnSimulationState
    self.stepTic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 113, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5Type.Document.DeliveryCell, line 98, in getPrice
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/Movement_getPriceCalculationOperandDict used for /erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1/3/movement_0_2_1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5.Document.Resource, line 681, in getPriceCalculationOperandDict
  Module Products.ERP5.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 45145fb0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_02_InventoryModule (testInventory.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventory.py", line 1870, in test_02_InventoryModule
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisationsForModule
      CreateVariatedResource
      CreateItemList
      CreatePackingListForModule
    > Tic
      CreatePackingListLine
      Tic
      DeliverPackingList
      Tic
      CreateAggregatingInventory
      Tic
      TestInventoryModule
      CreateSingleInventory
      Tic
      TestInventoryModule
      ModifyFirstInventory
      Tic
      TestInventoryModule
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 113, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5Type.Document.DeliveryCell, line 98, in getPrice
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/Movement_getPriceCalculationOperandDict used for /erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1/3/movement_0_2_1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5.Document.Resource, line 681, in getPriceCalculationOperandDict
  Module Products.ERP5.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 45145fb0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_02_InventoryModuleWithVariation (testInventory.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventory.py", line 1895, in test_02_InventoryModuleWithVariation
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisationsForModule
      CreateVariatedResource
    > Tic
      CreatePackingListForModule
      Tic
      CreateVariatedPackingListLine
      Tic
      DeliverPackingList
      Tic
      TestInitialVariatedInventory
      CreateSingleVariatedInventory
      Tic
      TestVariatedInventoryAfterInventory
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 113, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5Type.Document.DeliveryCell, line 98, in getPrice
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/Movement_getPriceCalculationOperandDict used for /erp5_portal_ece883e68dc159e5a16ab282e5a55eeb/sale_packing_list_module/1/3/movement_0_2_1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5.Document.Resource, line 681, in getPriceCalculationOperandDict
  Module Products.ERP5.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 45145fb0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_01_NotVariatedInventory (testInventoryModule.TestInventoryModule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryModule.py", line 238, in test_01_NotVariatedInventory
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateNotVariatedResource
      CreateOrganisation1
      CreateInitialMovements
    > Tic
      CreateFirstNotVariatedInventory
      Tic
      CheckFirstNotVariatedInventory
      CreateSecondNotVariatedInventory
      Tic
      CheckSecondNotVariatedInventory
      ModifySecondNotVariatedInventory
      Tic
      CheckSecondNotVariatedInventoryModified
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 113, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/Movement_getPriceCalculationOperandDict used for /erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5.Document.Resource, line 681, in getPriceCalculationOperandDict
  Module Products.ERP5.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 451675c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_02_VariatedInventory (testInventoryModule.TestInventoryModule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryModule.py", line 374, in test_02_VariatedInventory
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateVariatedResource
      CreateOrganisation1
      CreateInitialMovements
    > Tic
      CreateFirstVariatedInventory
      Tic
      CheckFirstVariatedInventory
      CreateSecondVariatedInventory
      Tic
      CheckSecondVariatedInventory
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 113, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/Movement_getPriceCalculationOperandDict used for /erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5.Document.Resource, line 681, in getPriceCalculationOperandDict
  Module Products.ERP5.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 452ac950>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_03_VariatedAggregatedInventory (testInventoryModule.TestInventoryModule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryModule.py", line 536, in test_03_VariatedAggregatedInventory
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateVariatedResource
      CreateOrganisation1
      CreateInitialMovements
    > Tic
      CreateItem
      CreateItem
      CreateFirstVariatedAggregatedInventory
      Tic
      CheckFirstVariatedAggregatedInventory
      CreateSecondVariatedAggregatedInventory
      Tic
      CheckSecondVariatedAggregatedInventory
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 113, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/21', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/41', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/42', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/22', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/43', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/44', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/23', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/45', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/46', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/24', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/47', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/48', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/25', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/49', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/50', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/26', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/51', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/52', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/27', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/53', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/54', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/28', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/55', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/56', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/29', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/57', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/58', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/30', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/59', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/60', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/41', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/42', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/43', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/44', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/45', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/46', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/47', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/48', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/49', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/50', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/51', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/52', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/53', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/54', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/55', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/56', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/57', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/58', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/59', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/60', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/41', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/42', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/43', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/44', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/45', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/46', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/47', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/48', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/49', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/50', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/51', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/52', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/53', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/54', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/55', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/56', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/57', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/58', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/59', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/60', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/Movement_getPriceCalculationOperandDict used for /erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/60/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5.Document.Resource, line 681, in getPriceCalculationOperandDict
  Module Products.ERP5.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 451675c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_04_VariatedAggregatedInventoryGetInventoryList (testInventoryModule.TestInventoryModule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryModule.py", line 564, in test_04_VariatedAggregatedInventoryGetInventoryList
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateVariatedResource
      CreateOrganisation1
      CreateInitialMovements
    > Tic
      CreateItem
      CreateItem
      CreateFirstVariatedAggregatedInventory
      Tic
      CheckFirstVariatedAggregatedInventory
      CheckExplanationTextInInventoryList
      CreateSecondVariatedAggregatedInventory
      Tic
      CheckSecondVariatedAggregatedInventory
      CheckExplanationTextInInventoryList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testOrder.py", line 113, in stepTic
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/21', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/41', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/42', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/22', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/43', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/44', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/23', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/45', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/46', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/24', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/47', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/48', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/25', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/49', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/50', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/26', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/51', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/52', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/27', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/53', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/54', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/28', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/55', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/56', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/29', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/57', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/58', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/30', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/59', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/60', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/31', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/61', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/62', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/32', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/63', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/64', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/33', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/65', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/66', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/34', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/67', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/68', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/35', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/69', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/70', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/36', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/71', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/72', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/37', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/73', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/74', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/38', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/75', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/76', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/39', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/77', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/78', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/40', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/79', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/80', 'updateCausalityState', -1, 1), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/1', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/2', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/3', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/4', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/5', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/6', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/7', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/8', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/9', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/10', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/11', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/12', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/13', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/14', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/15', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/16', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/31', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/32', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/17', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/33', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/34', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/18', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/35', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/36', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/19', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/37', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/38', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/20', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/39', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/40', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/41', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/42', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/43', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/44', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/45', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/46', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/47', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/48', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/49', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/50', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/51', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/52', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/53', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/54', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/55', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/56', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/57', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/58', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/59', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/60', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/21', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/41', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/42', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/22', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/43', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/44', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/23', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/45', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/46', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/24', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/47', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/48', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/25', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/49', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/50', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/26', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/51', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/52', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/27', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/53', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/54', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/28', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/55', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/56', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/29', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/57', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/58', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/30', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/59', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/60', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/31', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/61', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/62', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/32', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/63', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/64', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/33', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/65', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/66', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/34', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/67', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/68', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/35', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/69', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/70', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/36', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/71', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/72', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/37', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/73', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/74', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/38', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/75', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/76', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/39', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/77', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/78', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/40', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/79', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/80', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/31', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/61', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/62', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/32', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/63', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/64', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/33', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/65', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/66', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/34', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/67', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/68', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/35', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/69', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/70', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/36', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/71', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/72', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/37', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/73', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/74', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/38', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/75', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/76', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/39', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/77', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/78', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/purchase_packing_list_module/40', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/79', 'expand', -2, 6), ('/erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/80', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/Movement_getPriceCalculationOperandDict used for /erp5_portal_532a9c13a4fc7140fcc8a50fa0600727/sale_packing_list_module/80/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5.Document.Resource, line 681, in getPriceCalculationOperandDict
  Module Products.ERP5.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453aea40>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_discount_line_consistency (testTradeCondition.TestApplyTradeConditionSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 389, in test_discount_line_consistency
    self.assertEquals([], discount_line.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_discount_model_line_consistency (testTradeCondition.TestApplyTradeConditionSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 322, in test_discount_model_line_consistency
    self.assertEquals([], discount_model_line.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_consistency (testTradeCondition.TestApplyTradeConditionSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 363, in test_tax_line_consistency
    self.assertEquals([], tax_line.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_model_line_consistency (testTradeCondition.TestApplyTradeConditionSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 309, in test_tax_model_line_consistency
    self.assertEquals([], tax_model_line.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_view_discount_line (testTradeCondition.TestApplyTradeConditionSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 402, in test_view_discount_line
    discount_line.view()
  File "/usr/lib/zope/lib/python/Products/CMFCore/PortalContent.py", line 117, in view
    return self()
  File "/usr/lib/zope/lib/python/Products/CMFCore/PortalContent.py", line 109, in __call__
    return method()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 533, in __call__
    def __call__(self, *args, **kwargs):
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 571, in __call__
    return pt.pt_render(extra_context=extra_context)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/PageTemplate.py", line 96, in pt_render
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 190, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 650, in do_defineMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 702, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 613, in do_loop_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 637, in do_condition
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 613, in do_loop_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 637, in do_condition
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 460, in do_setLocal_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/TALES.py", line 221, in evaluate
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/ZRPythonExpr.py", line 47, in __call__
  File "Python expression "field.render_htmlgrid(value, request)"", line 1, in <expression>
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/FormulatorPatch.py", line 1464, in Field_render_htmlgrid
    value = self._get_default(widget_key, value, REQUEST)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 318, in _get_default
    return self.get_value('default', REQUEST=REQUEST) # It was missing on Formulator
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/ProxyField.py", line 679, in get_value
    return value(field, id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 203, in __call__
    value = ob.getProperty(self.key)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_view_tax_line (testTradeCondition.TestApplyTradeConditionSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 376, in test_view_tax_line
    tax_line.view()
  File "/usr/lib/zope/lib/python/Products/CMFCore/PortalContent.py", line 117, in view
    return self()
  File "/usr/lib/zope/lib/python/Products/CMFCore/PortalContent.py", line 109, in __call__
    return method()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 533, in __call__
    def __call__(self, *args, **kwargs):
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 571, in __call__
    return pt.pt_render(extra_context=extra_context)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/PageTemplate.py", line 96, in pt_render
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 190, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 650, in do_defineMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 702, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 613, in do_loop_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 637, in do_condition
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 613, in do_loop_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 637, in do_condition
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 460, in do_setLocal_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/TALES.py", line 221, in evaluate
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/ZRPythonExpr.py", line 47, in __call__
  File "Python expression "field.render_htmlgrid(value, request)"", line 1, in <expression>
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/FormulatorPatch.py", line 1464, in Field_render_htmlgrid
    value = self._get_default(widget_key, value, REQUEST)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 318, in _get_default
    return self.get_value('default', REQUEST=REQUEST) # It was missing on Formulator
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/ProxyField.py", line 679, in get_value
    return value(field, id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 203, in __call__
    value = ob.getProperty(self.key)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_discount_line_consistency (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 389, in test_discount_line_consistency
    self.assertEquals([], discount_line.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_discount_model_line_consistency (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 322, in test_discount_model_line_consistency
    self.assertEquals([], discount_model_line.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_consistency (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 363, in test_tax_line_consistency
    self.assertEquals([], tax_line.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_model_line_consistency (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 309, in test_tax_model_line_consistency
    self.assertEquals([], tax_model_line.checkConsistency())
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_view_discount_line (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 402, in test_view_discount_line
    discount_line.view()
  File "/usr/lib/zope/lib/python/Products/CMFCore/PortalContent.py", line 117, in view
    return self()
  File "/usr/lib/zope/lib/python/Products/CMFCore/PortalContent.py", line 109, in __call__
    return method()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 533, in __call__
    def __call__(self, *args, **kwargs):
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 571, in __call__
    return pt.pt_render(extra_context=extra_context)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/PageTemplate.py", line 96, in pt_render
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 190, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 650, in do_defineMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 702, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 613, in do_loop_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 637, in do_condition
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 613, in do_loop_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 637, in do_condition
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 460, in do_setLocal_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/TALES.py", line 221, in evaluate
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/ZRPythonExpr.py", line 47, in __call__
  File "Python expression "field.render_htmlgrid(value, request)"", line 1, in <expression>
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/FormulatorPatch.py", line 1464, in Field_render_htmlgrid
    value = self._get_default(widget_key, value, REQUEST)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 318, in _get_default
    return self.get_value('default', REQUEST=REQUEST) # It was missing on Formulator
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/ProxyField.py", line 679, in get_value
    return value(field, id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 203, in __call__
    value = ob.getProperty(self.key)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_view_tax_line (testTradeCondition.TestApplyTradeConditionPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 376, in test_view_tax_line
    tax_line.view()
  File "/usr/lib/zope/lib/python/Products/CMFCore/PortalContent.py", line 117, in view
    return self()
  File "/usr/lib/zope/lib/python/Products/CMFCore/PortalContent.py", line 109, in __call__
    return method()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 533, in __call__
    def __call__(self, *args, **kwargs):
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 571, in __call__
    return pt.pt_render(extra_context=extra_context)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/PageTemplate.py", line 96, in pt_render
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 190, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 650, in do_defineMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 702, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 694, in do_defineSlot
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 613, in do_loop_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 637, in do_condition
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 613, in do_loop_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 671, in do_useMacro
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 637, in do_condition
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 409, in do_optTag_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 394, in do_optTag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 389, in no_tag
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 234, in interpret
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/TAL/TALInterpreter.py", line 460, in do_setLocal_tal
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/TALES.py", line 221, in evaluate
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PageTemplates/ZRPythonExpr.py", line 47, in __call__
  File "Python expression "field.render_htmlgrid(value, request)"", line 1, in <expression>
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/FormulatorPatch.py", line 1464, in Field_render_htmlgrid
    value = self._get_default(widget_key, value, REQUEST)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 318, in _get_default
    return self.get_value('default', REQUEST=REQUEST) # It was missing on Formulator
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/ProxyField.py", line 679, in get_value
    return value(field, id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Form/Form.py", line 203, in __call__
    value = ob.getProperty(self.key)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_hierarchical_order_line_and_tax_line (testTradeCondition.TestTaxLineCalculationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 752, in test_hierarchical_order_line_and_tax_line
    resource_value=self.resource,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_multiple_order_line_multiple_tax_line (testTradeCondition.TestTaxLineCalculationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 812, in test_multiple_order_line_multiple_tax_line
    base_contribution_value_list=(base_1,))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_order_cell_and_tax_line (testTradeCondition.TestTaxLineCalculationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 698, in test_order_cell_and_tax_line
    resource_value=self.resource,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_simple_tax_model_line_calculation (testTradeCondition.TestTaxLineCalculationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 491, in test_simple_tax_model_line_calculation
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_model_line_calculation_with_two_lines (testTradeCondition.TestTaxLineCalculationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 528, in test_tax_model_line_calculation_with_two_lines
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_on_tax (testTradeCondition.TestTaxLineCalculationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 607, in test_tax_on_tax
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_update_order_line_quantity_update_tax_line (testTradeCondition.TestTaxLineCalculationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 651, in test_update_order_line_quantity_update_tax_line
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_hierarchical_order_line_and_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 752, in test_hierarchical_order_line_and_tax_line
    resource_value=self.resource,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_multiple_order_line_multiple_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 812, in test_multiple_order_line_multiple_tax_line
    base_contribution_value_list=(base_1,))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_order_cell_and_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 698, in test_order_cell_and_tax_line
    resource_value=self.resource,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_simple_tax_model_line_calculation (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 491, in test_simple_tax_model_line_calculation
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_model_line_calculation_with_two_lines (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 528, in test_tax_model_line_calculation_with_two_lines
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_on_tax (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 607, in test_tax_on_tax
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_update_order_line_quantity_update_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 651, in test_update_order_line_quantity_update_tax_line
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_multiple_order_line_multiple_tax_line (testTradeCondition.TestTaxLineCalculationSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 812, in test_multiple_order_line_multiple_tax_line
    base_contribution_value_list=(base_1,))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_order_cell_and_tax_line (testTradeCondition.TestTaxLineCalculationSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 698, in test_order_cell_and_tax_line
    resource_value=self.resource,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_simple_tax_model_line_calculation (testTradeCondition.TestTaxLineCalculationSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 491, in test_simple_tax_model_line_calculation
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_model_line_calculation_with_two_lines (testTradeCondition.TestTaxLineCalculationSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 528, in test_tax_model_line_calculation_with_two_lines
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_on_tax (testTradeCondition.TestTaxLineCalculationSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 607, in test_tax_on_tax
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_update_order_line_quantity_update_tax_line (testTradeCondition.TestTaxLineCalculationSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 651, in test_update_order_line_quantity_update_tax_line
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_multiple_order_line_multiple_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 812, in test_multiple_order_line_multiple_tax_line
    base_contribution_value_list=(base_1,))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_order_cell_and_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 698, in test_order_cell_and_tax_line
    resource_value=self.resource,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_simple_tax_model_line_calculation (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 491, in test_simple_tax_model_line_calculation
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_model_line_calculation_with_two_lines (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 528, in test_tax_model_line_calculation_with_two_lines
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_on_tax (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 607, in test_tax_on_tax
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_update_order_line_quantity_update_tax_line (testTradeCondition.TestTaxLineCalculationPurchaseInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 651, in test_update_order_line_quantity_update_tax_line
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_2_tax_lines_simulation (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 973, in test_2_tax_lines_simulation
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_build (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1052, in test_tax_line_build
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_build_accounting (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1123, in test_tax_line_build_accounting
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_merged_build (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1215, in test_tax_line_merged_build
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_simulation (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 893, in test_tax_line_simulation
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_updated_on_invoice_line_change (testTradeCondition.TestTaxLineOrderSimulationSaleOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1290, in test_tax_line_updated_on_invoice_line_change
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_2_tax_lines_simulation (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 973, in test_2_tax_lines_simulation
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_build (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1052, in test_tax_line_build
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_build_accounting (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1123, in test_tax_line_build_accounting
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_merged_build (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1215, in test_tax_line_merged_build
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_simulation (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 893, in test_tax_line_simulation
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_updated_on_invoice_line_change (testTradeCondition.TestTaxLineOrderSimulationPurchaseOrder)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1290, in test_tax_line_updated_on_invoice_line_change
    price=15,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/OrderLine.py", line 97, in _getTotalPrice
    fast=fast)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_simulation (testTradeCondition.TestTaxLineInvoiceSimulationPurchaseInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1365, in test_tax_line_simulation
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_tax_line_simulation (testTradeCondition.TestTaxLineInvoiceSimulationSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testTradeCondition.py", line 1365, in test_tax_line_simulation
    price=10,)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 422, in newContent
    return FolderMixIn.newContent(self, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 170, in newContent
    if kw != {} : new_instance._edit(force_update=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 89, in _edit
    self._setResourceValue( kw['resource_value'] )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 9, in Movement_copyBaseContributionFromResource
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Alias.py", line 57, in __call__
    modified_object_list = method(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Accessor/Category.py", line 61, in __call__
    checked_permission=kw.get('checked_permission', None))
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 229, in __call__
    wf[wf_id].notifySuccess(instance, transition_list, result, args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/InteractionWorkflow.py", line 302, in notifySuccess
    script(sci)  # May throw an exception
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Delivery_updateTaxLineList
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 31, in Delivery_updateTaxLineList
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 309, in getTotalPrice
    return self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/DeliveryLine.py", line 120, in _getTotalPrice
    return Movement._getTotalPrice(self, default=default, context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 216, in _getTotalPrice
    price = self.getPrice(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_03_complexItemStructureImmobilisationStateChange (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3187, in test_03_complexItemStructureImmobilisationStateChange
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      DeleteAllPackingLists
      Tic
    > CreateComplexPackingListStructure
      Tic
      UseSecondPackingList
      EditPackingList
      TestPackingListCalculatingImmobilisationState
      UseFirstPackingList
      TestPackingListValidImmobilisationState
      UseThirdPackingList
      TestPackingListValidImmobilisationState
      UseFourthPackingList
      TestPackingListValidImmobilisationState
      Tic
      UseFirstPackingList
      EditPackingList
      TestPackingListCalculatingImmobilisationState
      UseSecondPackingList
      TestPackingListValidImmobilisationState
      UseThirdPackingList
      TestPackingListCalculatingImmobilisationState
      UseFourthPackingList
      TestPackingListCalculatingImmobilisationState
      Tic
      UseThirdPackingList
      EditPackingList
      TestPackingListCalculatingImmobilisationState
      UseFirstPackingList
      TestPackingListValidImmobilisationState
      UseSecondPackingList
      TestPackingListValidImmobilisationState
      UseFourthPackingList
      TestPackingListCalculatingImmobilisationState
      Tic
      EditPackingList
      TestPackingListCalculatingImmobilisationState
      UseFirstPackingList
      TestPackingListValidImmobilisationState
      UseSecondPackingList
      TestPackingListValidImmobilisationState
      UseThirdPackingList
      TestPackingListValidImmobilisationState
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 520, in stepCreateComplexPackingListStructure
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/5', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/5/2>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/3>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_03_complexItemStructureImmobilisationStateChange (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/5', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/5', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/5/2>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/3>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_04_TestContinuousMethodMovementValidity (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3253, in test_04_TestContinuousMethodMovementValidity
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest04SequenceData
      DeleteAllPackingLists
      Tic
    > CreatePackingListsForContinuousAmortisationPeriodList
      Tic
      UseFirstPackingList
      TestPackingListValidImmobilisationState
      UseSecondPackingList
      TestPackingListValidImmobilisationState
      UseThirdPackingList
      TestPackingListValidImmobilisationState
      UseFourthPackingList
      TestPackingListValidImmobilisationState
      UseFirstPackingList
      Test04ModifyPackingList
      UseSecondPackingList
      TestPackingListCalculatingImmobilisationState
      UseThirdPackingList
      TestPackingListCalculatingImmobilisationState
      UseFourthPackingList
      TestPackingListCalculatingImmobilisationState
      Tic
      UseFirstPackingList
      TestPackingListInvalidImmobilisationState
      UseSecondPackingList
      TestPackingListValidImmobilisationState
      UseThirdPackingList
      TestPackingListValidImmobilisationState
      UseFourthPackingList
      TestPackingListValidImmobilisationState
      UseSecondPackingList
      DeletePackingList
      UseFirstPackingList
      TestPackingListInvalidImmobilisationState
      UseThirdPackingList
      TestPackingListInvalidImmobilisationState
      UseFourthPackingList
      TestPackingListCalculatingImmobilisationState
      Tic
      UseThirdPackingList
      TestPackingListInvalidImmobilisationState
      UseFourthPackingList
      TestPackingListInvalidImmobilisationState
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 640, in stepCreatePackingListsForContinuousAmortisationPeriodList
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/6', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/6/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/4>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_04_TestContinuousMethodMovementValidity (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/6', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/6', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/6/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/4>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_05_TestImmobilisationPeriodsWithContinuousMethodDuringContinuousTime (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3274, in test_05_TestImmobilisationPeriodsWithContinuousMethodDuringContinuousTime
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest05SequenceData
    > CreatePackingListsForContinuousAmortisationPeriodList
      Tic
      TestLinearAmortisationImmobilisationPeriods
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 640, in stepCreatePackingListsForContinuousAmortisationPeriodList
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/7', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/7/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/5>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_05_TestImmobilisationPeriodsWithContinuousMethodDuringContinuousTime (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/7', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/7', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/7/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/5>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_06_TestImmobilisationPeriodsWithContinuousMethodDuringUncontinuousTime (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3296, in test_06_TestImmobilisationPeriodsWithContinuousMethodDuringUncontinuousTime
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest06SequenceData
    > CreatePackingListsForUncontinuousAmortisationPeriodList
      Tic
      TestLinearAmortisationImmobilisationPeriodsUncontinuous
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 709, in stepCreatePackingListsForUncontinuousAmortisationPeriodList
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/8', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/8/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/6>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_06_TestImmobilisationPeriodsWithContinuousMethodDuringUncontinuousTime (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/8', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/8', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/8/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/6>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_07_TestImmobilisationPeriodsWithUncontinuousMethodDuringContinuousTime (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3319, in test_07_TestImmobilisationPeriodsWithUncontinuousMethodDuringContinuousTime
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest07SequenceData
    > CreatePackingListsForContinuousAmortisationPeriodList
      Tic
      TestDegressiveAmortisationImmobilisationPeriods
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 640, in stepCreatePackingListsForContinuousAmortisationPeriodList
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/9', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/9/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/7>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_07_TestImmobilisationPeriodsWithUncontinuousMethodDuringContinuousTime (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/9', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/9', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/9/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/7>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_08_TestImmobilisationPeriodsWithUncontinuousMethodDuringUncontinuousTime (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3342, in test_08_TestImmobilisationPeriodsWithUncontinuousMethodDuringUncontinuousTime
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest08SequenceData
    > CreatePackingListsForUncontinuousAmortisationPeriodList
      Tic
      TestDegressiveAmortisationImmobilisationPeriodsUncontinuous
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 709, in stepCreatePackingListsForUncontinuousAmortisationPeriodList
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/10', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/10/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/8>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_08_TestImmobilisationPeriodsWithUncontinuousMethodDuringUncontinuousTime (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/10', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/10', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/10/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/8>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_09_TestAmortisationPriceAndSimulationForLinearAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3362, in test_09_TestAmortisationPriceAndSimulationForLinearAmortisation
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest09SequenceData
    > CreatePackingListsForSimpleItemImmobilisation
      Tic
      TestLinearAmortisationPriceCalculation
      TestLinearAmortisationSimulationBuild
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 775, in stepCreatePackingListsForSimpleItemImmobilisation
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/11', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/11/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/9>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_09_TestAmortisationPriceAndSimulationForLinearAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/11', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/11', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/11/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/9>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_10_TestAmortisationPriceForDegressiveAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3382, in test_10_TestAmortisationPriceForDegressiveAmortisation
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest10SequenceData
    > CreatePackingListsForSimpleItemImmobilisation
      Tic
      TestDegressiveAmortisationPriceCalculation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 775, in stepCreatePackingListsForSimpleItemImmobilisation
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/12', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/12/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/10>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_10_TestAmortisationPriceForDegressiveAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/12', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/12', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/12/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/10>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_11_TestAmortisationPriceAndSimulationForUncontinuousDegressiveAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3403, in test_11_TestAmortisationPriceAndSimulationForUncontinuousDegressiveAmortisation
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest11SequenceData
    > CreatePackingListsForSimpleItemImmobilisation
      Tic
      TestUncontinuousDegressiveAmortisationPriceCalculation
      TestUncontinuousDegressiveAmortisationSimulationBuild
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 775, in stepCreatePackingListsForSimpleItemImmobilisation
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/13', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/13/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/11>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_11_TestAmortisationPriceAndSimulationForUncontinuousDegressiveAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/13', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/13', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/13/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/11>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_12_TestAmortisationPriceForActualUseDegressiveAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3424, in test_12_TestAmortisationPriceForActualUseDegressiveAmortisation
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest12SequenceData
    > CreatePackingListsForSimpleItemImmobilisation
      Tic
      TestActualUseAmortisationPriceCalculation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 775, in stepCreatePackingListsForSimpleItemImmobilisation
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/14', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/14/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/12>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_12_TestAmortisationPriceForActualUseDegressiveAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/14', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/14', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/14/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/12>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_13_TestAmortisationPriceForNoAmortisationMethod (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3444, in test_13_TestAmortisationPriceForNoAmortisationMethod
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest13SequenceData
    > CreatePackingListsForSimpleItemImmobilisation
      Tic
      TestNoAmortisationMethodPriceCalculation
      TestNoAmortisationMethodSimulationBuild
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 775, in stepCreatePackingListsForSimpleItemImmobilisation
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/15', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/15/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/13>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_13_TestAmortisationPriceForNoAmortisationMethod (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/15', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/15', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/15/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/13>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_14_TestOwnerChangeSimulationForContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3483, in test_14_TestOwnerChangeSimulationForContinuousAmortisationMethod
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest14SequenceData
    > CreatePackingListsForSimulationTest
      Tic
      TestSimulationBuildForContinuousMethodWithoutOwnerChange
      ChangeCurrentPackingListDestinationSectionForOwnerChange
      Tic
      TestSimulationBuildForContinuousMethodWithOwnerChange
      ChangeCurrentPackingListDestinationSectionForActualOwnerChange
      Tic
      TestSimulationBuildForContinuousMethodWithActualOwnerChange
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 837, in stepCreatePackingListsForSimulationTest
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/16', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/16/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/14>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_14_TestOwnerChangeSimulationForContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/16', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/16', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/16/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/14>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_15_TestOwnerChangeSimulationForUnContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3510, in test_15_TestOwnerChangeSimulationForUnContinuousAmortisationMethod
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest15SequenceData
    > CreatePackingListsForSimulationTest
      Tic
      TestSimulationBuildForUncontinuousMethodWithoutOwnerChange
      ChangeCurrentPackingListDestinationSectionForOwnerChange
      Tic
      TestSimulationBuildForUncontinuousMethodWithOwnerChange
      ChangeCurrentPackingListDestinationSectionForActualOwnerChange
      Tic
      TestSimulationBuildForUncontinuousMethodWithActualOwnerChange
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 837, in stepCreatePackingListsForSimulationTest
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/17', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/17/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/15>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_15_TestOwnerChangeSimulationForUnContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/17', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/17', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/17/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/15>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_16_TestOwnerChangeSimulationForContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3536, in test_16_TestOwnerChangeSimulationForContinuousAmortisationMethod
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest16SequenceData
    > CreatePackingListsForNoChangeMethodSimulationTest
      Tic
      TestSimulationBuildForNoChangeMethodWithoutOwnerChange
      ChangeCurrentPackingListDestinationSectionForOwnerChange
      Tic
      TestSimulationBuildForNoChangeMethodWithOwnerChange
      ChangeCurrentPackingListDestinationSectionForActualOwnerChange
      Tic
      TestSimulationBuildForNoChangeMethodWithActualOwnerChange
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 877, in stepCreatePackingListsForNoChangeMethodSimulationTest
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/18', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/18/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/16>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_16_TestOwnerChangeSimulationForContinuousAmortisationMethod (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/18', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/18', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/18/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/16>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_17_TestMonthlyAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3556, in test_17_TestMonthlyAmortisation
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest17SequenceData
    > CreatePackingListsForMonthlyAmortisationTest
      Tic
      TestSimulationBuildForMonthlyAmortisation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 936, in stepCreatePackingListsForMonthlyAmortisationTest
    self.stepDeliverPackingList(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 462, in stepDeliverPackingList
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/19', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/19/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/17>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_17_TestMonthlyAmortisation (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/19', 'updateCausalityState', -1, 1), ('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/19', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/19/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/17>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_18_TestAccountingBuilding (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3603, in test_18_TestAccountingBuilding
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest18SequenceData
      DeleteAllPackingLists
      Tic
      TestAllAppliedRulesAreEmpty
      CreatePackingList
      DeliverPackingList
    > AggregateItems
      Tic
      PartialBuildAccounting
      Tic
      TestPartialAccountingBuild
      DeleteAccounting
      Tic
      BuildAccounting
      Tic
      TestMultiItemAccountingBuild
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 498, in stepAggregateItems
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/20', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/20/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/18>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_18_TestAccountingBuilding (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/20', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/20/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/18>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_19BIS_TestAccountingBuildAndOwngerChange (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3740, in test_19BIS_TestAccountingBuildAndOwngerChange
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest19SequenceData
      DeleteAccounting
      Tic
      DeleteAllPackingLists
      Tic
      TestAllAppliedRulesAreEmpty
      CreatePackingList
      DeliverPackingList
    > AggregateItems
      Tic
      SetTest19SequenceData2
      CreatePackingList
      DeliverPackingList
      AggregateItems
      Tic
      BuildAccounting
      Tic
      TestAccountingSectionStatistics
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 498, in stepAggregateItems
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/21', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/21/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/19>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_19BIS_TestAccountingBuildAndOwngerChange (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/21', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/21/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/19>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_19_TestAccountingBuildingAndDivergence (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3711, in test_19_TestAccountingBuildingAndDivergence
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest19SequenceData
      DeleteAccounting
      Tic
      DeleteAllPackingLists
      Tic
      TestAllAppliedRulesAreEmpty
      CreatePackingList
      DeliverPackingList
    > AggregateItems
      Tic
      BuildAccounting
      Tic
      TestSimpleAccountingBuild
      SetTest19SequenceData2
      CreatePackingList
      DeliverPackingList
      AggregateItems
      Tic
      TestSimulationBuildAfterFirstAccountingChange
      BuildAccounting
      Tic
      TestAccountingBuildAfterFirstChange
      DeletePackingList
      Tic
      TestSimulationBuildAfterSecondAccountingChange
      BuildAccounting
      Tic
      TestAccountingBuildAfterSecondChange
      AdoptPrevision
      Tic
      TestAccountingBuildAfterAdoptPrevision
      Test19ModifyPackingList
      Tic
      TestSimulationBuildAfterPackingListModification
      BuildAccounting
      Tic
      TestAccountingBuildAfterPackingListModification
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 498, in stepAggregateItems
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/22', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/22/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/20>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_19_TestAccountingBuildingAndDivergence (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/22', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/22/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/20>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_20_TestAccountingAcceptDecisionSolver (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3787, in test_20_TestAccountingAcceptDecisionSolver
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest20SequenceData
      DeleteAccounting
      Tic
      DeleteAllPackingLists
      Tic
      TestAllAppliedRulesAreEmpty
      CreatePackingList
      DeliverPackingList
    > AggregateItems
      Tic
      BuildAccounting
      Tic
      ConfirmAmortisationTransaction
      Tic
      TestSimpleAccountingBuild
      ChangeAccountingPrice
      Tic
      AcceptDecision
      Tic
      TestSimulationBuildAfterAcceptDecision
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 498, in stepAggregateItems
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/23', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/23/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/21>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_20_TestAccountingAcceptDecisionSolver (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/23', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/23/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/21>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 4509a2c0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_21_TestSimulationBuildingWithValidatedTransactions (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 3871, in test_21_TestSimulationBuildingWithValidatedTransactions
    sequence_list.play(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 166, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 113, in play
    step.play(context, sequence=self, quiet=quiet)
    Current Sequence:
      SetTest21SequenceData
      DeleteAccounting
      Tic
      DeleteAllPackingLists
      Tic
      TestAllAppliedRulesAreEmpty
      CreatePackingList
      DeliverPackingList
    > AggregateItems
      Tic
      BuildAccounting
      Tic
      TestSimpleAccountingBuild
      ValidateAccounting
      Tic
      Test21FirstModifyPackingList
      Tic
      TestFirstSimulationBuildAfterAccountingValidation
      Test21SecondModifyPackingList
      Tic
      TestSecondSimulationBuildAfterAccountingValidation
      Test21ThirdModifyPackingList
      Tic
      TestThirdSimulationBuildAfterAccountingValidation
      Test21FourthModifyPackingList
      Tic
      TestFourthSimulationBuildAfterAccountingValidation
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/Sequence.py", line 99, in play
    method(sequence=sequence)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 498, in stepAggregateItems
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/24', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/24/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/22>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: test_21_TestSimulationBuildingWithValidatedTransactions (testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 93, in __call__
    self.tearDown()
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/base.py", line 90, in tearDown
    self.beforeTearDown()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testImmobilisation.py", line 247, in beforeTearDown
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/24', 'expand', -2, 6)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Products.ERP5.Document.Delivery, line 750, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5.Document.Delivery, line 758, in _expand
  Module Products.ERP5Type.Document.AppliedRule, line 98, in expand
  Module Products.ERP5Type.UnrestrictedMethod, line 97, in __call__
  Module Products.ERP5Type.Document.AppliedRule, line 114, in _expand
  Module Products.ERP5Type.Document.DeliveryRule, line 136, in expand
  Module Products.ERP5Type.Base, line 214, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Movement_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/purchase_packing_list_module/24/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /erp5_portal_dda7662059c087a3f538e6be675d05b5/Resource_getPriceCalculationOperandDict used for /erp5_portal_dda7662059c087a3f538e6be675d05b5/product_module/22>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 453750e0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





ERROR: testPrecision (testInventoryAPI.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 513, in testPrecision
    self._makeMovement( quantity=0.1234, price=1 )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testPrecisionAndFloatRoundingIssues (testInventoryAPI.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 525, in testPrecisionAndFloatRoundingIssues
    self._makeMovement( quantity=1, price=1 )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_OmitInputOmitOutput (testInventoryAPI.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 534, in test_OmitInputOmitOutput
    self._makeMovement(quantity=1, price=1)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_OmitInputOmitOutputWithDifferentPayment (testInventoryAPI.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 581, in test_OmitInputOmitOutputWithDifferentPayment
    destination_payment_value=self.payment_node )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection (testInventoryAPI.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 609, in test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection
    destination_payment_value=self.payment_node )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_OmitInputOmitOutputWithDifferentSections (testInventoryAPI.TestInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 561, in test_OmitInputOmitOutputWithDifferentSections
    self._makeMovement(quantity=2, price=1)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_CurentAvailableFutureInventoryList (testInventoryAPI.TestInventoryList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 813, in test_CurentAvailableFutureInventoryList
    makeMovement(quantity=1, simulation_state='ordered')
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 801, in makeMovement
    simulation_state=simulation_state)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_OmitInputOmitOutput (testInventoryAPI.TestInventoryList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 746, in test_OmitInputOmitOutput
    self._makeMovement(quantity=1, price=1)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection (testInventoryAPI.TestInventoryList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 775, in test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection
    destination_payment_value=self.payment_node )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testPrecision (testInventoryAPI.TestMovementHistoryList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1360, in testPrecision
    self._makeMovement( quantity=0.1234, price=1 )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testPrecisionAndFloatRoundingIssues (testInventoryAPI.TestMovementHistoryList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1383, in testPrecisionAndFloatRoundingIssues
    self._makeMovement( quantity=1, price=1, start_date=date )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testRunningQuantityWithQuantity0 (testInventoryAPI.TestMovementHistoryList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1318, in testRunningQuantityWithQuantity0
    self._makeMovement( quantity=quantity+i, price=1, start_date=date+i )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_OmitInputOmitOutput (testInventoryAPI.TestMovementHistoryList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1396, in test_OmitInputOmitOutput
    self._makeMovement(quantity=1, price=1)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection (testInventoryAPI.TestMovementHistoryList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1425, in test_OmitInputOmitOutputWithDifferentPaymentSameNodeSameSection
    destination_payment_value=self.payment_node )
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: Test that a running_total_price attribute is set on brains
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1271, in test_RunningTotalPrice
    self._makeMovement(stop_date=date, quantity=1, price=price)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: Test running_total_price and running_total_quantity with an initial
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1291, in test_RunningTotalWithInitialValue
    self._makeMovement(stop_date=date, price=quantity, quantity=quantity)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testStockUidQuantity (testInventoryAPI.TestInventoryStat)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1486, in testStockUidQuantity
    makeMovement(quantity=1)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1484, in makeMovement
    destination_value=self.node)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testNode (testInventoryAPI.TestNextNegativeInventoryDate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1463, in testNode
    makeMovement(quantity=1, change_way=1, start_date=date)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1459, in makeMovement
    simulation_state='planned')
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testDates (testInventoryAPI.TestTrackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1560, in testDates
    destination_value=node_1)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testNodeUid (testInventoryAPI.TestTrackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1512, in testNodeUid
    makeMovement(aggregate=self.item)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1506, in makeMovement
    destination_value=self.node)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: testSeveralAggregateOnMovement (testInventoryAPI.TestTrackingList)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1536, in testSeveralAggregateOnMovement
    makeMovement(aggregate_list=[self.item.getRelativeUrl(),
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 1530, in makeMovement
    destination_value=self.node)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/utils.py", line 219, in __call__
    ret = self._func(self._instance, *args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 247, in _makeMovement
    mvt.edit(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 191, in __call__
    return apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1634, in edit
    reindex_object=reindex_object, restricted=1, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 824, in _edit
    XMLObject._edit(self, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1600, in _edit
    unmodified_key_list = setChangedPropertyList(unordered_key_list)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1575, in setChangedPropertyList
    old_value = self.getProperty(key, evaluate=0)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_14_TwoInventoryWithSameDateAndResourceAndNode (testInventoryAPI.TestInventoryDocument)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 2051, in test_14_TwoInventoryWithSameDateAndResourceAndNode
    wf_id=workflow_id)
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 301, in doActionFor
    return self._invokeWithNotification(
  File "/usr/lib/zope/lib/python/Products/CMFCore/WorkflowTool.py", line 616, in _invokeWithNotification
    res = func(*args, **kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 287, in doActionFor
    self._changeStateOf(ob, tdef, kw)
  File "/usr/lib/zope/lib/python/Products/DCWorkflow/DCWorkflow.py", line 472, in _changeStateOf
    sdef = self._executeTransition(ob, tdef, kwargs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DCWorkflow.py", line 324, in DCWorkflowDefinition_executeTransition
    script(sci)  # May throw an exception.
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 7, in validateConsistency
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 3, in Base_checkConsistency
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1214, in checkConsistency
    extra_errors = obj.checkConsistency()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Core/Folder.py", line 1204, in checkConsistency
    error_list += Base.checkConsistency(self, fixit=fixit)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 2638, in checkConsistency
    error_list += constraint_instance.checkConsistency(self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Constraint/PropertyTypeValidity.py", line 108, in checkConsistency
    value = obj.getProperty(property_id)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 1328, in getProperty
    return method(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/Base.py", line 214, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 287, in getPrice
    local_price = self._getPrice(context=self)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 204, in _getPrice
    operand_dict = self.getPriceCalculationOperandDict(context=context)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Movement.py", line 250, in getPriceCalculationOperandDict
    operand_dict = method(**kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 51, in Movement_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 665, in getPriceCalculationOperandDict
    return method(default=default, movement=context, REQUEST=REQUEST, **kw)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 306, in __call__
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 877, in _exec
    return PythonScript_exec(self, *args)
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/Products/PythonScripts/PythonScript.py", line 323, in _exec
  File "Script (Python)", line 1, in Resource_getPriceCalculationOperandDict
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 312, in guarded_apply
  File "/usr/lib/zope/./build/build-base/python-2.4/build-lib/AccessControl/ZopeGuards.py", line 334, in builtin_guarded_apply
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Document/Resource.py", line 600, in getPriceParameterDict
    has_cell_content=0, **tmp_kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 245, in generateMultivaluedMappedValue
    predicate_list = self.searchPredicateList(context, test=test, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5/Tool/DomainTool.py", line 169, in searchPredicateList
    sql_result_list = portal_catalog.searchResults(**kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/CatalogTool.py", line 628, in searchResults
    return ZCatalog.searchResults(self, query=query, sql_catalog_id=catalog_id, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/ZSQLCatalog.py", line 1054, in searchResults
    return apply(catalog.searchResults, (REQUEST,used), kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2150, in searchResults
    return self.queryResults(method, REQUEST=REQUEST, used=used, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZSQLCatalog/SQLCatalog.py", line 2144, in queryResults
    return sql_method(src__=src__, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
    result=DB__.query(query, self.max_rows_)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
    return self._access_db(method_id='query', args=args, kw=kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
    return getattr(db, method_id)(*args, **kw)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
    c = self._query(qs)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ZMySQLDA/db.py", line 393, in _query
    self.db.query(query)
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")



ERROR: test_08_EmbeddedDocumentState (testDms.TestDocument)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5OOo/tests/testDms.py", line 650, in test_08_EmbeddedDocumentState
    document.convert(format='html')
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5OOo/Document/OOoDocument.py", line 404, in convert
    mime, data = self._convert(format)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5OOo/Document/OOoDocument.py", line 333, in _convert
    return response_dict['mime'], Pdata(dec(response_dict['data']))
KeyError: 'mime'



FAIL: test_ShowPreviewAfterSubmitted (testDms.TestDocumentWithSecurity)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5OOo/tests/testDms.py", line 740, in test_ShowPreviewAfterSubmitted
    self.assert_('I use reference to look up TEST' in preview_html)
AssertionError



ERROR: test_Archive (testArchive.TestArchive)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/tests/testArchive.py", line 243, in test_Archive
    self.tic()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 521, in tic
    raise RuntimeError,\
RuntimeError: tic is looping forever. These messages are pending: [('/inventory_api_test/portal_simulation', 'Archive_createInventory', -2, 6), ('/inventory_api_test/portal_catalog', 'finishHotReindexing', -1, 5), ('/inventory_api_test/portal_archives', 'InventoryModule_reindexMovementList', -1, 5)] 
Last error message:
ProgrammingError
(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 235, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 50, in Archive_createInventory
   - <PythonScript at /inventory_api_test/Archive_createInventory used for /inventory_api_test/portal_simulation>
   - Line 50
  Module Products.ERP5Type.Base, line 191, in __call__
  Module Products.ERP5.Document.Movement, line 287, in getPrice
  Module Products.ERP5.Document.Movement, line 204, in _getPrice
  Module Products.ERP5.Document.Movement, line 250, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 51, in Movement_getPriceCalculationOperandDict
   - <PythonScript at /inventory_api_test/Movement_getPriceCalculationOperandDict used for /inventory_api_test/archive_inventory_module/1/1>
   - Line 51
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 665, in getPriceCalculationOperandDict
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 877, in _exec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in Resource_getPriceCalculationOperandDict
   - <PythonScript at /inventory_api_test/Resource_getPriceCalculationOperandDict used for /inventory_api_test/product_module/1>
   - Line 1
  Module AccessControl.ZopeGuards, line 312, in guarded_apply
  Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
  Module Products.ERP5Type.Document.Resource, line 600, in getPriceParameterDict
  Module Products.ERP5.Tool.DomainTool, line 245, in generateMultivaluedMappedValue
  Module Products.ERP5.Tool.DomainTool, line 169, in searchPredicateList
  Module Products.ERP5Catalog.CatalogTool, line 628, in searchResults
  Module Products.ZSQLCatalog.ZSQLCatalog, line 1054, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2150, in searchResults
  Module Products.ZSQLCatalog.SQLCatalog, line 2144, in queryResults
  Module Products.ERP5Type.patches.DA, line 220, in DA__call__
   - <SQL instance at 44e9e9b0>
  Module Products.ZMySQLDA.db, line 295, in query
  Module Products.ZMySQLDA.db, line 286, in _access_db
  Module Products.ZMySQLDA.db, line 421, in query
  Module Products.ZMySQLDA.db, line 393, in _query
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1000' at line 10")





FAIL: test_SearchedStringIsNotStripped (testERP5Catalog.TestERP5Catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2631, in test_SearchedStringIsNotStripped
    compareSet(' foo', [second_doc])
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2629, in compareSet
    self.assertSameSet(document_list, [x.getObject() for x in result])
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 536, in failIfDifferentSet
    self.failUnless(i in b, msg)
AssertionError: [<Organisation at /erp5_portal_87898169f8a6babfe15e14cbf4d59bab/organisation_module/83>] != [<Organisation at /erp5_portal_87898169f8a6babfe15e14cbf4d59bab/organisation_module/82>]



FAIL: test_complex_query (testERP5Catalog.TestERP5Catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2177, in test_complex_query
    self.assertEqual(len(catalog(query=query)), 3)
AssertionError: 2 != 3



FAIL: test_sortOnRelatedKeyWithUnsetRelation (testERP5Catalog.TestERP5Catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 80, in __call__
    testMethod()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2666, in test_sortOnRelatedKeyWithUnsetRelation
    len(person_module.searchFolder(sort_on=[('subordination_title', 'ascending')])))
AssertionError: 2 != 1



ERROR: test_01_HasEverything (testERP5LdapCatalog.TestERP5LdapCatalog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 359, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 723, in setUpERP5Site
    raise RuntimeError, \
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_a28a575dea15f29ef51928ed670935d0/portal_catalog', 'unindexObject', -2, 6), ('/erp5_portal_a28a575dea15f29ef51928ed670935d0/portal_catalog', 'unindexObject', -2, 6)]



ERROR: test_02_person_ldap_cataloging (testERP5LdapCatalog.TestERP5LdapCatalog)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Testing/ZopeTestCase/profiler.py", line 68, in __call__
    self.setUp()
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 359, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/mnt/erp5_cd/buildbot_slave/slave/full.bot_livecd/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 579, in setUpERP5Site
    raise RuntimeError, 'Installation of %s already failed, giving up'\
RuntimeError: Installation of erp5_portal_a28a575dea15f29ef51928ed670935d0 already failed, giving up



More information about the Erp5-report mailing list