Commit 9a4528d4 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Install every Product which looks like related to ERP5.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5678 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6ec4431
...@@ -65,11 +65,21 @@ ZopeTestCase.installProduct('ERP5Type') ...@@ -65,11 +65,21 @@ ZopeTestCase.installProduct('ERP5Type')
ZopeTestCase.installProduct('ERP5Form') # Not required by ERP5Type but required by ERP5Form ZopeTestCase.installProduct('ERP5Form') # Not required by ERP5Type but required by ERP5Form
ZopeTestCase.installProduct('ERP5SyncML') ZopeTestCase.installProduct('ERP5SyncML')
ZopeTestCase.installProduct('CMFCategory') ZopeTestCase.installProduct('CMFCategory')
ZopeTestCase.installProduct('Nexedi')
ZopeTestCase.installProduct('ERP5') # Not needed by ERP5Type ZopeTestCase.installProduct('ERP5') # Not needed by ERP5Type
# Coramy # Install everything else which looks like related to ERP5
ZopeTestCase.installProduct('Coramy') from OFS.Application import get_products
from App.config import getConfiguration
import os
instancehome = getConfiguration().instancehome
for priority, product_name, index, product_dir in get_products():
# XXX very heuristic
if os.path.isdir(os.path.join(product_dir, product_name, 'Document')) \
or os.path.isdir(os.path.join(product_dir, product_name, 'PropertySheet')) \
or os.path.isdir(os.path.join(product_dir, product_name, 'Constraint')) \
or os.path.isdir(os.path.join(product_dir, product_name, 'Tool')):
ZopeTestCase.installProduct(product_name)
# Install Document types (circumvent different init order in ZopeTestCase) # Install Document types (circumvent different init order in ZopeTestCase)
from Products.ERP5Type.InitGenerator import initializeProductDocumentRegistry from Products.ERP5Type.InitGenerator import initializeProductDocumentRegistry
......
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