[Erp5-report] r42918 nicolas.dumazet - /erp5/trunk/products/ERP5/ERP5Site.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 2 06:17:44 CET 2011
Author: nicolas.dumazet
Date: Wed Feb 2 06:17:44 2011
New Revision: 42918
URL: http://svn.erp5.org?rev=42918&view=rev
Log:
Activity Tool is now an ERP5 Tool
Modified:
erp5/trunk/products/ERP5/ERP5Site.py
Modified: erp5/trunk/products/ERP5/ERP5Site.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ERP5Site.py?rev=42918&r1=42917&r2=42918&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py [utf8] Wed Feb 2 06:17:44 2011
@@ -1610,9 +1610,8 @@ class ERP5Generator(PortalGenerator):
make sure that we do not put un the queue the full reindexation
"""
# Add Activity Tool
- if create_activities and not p.hasObject('portal_activities'):
- addTool = p.manage_addProduct['CMFActivity'].manage_addTool
- addTool('CMF Activity Tool', None) # Allow user to select active/passive
+ if create_activities:
+ addERP5Tool(p, 'portal_activities', 'Activity Tool')
# Initialize Activities
p.portal_activities.manageClearActivities(keep=0)
More information about the Erp5-report
mailing list