[Erp5-report] r39852 jm - /erp5/trunk/products/ERP5Type/InitGenerator.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Nov 3 16:34:37 CET 2010
Author: jm
Date: Wed Nov 3 16:34:34 2010
New Revision: 39852
URL: http://svn.erp5.org?rev=39852&view=rev
Log:
Check all products are imported before we import document classes
Modified:
erp5/trunk/products/ERP5Type/InitGenerator.py
Modified: erp5/trunk/products/ERP5Type/InitGenerator.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/InitGenerator.py?rev=39852&r1=39851&r2=39852&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/InitGenerator.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/InitGenerator.py [utf8] Wed Nov 3 16:34:34 2010
@@ -56,12 +56,16 @@ def InitializeInteractor(interactor_clas
def initializeProductDocumentRegistry():
from Utils import importLocalDocument
+ count = len(product_document_registry)
for (class_id, class_path) in product_document_registry.iteritems():
importLocalDocument(class_id, class_path=class_path)
#from Testing import ZopeTestCase
#ZopeTestCase._print('Added product document to ERP5Type repository: %s (%s) \n' % (class_id, document_path))
#LOG('Added product document to ERP5Type repository: %s (%s)' % (class_id, document_path), 0, '')
#print 'Added product document to ERP5Type repository: %s (%s)' % (class_id, document_path)
+ # make sure all products are imported before we import document classes
+ # (FIXME: is it true ?)
+ assert count == len(product_document_registry)
def initializeProductInteractorRegistry():
from Utils import importLocalInteractor
More information about the Erp5-report
mailing list