appy.gen: continued work on Appy-specific template.

This commit is contained in:
Gaetan Delannay 2011-09-15 15:52:21 +02:00
parent b6dcc42038
commit 48acf65bdc
10 changed files with 135 additions and 37 deletions

View file

@ -3,14 +3,14 @@ from Products.CMFCore.utils import getToolByName
# ------------------------------------------------------------------------------
def installProduct(context):
'''Installs the necessary products for running PloneMeeting.'''
'''Installs the necessary products for Appy.'''
portal = context.getSite()
qi = getToolByName(portal, 'portal_quickinstaller')
if not qi.isProductInstalled('Archetypes'):
qi.installProduct('Archetypes')
if not qi.isProductInstalled('PloneLanguageTool'):
qi.installProduct('PloneLanguageTool')
if not qi.isProductInstalled('<!applicationName!>'):
qi.installProduct('<!applicationName!>')
return "Product <!applicationName!> installed."
return "<!applicationName!> installed."
# ------------------------------------------------------------------------------
def install_default(context):