Commit b27aee89 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix imports

parent a88da90e
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<global name="__newobj__" module="copy_reg"/> <global name="__newobj__" module="copy_reg"/>
</klass> </klass>
<tuple> <tuple>
<global name="ODGStrategy" module="Products.ERP5OOo.FormPrintout"/> <global name="ODGStrategy" module="erp5.component.module.FormPrintout"/>
</tuple> </tuple>
<state> <state>
<dictionary> <dictionary>
......
...@@ -1811,7 +1811,7 @@ class TestBudget(ERP5TypeTestCase): ...@@ -1811,7 +1811,7 @@ class TestBudget(ERP5TypeTestCase):
self.assertEqual(.5, line_list[3][2]['consumed_ratio']) self.assertEqual(.5, line_list[3][2]['consumed_ratio'])
# validate report ODF # validate report ODF
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
odf = budget.Budget_viewBudgetConsumptionReport() odf = budget.Budget_viewBudgetConsumptionReport()
err_list = odf_validator.validate(odf) err_list = odf_validator.validate(odf)
......
...@@ -31,7 +31,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase ...@@ -31,7 +31,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import createZODBPythonScript from Products.ERP5Type.tests.utils import createZODBPythonScript
from Testing import ZopeTestCase from Testing import ZopeTestCase
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
from lxml import html from lxml import html
import email, urlparse, httplib import email, urlparse, httplib
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class DocToDocx: class DocToDocx:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class DocToHtml: class DocToHtml:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class DocxToDocy: class DocxToDocy:
"""Transforms docx to docy by using Cloudooo""" """Transforms docx to docy by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class DocxToOdt: class DocxToOdt:
"""Transforms docx to odt by using Cloudooo""" """Transforms docx to odt by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class DocyToDocx: class DocyToDocx:
"""Transforms docy to docx by using Cloudooo""" """Transforms docy to docx by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdpToHtml: class OdpToHtml:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdpToPdf: class OdpToPdf:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdpToPptx: class OdpToPptx:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdpToSxi: class OdpToSxi:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdsToHtml: class OdsToHtml:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdsToPdf: class OdsToPdf:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdsToXlsx: class OdsToXlsx:
"""Transforms ods to xlsx by using Cloudooo""" """Transforms ods to xlsx by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdtToDocx: class OdtToDocx:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class OdtToHtml: class OdtToHtml:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class PdfToBmp: class PdfToBmp:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class PptToPptx: class PptToPptx:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class PptxToOdp: class PptxToOdp:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class PptxToPpty: class PptxToPpty:
"""Transforms pptx to ppty by using Cloudooo""" """Transforms pptx to ppty by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class PptyToPptx: class PptyToPptx:
"""Transforms ppty to pptx by using Cloudooo""" """Transforms ppty to pptx by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class SxiToHtml: class SxiToHtml:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class SxiToOdp: class SxiToOdp:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class XlsToOds: class XlsToOds:
"""Transforms xls to ods by using Cloudooo""" """Transforms xls to ods by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class XlsToXlsx: class XlsToXlsx:
"""Transforms xls to xlsx by using Cloudooo""" """Transforms xls to xlsx by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class XlsxToOds: class XlsxToOds:
"""Transforms xlsx to ods by using Cloudooo""" """Transforms xlsx to ods by using Cloudooo"""
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class XlsxToXlsy: class XlsxToXlsy:
......
from Products.PortalTransforms.interfaces import itransform from Products.PortalTransforms.interfaces import itransform
from zope.interface import implements from zope.interface import implements
from Products.ERP5OOo.transforms.oood_commandtransform import OOOdCommandTransform, OOoDocumentDataStream from erp5.component.module.OOOdCommandTransform import OOOdCommandTransform, OOoDocumentDataStream
class XlsyToXlsx: class XlsyToXlsx:
"""Transforms xlsy to xlsx by using Cloudooo""" """Transforms xlsy to xlsx by using Cloudooo"""
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.html_to_odt</string> </value> <value> <string>erp5.component.module.TransformHtmlToOdt</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.odt_to_doc</string> </value> <value> <string>erp5.component.module.TransformOdtToDoc</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.odt_to_pdf</string> </value> <value> <string>erp5.component.module.TransformOdtToPdf</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.odt_to_xml</string> </value> <value> <string>erp5.component.module.TransformOdtToXml</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
......
...@@ -31,7 +31,7 @@ import unittest ...@@ -31,7 +31,7 @@ import unittest
import Products.ERP5 import Products.ERP5
from erp5.component.module.TestFormPrintoutMixin import TestFormPrintoutMixin from erp5.component.module.TestFormPrintoutMixin import TestFormPrintoutMixin
from erp5.component.module.OOoUtils import OOoBuilder from erp5.component.module.OOoUtils import OOoBuilder
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
from Products.ERP5Type.tests.utils import FileUpload from Products.ERP5Type.tests.utils import FileUpload
from lxml import etree from lxml import etree
import os import os
......
...@@ -36,7 +36,7 @@ from erp5.component.module.TestFormPrintoutMixin import TestFormPrintoutMixin ...@@ -36,7 +36,7 @@ from erp5.component.module.TestFormPrintoutMixin import TestFormPrintoutMixin
from Products.ERP5Type.tests.utils import createZODBPythonScript from Products.ERP5Type.tests.utils import createZODBPythonScript
from Products.MimetypesRegistry.mime_types.magic import guessMime from Products.MimetypesRegistry.mime_types.magic import guessMime
from erp5.component.module.OOoUtils import OOoBuilder from erp5.component.module.OOoUtils import OOoBuilder
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
from Products.ERP5Type.tests.utils import FileUpload from Products.ERP5Type.tests.utils import FileUpload
from DateTime import DateTime from DateTime import DateTime
from lxml import etree from lxml import etree
......
...@@ -35,7 +35,7 @@ from zipfile import ZipFile ...@@ -35,7 +35,7 @@ from zipfile import ZipFile
from Products.ERP5Type.tests.utils import FileUpload from Products.ERP5Type.tests.utils import FileUpload
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import DummyLocalizer from Products.ERP5Type.tests.utils import DummyLocalizer
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
from erp5.component.module.OOoUtils import OOoBuilder from erp5.component.module.OOoUtils import OOoBuilder
......
...@@ -38603,7 +38603,7 @@ ...@@ -38603,7 +38603,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.odt_to_pdf</string> </value> <value> <string>erp5.component.module.TransformOdtToPdf</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
...@@ -38707,7 +38707,7 @@ ...@@ -38707,7 +38707,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.odt_to_doc</string> </value> <value> <string>erp5.component.module.TransformOdtToDoc</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
...@@ -38811,7 +38811,7 @@ ...@@ -38811,7 +38811,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.odt_to_doc</string> </value> <value> <string>erp5.component.module.TransformOdtToDoc</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
...@@ -39123,7 +39123,7 @@ ...@@ -39123,7 +39123,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.odt_to_xml</string> </value> <value> <string>erp5.component.module.TransformOdtToXml</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
...@@ -41976,7 +41976,7 @@ ...@@ -41976,7 +41976,7 @@
</item> </item>
<item> <item>
<key> <string>module</string> </key> <key> <string>module</string> </key>
<value> <string>Products.ERP5OOo.transforms.html_to_odt</string> </value> <value> <string>erp5.component.module.TransformHtmlToOdt</string> </value>
</item> </item>
<item> <item>
<key> <string>output</string> </key> <key> <string>output</string> </key>
...@@ -4552,7 +4552,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase): ...@@ -4552,7 +4552,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
# for now, we simply check that that the report is rendered with no error # for now, we simply check that that the report is rendered with no error
# and it produces valid odf # and it produces valid odf
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
odf = self.portal.account_module.AccountModule_viewProfitAndLossReport() odf = self.portal.account_module.AccountModule_viewProfitAndLossReport()
err_list = odf_validator.validate(odf) err_list = odf_validator.validate(odf)
...@@ -4573,7 +4573,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase): ...@@ -4573,7 +4573,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
# for now, we simply check that that the report is rendered with no error # for now, we simply check that that the report is rendered with no error
# and it produces valid odf # and it produces valid odf
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
odf = self.portal.account_module.AccountModule_viewBalanceSheetReport() odf = self.portal.account_module.AccountModule_viewBalanceSheetReport()
err_list = odf_validator.validate(odf) err_list = odf_validator.validate(odf)
......
...@@ -392,7 +392,7 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase): ...@@ -392,7 +392,7 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
self.tic() self.tic()
odt = invoice.Invoice_viewAsODT() odt = invoice.Invoice_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
......
...@@ -34,8 +34,8 @@ from unittest import expectedFailure ...@@ -34,8 +34,8 @@ from unittest import expectedFailure
from Products.CMFCore.WorkflowCore import WorkflowException from Products.CMFCore.WorkflowCore import WorkflowException
from Products.ERP5Type.tests.utils import FileUpload from Products.ERP5Type.tests.utils import FileUpload
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5OOo.tests.testIngestion import FILENAME_REGULAR_EXPRESSION from erp5.component.test.testIngestion import FILENAME_REGULAR_EXPRESSION
from Products.ERP5OOo.tests.testIngestion import REFERENCE_REGULAR_EXPRESSION from erp5.component.test.testIngestion import REFERENCE_REGULAR_EXPRESSION
from email.header import decode_header from email.header import decode_header
from email.mime.multipart import MIMEMultipart from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase from email.mime.base import MIMEBase
......
...@@ -1665,7 +1665,7 @@ class TestInvoice(TestInvoiceMixin): ...@@ -1665,7 +1665,7 @@ class TestInvoice(TestInvoiceMixin):
product_total_price=str(10*3+20*5+60*5+60*3+7*20+130*0.2+300*0.05+20*0.1) product_total_price=str(10*3+20*5+60*5+60*3+7*20+130*0.2+300*0.05+20*0.1)
if text_content.find(product_total_price) == -1 : if text_content.find(product_total_price) == -1 :
self.fail('fail to get the total price of the products with tax') self.fail('fail to get the total price of the products with tax')
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
...@@ -1704,7 +1704,7 @@ class TestInvoice(TestInvoiceMixin): ...@@ -1704,7 +1704,7 @@ class TestInvoice(TestInvoiceMixin):
self.tic() self.tic()
odt = invoice.Invoice_viewAsODT() odt = invoice.Invoice_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
...@@ -1756,7 +1756,7 @@ class TestInvoice(TestInvoiceMixin): ...@@ -1756,7 +1756,7 @@ class TestInvoice(TestInvoiceMixin):
self.tic() self.tic()
odt = invoice.Invoice_viewAsODT() odt = invoice.Invoice_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
...@@ -1803,7 +1803,7 @@ class TestInvoice(TestInvoiceMixin): ...@@ -1803,7 +1803,7 @@ class TestInvoice(TestInvoiceMixin):
self.assertEqual('0103/12/31', data_dict['stop_date']) self.assertEqual('0103/12/31', data_dict['stop_date'])
# rendering is valid odf # rendering is valid odf
odt = invoice.Invoice_viewAsODT() odt = invoice.Invoice_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
......
...@@ -2748,7 +2748,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -2748,7 +2748,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
self.tic() self.tic()
odt = order.Order_viewAsODT() odt = order.Order_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
...@@ -2784,7 +2784,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -2784,7 +2784,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
self.tic() self.tic()
odt = order.Order_viewAsODT() odt = order.Order_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
...@@ -2822,7 +2822,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -2822,7 +2822,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
self.tic() self.tic()
odt = order.Order_viewAsODT() odt = order.Order_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
...@@ -2863,7 +2863,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -2863,7 +2863,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
self.tic() self.tic()
odt = order.Order_viewAsODT() odt = order.Order_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
...@@ -2907,7 +2907,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -2907,7 +2907,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
self.tic() self.tic()
odt = order.Order_viewAsODT() odt = order.Order_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
...@@ -2947,7 +2947,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -2947,7 +2947,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
self.tic() self.tic()
odt = order.Order_viewAsODT() odt = order.Order_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
......
...@@ -1789,7 +1789,7 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1789,7 +1789,7 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
self.tic() self.tic()
odt = packing_list.PackingList_viewAsODT() odt = packing_list.PackingList_viewAsODT()
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
odf_validator = Validator() odf_validator = Validator()
err_list = odf_validator.validate(odt) err_list = odf_validator.validate(odt)
if err_list: if err_list:
......
...@@ -38,7 +38,7 @@ from Products.ERP5Type.Base import Base ...@@ -38,7 +38,7 @@ from Products.ERP5Type.Base import Base
from Products.ERP5Type.Utils import simple_decorator from Products.ERP5Type.Utils import simple_decorator
from DateTime import DateTime from DateTime import DateTime
from Products.ERP5Type.tests.utils import createZODBPythonScript from Products.ERP5Type.tests.utils import createZODBPythonScript
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
def save_result_as(name): def save_result_as(name):
......
...@@ -31,7 +31,7 @@ from DocumentTemplate import String ...@@ -31,7 +31,7 @@ from DocumentTemplate import String
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Testing import ZopeTestCase from Testing import ZopeTestCase
from Products.ERP5OOo.tests.utils import Validator from erp5.component.module.OOoTestUtil import Validator
from Acquisition import aq_base from Acquisition import aq_base
from Products.ERP5Type.Globals import get_request from Products.ERP5Type.Globals import get_request
from Products.ERP5.Document.Document import VALID_IMAGE_FORMAT_LIST from Products.ERP5.Document.Document import VALID_IMAGE_FORMAT_LIST
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment