[Erp5-report] ERP5-MASTER rNone : 4290 Tests, 50 Errors, 9 Failures, 237 Skips

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 7 08:45:37 CET 2011


Test Suite: ERP5-MASTER
Revision: slapos=1825-6cd565b552991f86f7959df71ec4288c2a89fe17,erp5=40081-90b9a2745ffa96063ff28c50fbd2ef9dba5ff399
Result: FAIL

All tests: 4290
Failures: 9
Errors: 50
Skips: 237

 http://erp5.nexedi.com/test_result_module/20111206-433FFFE5/view


The following tests failed:

  testArchive                                        (1 errors)
   test_Archive (testArchive.TestArchive)

  testContentTranslation                             (1 failures)
   testCatalogSearch (testContentTranslation.TestContentTranslation)

  testERP5BankingAccountingCancellation              (1 errors)
   test_01_ERP5BankingAccountingCancellation (testERP5BankingAccountingCancellation.TestERP5BankingAccountingCancellation)

  testERP5BankingAccountingDate                      (1 errors)
   test_AccountingDate (testERP5BankingAccountingDate.TestERP5BankingAccountingDate)

  testERP5BankingAvailableInventory                  (1 errors)
   test_01_ERP5BankingAvailabeInventory (testERP5BankingAvailableInventory.TestERP5BankingAvailableInventory)

  testERP5BankingBankAccountInventory                (1 errors)
   test_01_ERP5BankingBankAccountInventory (testERP5BankingBankAccountInventory.TestERP5BankingInventory)

  testERP5BankingCashBalanceRegulation               (1 errors)
   test_01_ERP5BankingCashBalanceRegulation (testERP5BankingCashBalanceRegulation.TestERP5BankingCashBalanceRegulation)

  testERP5BankingCashClassification                  (1 errors)
   test_01_ERP5BankingCashClassification (testERP5BankingCashClassification.TestERP5BankingCashClassification)

  testERP5BankingCashExchange                        (1 errors)
   test_01_ERP5BankingCashExchange (testERP5BankingCashExchange.TestERP5BankingCashExchange)

  testERP5BankingCashInventory                       (1 errors)
   test_01_ERP5BankingCashInventory (testERP5BankingCashInventory.TestERP5BankingInventory)

  testERP5BankingCashMovement                        (1 errors)
   test_01_ERP5BankingCashMovement (testERP5BankingCashMovement.TestERP5BankingCashMovement)

  testERP5BankingCashMovementNewNotEmitted           (1 errors)
   test_01_ERP5BankingCashMovementNewNotEmitted (testERP5BankingCashMovementNewNotEmitted.TestERP5BankingCashMovementNewNotEmitted)

  testERP5BankingCashSorting                         (1 errors)
   test_01_ERP5BankingCashSorting (testERP5BankingCashSorting.TestERP5BankingCashSorting)

  testERP5BankingCashToCurrencyPurchase              (1 errors)
   test_01_ERP5BankingCashToCurrencyPurchase (testERP5BankingCashToCurrencyPurchase.TestERP5BankingCashToCurrencyPurchase)

  testERP5BankingCashToCurrencySale                  (1 errors)
   test_01_ERP5BankingCashToCurrencySale (testERP5BankingCashToCurrencySale.TestERP5BankingCashToCurrencySale)

  testERP5BankingCheckDeposit                        (1 errors)
   test_01_ERP5BankingCheckDeposit (testERP5BankingCheckDeposit.TestERP5BankingCheckDeposit)

  testERP5BankingCheckPayment                        (1 errors)
   test_01_ERP5BankingCheckPayment (testERP5BankingCheckPayment.TestERP5BankingCheckPayment)

  testERP5BankingCheckbookDelivery                   (1 errors)
   test_01_ERP5BankingCheckbookDelivery (testERP5BankingCheckbookDelivery.TestERP5BankingCheckbookDelivery)

  testERP5BankingCheckbookReception                  (1 errors)
   test_01_ERP5BankingCheckbookReception (testERP5BankingCheckbookReception.TestERP5BankingCheckbookReception)

  testERP5BankingCheckbookUsualCashTransfer          (1 errors)
   test_01_ERP5BankingCheckbookUsualCashTransfer (testERP5BankingCheckbookUsualCashTransfer.TestERP5BankingCheckbookUsualCashTransfer)

  testERP5BankingCheckbookVaultTransfer              (1 errors)
   test_01_ERP5BankingCheckbookVaultTransfer (testERP5BankingCheckbookVaultTransfer.TestERP5BankingCheckbookVaultTransfer)

  testERP5BankingClassificationSurvey                (1 errors)
   test_01_ERP5BankingClassificationSurvey (testERP5BankingClassificationSurvey.TestERP5BankingClassificationSurvey)

  testERP5BankingCounterDate                         (4 errors)
   test_01_CheckOpenCounterDateTwiceFail (testERP5BankingCounterDate.TestERP5BankingCounterDate)

  testERP5BankingCounterRendering                    (1 errors)
   test_01_ERP5BankingCounterRendering (testERP5BankingCounterRendering.TestERP5BankingCounterRendering)

  testERP5BankingDestructionSurvey                   (1 errors)
   test_01_ERP5BankingDestructionSurvey (testERP5BankingDestructionSurvey.TestERP5BankingDestructionSurvey)

  testERP5BankingForeignCashReception                (1 errors)
   test_01_ERP5BankingForeignCashReception (testERP5BankingForeignCashReception.TestERP5BankingForeignCashReception)

  testERP5BankingInternalMoneyDeposit                (1 errors)
   test_01_ERP5BankingInternalMoneyDeposit (testERP5BankingInternalMoneyDeposit.TestERP5BankingInternalMoneyDeposit)

  testERP5BankingInternalMoneyPayment                (1 errors)
   test_01_ERP5BankingInternalMoneyPayment (testERP5BankingInternalMoneyPayment.TestERP5BankingInternalMoneyPayment)

  testERP5BankingMonetaryDestruction                 (1 errors)
   test_01_ERP5BankingMonetaryDestruction (testERP5BankingMonetaryDestruction.TestERP5BankingMonetaryDestruction)

  testERP5BankingMonetaryIssue                       (1 errors)
   test_01_ERP5BankingMonetaryIssue (testERP5BankingMonetaryIssue.TestERP5BankingMonetaryIssue)

  testERP5BankingMonetaryRecall                      (1 errors)
   test_01_ERP5BankingMonetaryRecall (testERP5BankingMonetaryRecall.TestERP5BankingMonetaryRecall)

  testERP5BankingMonetaryReception                   (1 errors)
   test_01_ERP5BankingMonetaryReception (testERP5BankingMonetaryReception.TestERP5BankingMonetaryReception)

  testERP5BankingMonetarySurvey                      (1 errors)
   test_01_ERP5BankingMonetarySurvey (testERP5BankingMonetarySurvey.TestERP5BankingMonetarySurvey)

  testERP5BankingMoneyDeposit                        (1 errors)
   test_01_ERP5BankingMoneyDeposit (testERP5BankingMoneyDeposit.TestERP5BankingMoneyDeposit)

  testERP5BankingMoneyDepositRendering               (1 errors)
   test_01_ERP5BankingMoneyDepositRendering (testERP5BankingMoneyDepositRendering.TestERP5BankingMoneyDepositRendering)

  testERP5BankingMutilatedBanknote                   (1 errors)
   test_01_ERP5BankingMutilatedBanknote (testERP5BankingMutilatedBanknote.TestERP5BankingMutilatedBanknote)

  testERP5BankingStopPayment                         (1 errors)
   test_01_ERP5BankingStopPayment (testERP5BankingStopPayment.TestERP5BankingStopPayment)

  testERP5BankingTravelerCheckPurchase               (1 errors)
   test_01_ERP5BankingTravelerCheckPurchase (testERP5BankingTravelerCheckPurchase.TestERP5BankingTravelerCheckPurchase)

  testERP5BankingTravelerCheckSale                   (1 errors)
   test_01_ERP5BankingTravelerCheckSale (testERP5BankingTravelerCheckSale.TestERP5BankingTravelerCheckSale)

  testERP5BankingUsualCashRendering                  (1 errors)
   test_01_ERP5BankingUsualCashRendering (testERP5BankingUsualCashRendering.TestERP5BankingUsualCashRendering)

  testERP5BankingUsualCashTransfer                   (1 errors)
   test_01_ERP5BankingUsualCashTransfer (testERP5BankingUsualCashTransfer.TestERP5BankingUsualCashTransfer)

  testERP5BankingVaultTransfer                       (1 errors)
   test_01_ERP5BankingVaultTransfer (testERP5BankingVaultTransfer.TestERP5BankingVaultTransfer)

  testERP5DocumentSyncML                             (1 errors)
   test_03_UpdateSimpleData (testERP5DocumentSyncML.TestERP5DocumentSyncML)

  testERP5LdapCatalog                                (2 errors)
   test_01_HasEverything (testERP5LdapCatalog.TestERP5LdapCatalog), Test has everything

  testERP5Simulation                                 (1 failures)
   test_02_splitAndDeferAfterAcceptDecision (testERP5Simulation.TestERP5Simulation)

  testERP5SyncML                                     (2 errors)
   test_12_UpdateSimpleData (testERP5SyncML.TestERP5SyncML)
   test_30_GetSynchronizationType (testERP5SyncML.TestERP5SyncML)

  testFormPrintoutAsODG                              (1 failures)
   test_01_TextField (testFormPrintoutAsODG.TestFormPrintoutAsODG)

  testLegacyImmobilisation                           (1 errors)
   test_19_TestAccountingBuildingAndDivergence (Products.ERP5.tests.testImmobilisation.TestImmobilisation)

  testLegacyTradeModelLine                           (2 failures)
   test_tradeModelLineWithRounding (Products.ERP5.tests.testTradeModelLine.TestTradeModelLineSale)
   test_tradeModelLineWithRounding (Products.ERP5.tests.testTradeModelLinePurchase.TestTradeModelLinePurchase)

  testResource                                       (1 failures)
   test_11b_getPriceWithCells (testResource.TestResource)

  testSpellChecking                                  (1 failures)
   test_checkSpellChecker (testSpellChecking.TestSpellChecking)

  testTradeModelLine                                 (1 failures)
   test_tradeModelLineWithRounding (testTradeModelLine.TestTradeModelLineSale)

  testTradeModelLinePurchase                         (1 failures)
   test_tradeModelLineWithRounding (testTradeModelLinePurchase.TestTradeModelLinePurchase)

