appy.gen: continued work on Appy-specific template.
This commit is contained in:
parent
b6dcc42038
commit
48acf65bdc
10 changed files with 135 additions and 37 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue