2009-06-29 07:06:01 -05:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
from Products.CMFCore.utils import getToolByName
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
def installProduct(context):
|
2011-09-15 08:52:21 -05:00
|
|
|
'''Installs the necessary products for Appy.'''
|
2009-06-29 07:06:01 -05:00
|
|
|
portal = context.getSite()
|
|
|
|
qi = getToolByName(portal, 'portal_quickinstaller')
|
2011-09-15 08:52:21 -05:00
|
|
|
if not qi.isProductInstalled('PloneLanguageTool'):
|
|
|
|
qi.installProduct('PloneLanguageTool')
|
2009-06-29 07:06:01 -05:00
|
|
|
if not qi.isProductInstalled('<!applicationName!>'):
|
|
|
|
qi.installProduct('<!applicationName!>')
|
2011-09-15 08:52:21 -05:00
|
|
|
return "<!applicationName!> installed."
|
2009-06-29 07:06:01 -05:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
def install_default(context):
|
|
|
|
# Installation function of default profile.
|
|
|
|
installProduct(context)
|
|
|
|
# ------------------------------------------------------------------------------
|