The following tests were at least partly skipped:

  testAccountingRules                                (22 skips)

  testAdvancedInvoicing                              (4 skips)

  testBPMEvaluation                                  (40 skips)
   test_confirming (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_many_transactions (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_same_resource (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_same_resource_edit_again (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition_split (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition_split_line_add (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_transition_split_line_add_split (testBPMEvaluation.TestOrderDefaultProcess) ... skipped 'broken since r39918'
   test_starting (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_many_transactions (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_same_resource (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_same_resource_edit_again (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition_split (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition_split_line_add (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_transition_split_line_add_split (testBPMEvaluation.TestPackingListDefaultProcess) ... skipped 'broken since r39918'
   test_confirming (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_many_transactions (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_same_resource (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_same_resource_edit_again (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition_split (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition_split_line_add (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_transition_split_line_add_split (testBPMEvaluation.TestOrderDifferentProcess) ... skipped 'broken since r39918'
   test_starting (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_many_transactions (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_same_resource (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition_line_edit_add_same_resource_edit_again (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition_split (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition_split_line_add (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'
   test_transition_split_line_add_split (testBPMEvaluation.TestPackingListDifferentProcess) ... skipped 'broken since r39918'

  testBase                                           (3 skips)
   test_NonIndexable (testBase.TestBase), check if a document is not indexed where we set isIndexable=0 in the same transaction of newContent(). ... skipped 'isIndexable is not designed to work like tested here, this test       must be rewritten once we know how to handle correctly templates'
   test_NonIndexable2 (testBase.TestBase), check if a document is not indexed where we call edit() and set isIndexable=0 after it is already indexed. ... skipped 'isIndexable is not designed to work like tested here, this test       must be rewritten once we know how to handle correctly templates'
   test_NonIndexable3 (testBase.TestBase), check if a document is not indexed where we set isIndexable=0 and call edit() after it is already indexed. ... skipped 'isIndexable is not designed to work like tested here, this test       must be rewritten once we know how to handle correctly templates'

  testBusinessTemplate                               (2 skips)

  testCRM                                            (2 skips)

  testConversionInSimulation                         (4 skips)

  testDeliveryBuilderToSupportMultipleLines          (2 skips)

  testDms                                            (2 skips)

  testDmsWithPreConversion                           (2 skips)

  testERP5Base                                       (1 skips)

  testERP5Catalog                                    (4 skips)
   test_49_IndexInOrderedSearchFolder (testERP5Catalog.TestERP5Catalog) ... skipped 'TODO ERP5'
   test_SubDocumentsWithAcquireLocalRoleSecurityIndexing (testERP5Catalog.TestERP5Catalog) ... skipped 'TODO ERP5'
   test_sortOnRelatedKeyWithUnsetRelation (testERP5Catalog.TestERP5Catalog) ... skipped 'TODO ERP5'

  testERP5Interfaces                                 (9 skips)

  testERP5Type                                       (1 skips)

  testERP5TypeInterfaces                             (1 skips)

  testERP5Web                                        (2 skips)

  testFormPrintoutAsODT                              (1 skips)
   test_09_FieldReplacementWithValidation (testFormPrintoutAsODT.TestFormPrintoutAsODT) ... skipped 'Disable validation because OOo does not produce compliant xml, and RelaxNG status is still draft'

  testICal                                           (1 skips)

  testImmobilisation                                 (2 skips)

  testIngestion                                      (4 skips)

  testIngestionWithFlare                             (4 skips)

  testInventoryAPI                                   (2 skips)

  testInvoice                                        (7 skips)

  testItem                                           (13 skips)

  testKM                                             (3 skips)

  testLegacyMRP                                      (4 skips)
   test_TransformationRule_expand_concurrent (Products.ERP5.tests.testMRP.TestMRPImplementation) ... skipped 'Unfinished experimental feature'
   test_TransformationRule_expand_reexpand (Products.ERP5.tests.testMRP.TestMRPImplementation) ... skipped 'Unfinished experimental feature'
   test_TransformationRule_getHeadProductionPathList (Products.ERP5.tests.testMRP.TestMRPImplementation) ... skipped 'Unfinished experimental feature'
   test_TransformationSourcingRule_expand (Products.ERP5.tests.testMRP.TestMRPImplementation) ... skipped 'Unfinished experimental feature'

  testLegacyProjectAndTask                           (1 skips)

  testLegacySimulationInventoryAPI                   (2 skips)

  testMRP                                            (5 skips)
   test_TransformationRule_expand_concurrent (testMRP.TestMRPImplementation) ... skipped 'Unfinished experimental feature'
   test_TransformationRule_expand_reexpand (testMRP.TestMRPImplementation) ... skipped 'Unfinished experimental feature'
   test_TransformationRule_getHeadProductionPathList (testMRP.TestMRPImplementation) ... skipped 'Unfinished experimental feature'
   test_TransformationSourcingRule_expand (testMRP.TestMRPImplementation) ... skipped 'Unfinished experimental feature'

  testMaxmaDemoConfigurationWorkflow                 (1 skips)

  testOpenOrder                                      (3 skips)

  testOrderBuilder                                   (4 skips)

  testOxatisSynchronization                          (1 skips)

  testPersonERP5Synchronization                      (7 skips)
   test_PrestashopComplexeUpdateElement (testPersonERP5Synchronization.TestPersonERP5Synchronization) ... skipped 'must be checked against zope2.12'
   test_PrestashopDeletePerson (testPersonERP5Synchronization.TestPersonERP5Synchronization), Check that the delete during a person's sync invalidate the person. ... skipped 'must be checked against zope2.12'
   test_PrestashopPersonWithAddressNoMappingSync (testPersonERP5Synchronization.TestPersonERP5Synchronization), This test checks the person sync with an address and no mapping. ... skipped 'must be checked against zope2.12'
   test_PrestashopPersonWithMultipleAddressSync (testPersonERP5Synchronization.TestPersonERP5Synchronization), This test checks the person sync with the simplest XML. ... skipped 'must be checked against zope2.12'
   test_PrestashopPersonWithSingleAddressSync (testPersonERP5Synchronization.TestPersonERP5Synchronization), This test checks the person sync with an address. ... skipped 'must be checked against zope2.12'
   test_PrestashopSimplestXMLSync (testPersonERP5Synchronization.TestPersonERP5Synchronization), This test checks the person sync with the simplest XML. ... skipped 'must be checked against zope2.12'
   test_PrestashopUpdateSimpleElement (testPersonERP5Synchronization.TestPersonERP5Synchronization), This test checks the simple update after sync of persons. ... skipped 'must be checked against zope2.12'

  testPersonPrestashopSynchronization                (6 skips)
   test_PrestashopComplexeUpdateElement (testPersonPrestashopSynchronization.TestPersonPrestashopSynchronization) ... skipped 'must be checked against zope2.12'
   test_PrestashopDeletePerson (testPersonPrestashopSynchronization.TestPersonPrestashopSynchronization), Check that the delete during a person's sync invalidate the person. ... skipped 'must be checked against zope2.12'
   test_PrestashopPersonWithMultipleAddressSync (testPersonPrestashopSynchronization.TestPersonPrestashopSynchronization), This test checks the person sync with the simplest XML. ... skipped 'must be checked against zope2.12'
   test_PrestashopPersonWithSingleAddressSync (testPersonPrestashopSynchronization.TestPersonPrestashopSynchronization), This test checks the person sync with an address. ... skipped 'must be checked against zope2.12'
   test_PrestashopSimplestXMLSync (testPersonPrestashopSynchronization.TestPersonPrestashopSynchronization), This test checks the person sync with the simplest XML. ... skipped 'must be checked against zope2.12'
   test_PrestashopUpdateSimpleElement (testPersonPrestashopSynchronization.TestPersonPrestashopSynchronization), This test checks the simple update after sync of persons. ... skipped 'must be checked against zope2.12'

  testPreferences                                    (1 skips)

  testProductERP5Synchronization                     (8 skips)
   test_PrestashopComplexeUpdateElement (testProductERP5Synchronization.TestProductERP5Synchronization) ... skipped 'must be checked against zope2.12'
   test_PrestashopDeleteProduct (testProductERP5Synchronization.TestProductERP5Synchronization), Check that delete during a product's sync invalidate the product. ... skipped 'must be checked against zope2.12'
   test_PrestashopDifferentKindVariationsSync (testProductERP5Synchronization.TestProductERP5Synchronization), This test check the product sync with the two kind of variations. ... skipped 'must be checked against zope2.12'
   test_PrestashopIndividualVariationSync (testProductERP5Synchronization.TestProductERP5Synchronization), This test check the product sync with individual variations. ... skipped 'must be checked against zope2.12'
   test_PrestashopMultipleSync (testProductERP5Synchronization.TestProductERP5Synchronization), This test check the multiple product sync. ... skipped 'must be checked against zope2.12'
   test_PrestashopSharedVariationSync (testProductERP5Synchronization.TestProductERP5Synchronization), This test check the product sync with shared variations. ... skipped 'must be checked against zope2.12'
   test_PrestashopSimplestXMLSync (testProductERP5Synchronization.TestProductERP5Synchronization), This test checks the product sync with the simplest XML. ... skipped 'must be checked against zope2.12'
   test_PrestashopUpdateSimpleElement (testProductERP5Synchronization.TestProductERP5Synchronization), This test checks the simple update after sync of products. ... skipped 'must be checked against zope2.12'

  testProductPrestashopSynchronization               (8 skips)
   test_PrestashopComplexeUpdateElement (testProductPrestashopSynchronization.TestProductPrestashopSynchronization) ... skipped 'must be checked against zope2.12'
   test_PrestashopDeleteProduct (testProductPrestashopSynchronization.TestProductPrestashopSynchronization), Check that delete during a product's sync invalidate the product. ... skipped 'must be checked against zope2.12'
   test_PrestashopDifferentKindVariationsSync (testProductPrestashopSynchronization.TestProductPrestashopSynchronization), This test check the product sync with the two kind of variations. ... skipped 'must be checked against zope2.12'
   test_PrestashopIndividualVariationSync (testProductPrestashopSynchronization.TestProductPrestashopSynchronization), This test check the product sync with individual variations. ... skipped 'must be checked against zope2.12'
   test_PrestashopMultipleSync (testProductPrestashopSynchronization.TestProductPrestashopSynchronization), This test check the multiple product sync. ... skipped 'must be checked against zope2.12'
   test_PrestashopSharedVariationSync (testProductPrestashopSynchronization.TestProductPrestashopSynchronization), This test check the product sync with shared variations. ... skipped 'must be checked against zope2.12'
   test_PrestashopSimplestXMLSync (testProductPrestashopSynchronization.TestProductPrestashopSynchronization), This test checks the product sync with the simplest XML. ... skipped 'must be checked against zope2.12'
   test_PrestashopUpdateSimpleElement (testProductPrestashopSynchronization.TestProductPrestashopSynchronization), This test checks the simple update after sync of products. ... skipped 'must be checked against zope2.12'

  testProductionOrder                                (8 skips)

  testProductionOrderApparel                         (6 skips)

  testProductionPackingList                          (1 skips)

  testProductionPackingListApparel                   (1 skips)

  testProject                                        (1 skips)

  testProxyField                                     (1 skips)

  testReturnedSalePackingList                        (3 skips)

  testSQLCachedWorklist                              (2 skips)
   test_02_related_key (testSQLCachedWorklist.TestSQLCachedWorklist) ... skipped 'TODO ERP5'
   test_04_dynamic_variables (testSQLCachedWorklist.TestSQLCachedWorklist) ... skipped 'TODO ERP5'

  testSaleOrderERP5Synchronization                   (10 skips)
   test_PrestashopDeleteDoNothing (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization) ... skipped 'must be checked against zope2.12'
   test_PrestashopDiscountSync (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization), Check the sync of sale order with discount. ... skipped 'must be checked against zope2.12'
   test_PrestashopGenerateAccounting (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization) ... skipped 'must be checked against zope2.12'
   test_PrestashopSimplestXMLSync (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization), Check the sync of the simplest XML for a sale order. ... skipped 'must be checked against zope2.12'
   test_PrestashopSyncDifferentKindVariation (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization), Check the sync of sale order with the two kind of variations. ... skipped 'must be checked against zope2.12'
   test_PrestashopSyncWithIndividualVariation (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization) ... skipped 'must be checked against zope2.12'
   test_PrestashopSyncWithSharedVariation (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization), Check the sync of sale order with shared variation. ... skipped 'must be checked against zope2.12'
   test_PrestashopSyncWithoutDestination (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization), Check the sync of sale order without destination. ... skipped 'must be checked against zope2.12'
   test_PrestashopSyncWithoutProduct (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization), Check the sync of sale order with a non-existant product. ... skipped 'must be checked against zope2.12'
   test_PrestashopUpdateDoNothing (testSaleOrderERP5Synchronization.TestSaleOrderERP5Synchronization) ... skipped 'must be checked against zope2.12'

  testSelectionTool                                  (7 skips)
   skipped 'Test to be written'
   testPage (testSelectionTool.TestSelectionTool) ... skipped 'Test to be written'
   testView (testSelectionTool.TestSelectionTool) ... skipped 'Test to be written'
   skipped 'Test to be written'
   testDeleteGlobalSelection (testSelectionTool.TestSelectionToolMemcachedStorage) ... skipped 'To be decided if implementation is required'
   testPage (testSelectionTool.TestSelectionToolMemcachedStorage) ... skipped 'Test to be written'
   testView (testSelectionTool.TestSelectionToolMemcachedStorage) ... skipped 'Test to be written'

  testShaCache                                       (1 skips)

  testShaCacheExternal                               (1 skips)

  testShaDir                                         (1 skips)

  testTaskReportDivergence                           (1 skips)

  testTemplate                                       (1 skips)

  testUbercartSynchronisation                        (1 skips)

  testVirtuemartSynchronization                      (1 skips)

  testWebDavSupport                                  (1 skips)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: summary.diff
Type: text/x-diff
Size: 87176 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-report/attachments/20111207/70633f46/attachment-0001.diff>
-------------- next part --------------

ERROR: test_Archive (testArchive.TestArchive)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5Catalog/tests/testArchive.py", line 242, in test_Archive
    self.stepTic()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 573, in stepTic
    self.tic()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ProcessingNodeTestCase.py", line 232, in tic
    raise RuntimeError(error_message)
RuntimeError: tic is looping forever. These messages are pending: [('/inventory_api_test/portal_simulation', 'Archive_createInventory', -2, 1), ('/inventory_api_test/portal_catalog', 'finishHotReindexing', -1, 0), ('/inventory_api_test/portal_archives', 'InventoryModule_reindexMovementList', -1, 0)]
Last error message:
AttributeError
setDefaultReindexParameterDict
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 293, in __call__
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 1301, in _exec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 35, in Archive_createInventory
   - <PythonScript at /inventory_api_test/Archive_createInventory used for /inventory_api_test/portal_simulation>
   - Line 35
  Module Products.ERP5Type.Core.Folder, line 538, in newContent
  Module Products.ERP5Type.Core.Folder, line 161, in newContent
  Module Products.ERP5Type.ERP5Type, line 386, in constructInstance
AttributeError: setDefaultReindexParameterDict



FAIL: testCatalogSearch (testContentTranslation.TestContentTranslation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5/tests/testContentTranslation.py", line 95, in testCatalogSearch
    self.assertEquals(len(result2), 1)
AssertionError: 0 != 1


ERROR: test_01_ERP5BankingAccountingCancellation (testERP5BankingAccountingCancellation.TestERP5BankingAccountingCancellation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_AccountingDate (testERP5BankingAccountingDate.TestERP5BankingAccountingDate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingAvailabeInventory (testERP5BankingAvailableInventory.TestERP5BankingAvailableInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingBankAccountInventory (testERP5BankingBankAccountInventory.TestERP5BankingInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashBalanceRegulation (testERP5BankingCashBalanceRegulation.TestERP5BankingCashBalanceRegulation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashClassification (testERP5BankingCashClassification.TestERP5BankingCashClassification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashExchange (testERP5BankingCashExchange.TestERP5BankingCashExchange)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashInventory (testERP5BankingCashInventory.TestERP5BankingInventory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashMovement (testERP5BankingCashMovement.TestERP5BankingCashMovement)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashMovementNewNotEmitted (testERP5BankingCashMovementNewNotEmitted.TestERP5BankingCashMovementNewNotEmitted)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashSorting (testERP5BankingCashSorting.TestERP5BankingCashSorting)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashToCurrencyPurchase (testERP5BankingCashToCurrencyPurchase.TestERP5BankingCashToCurrencyPurchase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCashToCurrencySale (testERP5BankingCashToCurrencySale.TestERP5BankingCashToCurrencySale)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCheckDeposit (testERP5BankingCheckDeposit.TestERP5BankingCheckDeposit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCheckPayment (testERP5BankingCheckPayment.TestERP5BankingCheckPayment)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCheckbookDelivery (testERP5BankingCheckbookDelivery.TestERP5BankingCheckbookDelivery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCheckbookReception (testERP5BankingCheckbookReception.TestERP5BankingCheckbookReception)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCheckbookUsualCashTransfer (testERP5BankingCheckbookUsualCashTransfer.TestERP5BankingCheckbookUsualCashTransfer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCheckbookVaultTransfer (testERP5BankingCheckbookVaultTransfer.TestERP5BankingCheckbookVaultTransfer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingClassificationSurvey (testERP5BankingClassificationSurvey.TestERP5BankingClassificationSurvey)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_CheckOpenCounterDateTwiceFail (testERP5BankingCounterDate.TestERP5BankingCounterDate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingCounterRendering (testERP5BankingCounterRendering.TestERP5BankingCounterRendering)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingDestructionSurvey (testERP5BankingDestructionSurvey.TestERP5BankingDestructionSurvey)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingForeignCashReception (testERP5BankingForeignCashReception.TestERP5BankingForeignCashReception)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingInternalMoneyDeposit (testERP5BankingInternalMoneyDeposit.TestERP5BankingInternalMoneyDeposit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingInternalMoneyPayment (testERP5BankingInternalMoneyPayment.TestERP5BankingInternalMoneyPayment)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingMonetaryDestruction (testERP5BankingMonetaryDestruction.TestERP5BankingMonetaryDestruction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingMonetaryIssue (testERP5BankingMonetaryIssue.TestERP5BankingMonetaryIssue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingMonetaryRecall (testERP5BankingMonetaryRecall.TestERP5BankingMonetaryRecall)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingMonetaryReception (testERP5BankingMonetaryReception.TestERP5BankingMonetaryReception)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingMonetarySurvey (testERP5BankingMonetarySurvey.TestERP5BankingMonetarySurvey)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingMoneyDeposit (testERP5BankingMoneyDeposit.TestERP5BankingMoneyDeposit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingMoneyDepositRendering (testERP5BankingMoneyDepositRendering.TestERP5BankingMoneyDepositRendering)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingMutilatedBanknote (testERP5BankingMutilatedBanknote.TestERP5BankingMutilatedBanknote)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingStopPayment (testERP5BankingStopPayment.TestERP5BankingStopPayment)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingTravelerCheckPurchase (testERP5BankingTravelerCheckPurchase.TestERP5BankingTravelerCheckPurchase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingTravelerCheckSale (testERP5BankingTravelerCheckSale.TestERP5BankingTravelerCheckSale)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingUsualCashRendering (testERP5BankingUsualCashRendering.TestERP5BankingUsualCashRendering)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingUsualCashTransfer (testERP5BankingUsualCashTransfer.TestERP5BankingUsualCashTransfer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_01_ERP5BankingVaultTransfer (testERP5BankingVaultTransfer.TestERP5BankingVaultTransfer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 916, in _installBusinessTemplateList
    bt = template_tool.download(url)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 483, in download
    bt = self._download_local(name, id)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Tool/TemplateTool.py", line 411, in _download_local
    bt.importFile(dir=True, file=file_list, root_path=path)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 5196, in importFile
    getattr(self, item_name).importFile(bta)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 537, in importFile
    bta.importFiles(item=self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 382, in importFiles
    item._importFile(file_name, file)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 800, in _importFile
    obj = connection.importFile(file_obj, customImporters=customImporters)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/ZODB3-3.9.7-py2.6-linux-x86_64.egg/ZODB/ExportImport.py", line 82, in importFile
    return customImporters[magic](self, f, clue)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 763, in importXML
    r=p.Parse(data)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 698, in unknown_endtag
    top = end[tag](self, tag, top)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 634, in save_string
    v=unconvert(encoding,v)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/patches/ppml.py", line 79, in unconvert
    original = eval("'"+x+"'")
  File "<string>", line 1
    'from Products.DCWorkflow.DCWorkflow import ValidationFailed\nfrom Products.ERP5Type.Message import Message\ncounter_date = state_change[\'object\']\n\n# First make sure that the site is defined\nsite_value = counter_date.getSiteValue()\nif site_value is None:\n  msg = Message(domain=\'ui\',message="Sorry, the site is not defined")\n  raise ValidationFailed (msg,)\n\n# Then, make sure there is not any counter date open for this site\nsite_value.serialize()\nsite_uid = site_value.getUid()\nactivity_tag = \'%s_CounterDay\' % (site_uid, )\nif context.getPortalObject().portal_activities.countMessageWithTag(activity_tag) != 0:\n  msg = Message(domain=\'ui\',message="Sorry, there is a pending counter date opening, please retry later")\n  raise ValidationFailed (msg,)\ncounter_date.setDefaultActivateParameterDict({'tag': activity_tag})\ncounter_date_list = [x.getObject() for x in counter_date.portal_catalog(portal_type=\'Counter Date\',site_uid=site_uid,simulation_state=\'open\')]\nfor other_counter in counter_date_list:\n  if other_counter.getUid()!=counter_date.getUid():\n    counter_date.log("opened counter date is", other_counter.getPath())\n    msg = Message(domain=\'ui\',message="Sorry, there is already a counter date opened")\n    raise ValidationFailed (msg,)\n    \nlistbox = state_change.kwargs.get(\'listbox\',None)\n\n# First make sure we can open a counter date only\n# if the date defined on the document is the current date\nstart_date = counter_date.getStartDate()\nfrom DateTime import DateTime\nnow = DateTime()\n\n# Check it is a working day\nif len(getattr(context.getPortalObject(), \'not_working_days\', "")) == 0:\n  pass\nelse:\n  not_working_day_list = getattr(context.getPortalObject(), \'not_working_days\').split(" ")\n  if start_date.Day().lower() in not_working_day_list:\n    msg = Message(domain=\'ui\',message="Sorry, you cannot open the date on not working days")\n    raise ValidationFailed (msg,)\n\n\n# Check it is today\ncheck_date_is_today = state_change.kwargs.get(\'check_date_is_today\', 1)\nif check_date_is_today and now.Date() != start_date.Date():\n  msg = Message(domain=\'ui\',message="Sorry, the date is not today")\n  raise ValidationFailed (msg,)\n\n\n\n\nif listbox is not None:\n  for line in listbox:\n    if line["choice"] == "open":\n      counter = context.restrictedTraverse("%s" %(line[\'listbox_key\'],))\n      counter.open()\n\n\n# Set a reference\nfirst_day_of_year = DateTime(start_date.year(), 1, 1)\ncounter_date_list = [x.getObject() for x  in context.portal_catalog(\n                                           portal_type=\'Counter Date\',site_uid=site_uid,\n                                           start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n                                           sort_on=[(\'start_date\',\'descending\')],limit=1,\n                                           simulation_state=(\'open\',\'closed\'))]\nprevious_reference = None\nif len(counter_date_list)>0:\n  previous_counter_date = counter_date_list[0]\n  previous_reference = previous_counter_date.getReference()\nif previous_reference not in (\'\',None):\n  reference = \'%i\' % (int(previous_reference)+1)\nelse:\n  reference = \'1\'\ncounter_date.setReference(reference)\n'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
SyntaxError: invalid syntax


ERROR: test_03_UpdateSimpleData (testERP5DocumentSyncML.TestERP5DocumentSyncML)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5SyncML/tests/testERP5DocumentSyncML.py", line 640, in test_03_UpdateSimpleData
    self.synchronize(self.sub_id1)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5SyncML/tests/testERP5DocumentSyncML.py", line 366, in synchronize
    result = portal_sync.SubSync(subscription.getPath())
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1208, in SubSync
    response = self.SubSyncModif(subscription, xml_client)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1220, in SubSyncModif
    return self.SyncModif(subscription, xml_client)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1295, in SyncModif
    simulate=simulate)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 2204, in applyActionList
    domain=domain)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Conduit/ERP5Conduit.py", line 272, in updateNode
    **kw)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Conduit/ERP5Conduit.py", line 825, in applyXupdate
    xml_doc_string=previous_xml)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/xupdate_processor-0.4-py2.6.egg/xupdate_processor/xuproc.py", line 33, in applyXUpdate
    parser.parse(xml_xu)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 353, in start_element_ns
    AttributesNSImpl(newattrs, qnames))
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/xupdate_processor-0.4-py2.6.egg/xupdate_processor/content_handler.py", line 121, in startElementNS
    node = self.result_tree.xpath(attrs.getValueByQName('select'), namespaces=self.nsmap)[0]
IndexError: list index out of range


ERROR: test_01_HasEverything (testERP5LdapCatalog.TestERP5LdapCatalog), Test has everything
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 125, in run
    self.setUp()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 839, in setUp
    erp5_catalog_storage=erp5_catalog_storage)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 1024, in setUpERP5Site
    quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 932, in _installBusinessTemplateList
    update_translation=1)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/Base.py", line 240, in __call__
    result = apply(self.__dict__['_m'], (instance,) + args, kw)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/Document/BusinessTemplate.py", line 4790, in _install
    catalog.manage_catalogClear()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ZSQLCatalog/SQLCatalog.py", line 1288, in manage_catalogClear
    self.clear()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ZSQLCatalog/SQLCatalog.py", line 884, in clear
    method()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ZLDAPMethods/LM.py", line 457, in __call__
    c = self._connection().GetConnection()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ZLDAPConnection/ZLDAP.py", line 362, in _connection
    if not self.isOpen(): self._open()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ZLDAPConnection/ZLDAP.py", line 404, in _open
    self._v_conn.simple_bind_s(self.bind_as, self.pw)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/develop-eggs/python_ldap-2.4.6-py2.6-linux-x86_64.egg/ldap/ldapobject.py", line 207, in simple_bind_s
    msgid = self.simple_bind(who,cred,serverctrls,clientctrls)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/develop-eggs/python_ldap-2.4.6-py2.6-linux-x86_64.egg/ldap/ldapobject.py", line 201, in simple_bind
    return self._ldap_call(self._l.simple_bind,who,cred,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/develop-eggs/python_ldap-2.4.6-py2.6-linux-x86_64.egg/ldap/ldapobject.py", line 99, in _ldap_call
    result = func(*args,**kwargs)
SERVER_DOWN: {'desc': "Can't contact LDAP server"}


FAIL: test_02_splitAndDeferAfterAcceptDecision (testERP5Simulation.TestERP5Simulation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5/tests/testERP5Simulation.py", line 282, in test_02_splitAndDeferAfterAcceptDecision
    sequence_list.play(self, quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/Sequence.py", line 207, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/Sequence.py", line 128, in play
    .play(context, sequence=self, quiet=quiet)
    Current Sequence:
      CreateOrganisation1
      CreateOrganisation2
      CreateOrganisation3
      CreateProject1
      CreateProject2
      CreateOrder
      CreateCurrency
      SetOrderPriceCurrency
      SetOrderProfile
      CreateNotVariatedResource
      Tic
      CreateOrderLine
      SetOrderLineResource
      SetOrderLineDefaultValues
      OrderOrder
      Tic
      ConfirmOrder
      Tic
      CheckOrderSimulation
      CheckDeliveryBuilding
      CheckPackingListIsNotDivergent
      CheckOrderPackingList
      IncreasePackingListLineQuantity1000
      ChangePackingListDestination
      CheckPackingListIsCalculating
      Tic
      CheckPackingListIsDiverged
      AcceptDecisionDestination
      AcceptDecisionQuantity
      CheckPackingListIsCalculating
      Tic
      CheckPackingListIsNotDivergent
      CheckPackingListIsSolved
      DecreasePackingListLineQuantity10
      CheckPackingListIsCalculating
      Tic
      CheckPackingListIsDiverged
      SplitAndDeferPackingList
      CheckSolverIsSolving
      Tic
    > CheckPackingListSplittedForTest02
      CheckPackingListIsSolved
      CheckSolverIsSolved
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/Sequence.py", line 92, in play
    method(sequence=sequence)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5/tests/testERP5Simulation.py", line 233, in stepCheckPackingListSplittedForTest02
    self.assertEquals(packing_list2.getDestinationValue(), destination_value)
AssertionError: <Organisation at /erp5_portal_dc2688613f27509924625a9a445111a0/organisation_module/5> != <Organisation at /erp5_portal_dc2688613f27509924625a9a445111a0/organisation_module/6>


ERROR: test_12_UpdateSimpleData (testERP5SyncML.TestERP5SyncML)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5SyncML/tests/testERP5SyncML.py", line 798, in test_12_UpdateSimpleData
    self.synchronize(self.sub_id1)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5SyncML/tests/testERP5SyncML.py", line 239, in synchronize
    result = portal_sync.SubSync(subscription.getPath())
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1208, in SubSync
    response = self.SubSyncModif(subscription, xml_client)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1220, in SubSyncModif
    return self.SyncModif(subscription, xml_client)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1295, in SyncModif
    simulate=simulate)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 2207, in applyActionList
    xml_object = conduit.applyDiff(previous_xml, data_subnode)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Conduit/ERP5Conduit.py", line 1074, in applyDiff
    xml_doc_string=original_data), encoding='utf-8')
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/xupdate_processor-0.4-py2.6.egg/xupdate_processor/xuproc.py", line 33, in applyXUpdate
    parser.parse(xml_xu)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 353, in start_element_ns
    AttributesNSImpl(newattrs, qnames))
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/xupdate_processor-0.4-py2.6.egg/xupdate_processor/content_handler.py", line 121, in startElementNS
    node = self.result_tree.xpath(attrs.getValueByQName('select'), namespaces=self.nsmap)[0]
IndexError: list index out of range


ERROR: test_30_GetSynchronizationType (testERP5SyncML.TestERP5SyncML)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5SyncML/tests/testERP5SyncML.py", line 1317, in test_30_GetSynchronizationType
    self.synchronize(self.sub_id1)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5SyncML/tests/testERP5SyncML.py", line 239, in synchronize
    result = portal_sync.SubSync(subscription.getPath())
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1208, in SubSync
    response = self.SubSyncModif(subscription, xml_client)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1220, in SubSyncModif
    return self.SyncModif(subscription, xml_client)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 1295, in SyncModif
    simulate=simulate)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Tool/SynchronizationTool.py", line 2207, in applyActionList
    xml_object = conduit.applyDiff(previous_xml, data_subnode)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5SyncML/Conduit/ERP5Conduit.py", line 1074, in applyDiff
    xml_doc_string=original_data), encoding='utf-8')
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/xupdate_processor-0.4-py2.6.egg/xupdate_processor/xuproc.py", line 33, in applyXUpdate
    parser.parse(xml_xu)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/PyXML-0.8.4nxd001-py2.6-linux-x86_64.egg/_xmlplus/sax/expatreader.py", line 353, in start_element_ns
    AttributesNSImpl(newattrs, qnames))
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/eggs/xupdate_processor-0.4-py2.6.egg/xupdate_processor/content_handler.py", line 121, in startElementNS
    node = self.result_tree.xpath(attrs.getValueByQName('select'), namespaces=self.nsmap)[0]
IndexError: list index out of range


FAIL: test_01_TextField (testFormPrintoutAsODG.TestFormPrintoutAsODG)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5OOo/tests/testFormPrintoutAsODG.py", line 230, in test_01_TextField
    self._validate(odf_document)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5OOo/tests/TestFormPrintoutMixin.py", line 62, in _validate
    self.fail(''.join(error_list))
AssertionError: content.xml:2:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMWRONG: Did not expect element graphics there


ERROR: test_19_TestAccountingBuildingAndDivergence (Products.ERP5.tests.testImmobilisation.TestImmobilisation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/tests/testImmobilisation.py", line 3688, in test_19_TestAccountingBuildingAndDivergence
    sequence_list.play(self)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/Sequence.py", line 207, in play
    sequence.play(context, sequence_number=i, quiet=quiet)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/Sequence.py", line 128, in play
    .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 "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/Sequence.py", line 92, in play
    method(sequence=sequence)
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 573, in stepTic
    self.tic()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/ProcessingNodeTestCase.py", line 232, in tic
    raise RuntimeError(error_message)
RuntimeError: tic is looping forever. These messages are pending: [('/erp5_portal_e2d1848d657e4110d347cd7289109cde/accounting_module/16', 'AmortisationTransaction_afterBuild', -2, 1)]
Last error message:
UnsupportedWorkflowMethod
Transition delivery_causality_workflow/start_building unsupported for <Amortisation Transaction at /erp5_portal_e2d1848d657e4110d347cd7289109cde/accounting_module/16>. Current state is 'solving'.
Traceback (innermost last):
  Module Products.CMFActivity.ActivityTool, line 293, in __call__
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.ERP5Type.tests.ERP5TypeTestCase, line 1301, in _exec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 31, in AmortisationTransaction_afterBuild
   - <PythonScript at /erp5_portal_e2d1848d657e4110d347cd7289109cde/AmortisationTransaction_afterBuild used for /erp5_portal_e2d1848d657e4110d347cd7289109cde/accounting_module/16>
   - Line 31
  Module Products.ERP5Type.Base, line 223, in __call__
UnsupportedWorkflowMethod: Transition delivery_causality_workflow/start_building unsupported for <Amortisation Transaction at /erp5_portal_e2d1848d657e4110d347cd7289109cde/accounting_module/16>. Current state is 'solving'.



FAIL: test_tradeModelLineWithRounding (Products.ERP5.tests.testTradeModelLine.TestTradeModelLineSale)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/tests/testTradeModelLine.py", line 1188, in test_tradeModelLineWithRounding
    self.assertEqual(2, len(amount_list)) # XXX 1 or 2 ???
AssertionError: 2 != 1


FAIL: test_tradeModelLineWithRounding (Products.ERP5.tests.testTradeModelLinePurchase.TestTradeModelLinePurchase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/tests/testTradeModelLine.py", line 1188, in test_tradeModelLineWithRounding
    self.assertEqual(2, len(amount_list)) # XXX 1 or 2 ???
AssertionError: 2 != 1


FAIL: test_11b_getPriceWithCells (testResource.TestResource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5/tests/testResource.py", line 880, in test_11b_getPriceWithCells
    product.getPrice(categories=[variation]))
AssertionError: 34 != 0.0


FAIL: test_checkSpellChecker (testSpellChecking.TestSpellChecking)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5/tests/testSpellChecking.py", line 143, in test_checkSpellChecker
    self.assertNotEquals(self.validate_spell('canceled'), {})
AssertionError: {} == {}


FAIL: test_tradeModelLineWithRounding (testTradeModelLine.TestTradeModelLineSale)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/product/ERP5/tests/testTradeModelLine.py", line 1188, in test_tradeModelLineWithRounding
    self.assertEqual(2, len(amount_list)) # XXX 1 or 2 ???
AssertionError: 2 != 1


FAIL: test_tradeModelLineWithRounding (testTradeModelLinePurchase.TestTradeModelLinePurchase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5Type/tests/backportUnittest.py", line 136, in run
    testMethod()
  File "/srv/slapgrid/slappart29/srv/slapos/software/ef30079b78b4b88525f2cf62a75d4cb7/parts/erp5/Products/ERP5/tests/testTradeModelLine.py", line 1188, in test_tradeModelLineWithRounding
    self.assertEqual(2, len(amount_list)) # XXX 1 or 2 ???
AssertionError: 2 != 1


More information about the Erp5-report mailing list