[Erp5-report] r28999 - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Sep 13 11:41:51 CEST 2009
Author: jp
Date: Sun Sep 13 11:41:50 2009
New Revision: 28999
URL: http://svn.erp5.org?rev=28999&view=rev
Log:
Changed the order of installation of products so that we can be sure that initializeProductDocumentRegistry is invoked after all classes are registered.
Modified:
erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
Modified: erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py?rev=28999&r1=28998&r2=28999&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] Sun Sep 13 11:41:50 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
# Derived from PloneTestCase in Plone.
#
@@ -129,14 +130,17 @@
ZopeTestCase.installProduct('VerboseSecurity', quiet=install_product_quiet)
ZopeTestCase.installProduct('Zelenium', quiet=install_product_quiet)
-# ERP5
+# ERP5 - ERP5Type product is installed last so that
+# initializeProductDocumentRegistry is only called
+# after all products which need to register their Document
+# classes can register them by invoking updateGlobals in __init__
ZopeTestCase.installProduct('CMFActivity', quiet=install_product_quiet)
ZopeTestCase.installProduct('ERP5Catalog', quiet=install_product_quiet)
+ZopeTestCase.installProduct('ERP5Form', quiet=install_product_quiet)
+ZopeTestCase.installProduct('ERP5', quiet=install_product_quiet)
+ZopeTestCase.installProduct('ERP5SyncML', quiet=install_product_quiet)
ZopeTestCase.installProduct('ERP5Type', quiet=install_product_quiet)
-ZopeTestCase.installProduct('ERP5Form', quiet=install_product_quiet)
-ZopeTestCase.installProduct('ERP5SyncML', quiet=install_product_quiet)
ZopeTestCase.installProduct('CMFCategory', quiet=install_product_quiet)
-ZopeTestCase.installProduct('ERP5', quiet=install_product_quiet)
ZopeTestCase.installProduct('ZMySQLDDA', quiet=install_product_quiet)
ZopeTestCase.installProduct('ParsedXML', quiet=install_product_quiet)
More information about the Erp5-report
mailing list