2009-06-29 07:06:01 -05:00
|
|
|
<!codeHeader!>
|
|
|
|
from zExceptions import BadRequest
|
2009-10-18 07:52:27 -05:00
|
|
|
from Products.CMFCore.DirectoryView import manage_addDirectoryView
|
2009-06-29 07:06:01 -05:00
|
|
|
from Products.ExternalMethod.ExternalMethod import ExternalMethod
|
|
|
|
from Products.Archetypes.Extensions.utils import installTypes
|
|
|
|
from Products.Archetypes.Extensions.utils import install_subskin
|
|
|
|
from Products.Archetypes.config import TOOL_NAME as ARCHETYPETOOLNAME
|
|
|
|
from Products.Archetypes.atapi import listTypes
|
|
|
|
from Products.<!applicationName!>.config import applicationRoles,defaultAddRoles
|
|
|
|
from Products.<!applicationName!>.config import product_globals as GLOBALS
|
|
|
|
import appy.gen
|
|
|
|
from appy.gen.plone25.installer import PloneInstaller
|
|
|
|
<!imports!>
|
|
|
|
catalogMap = {}
|
|
|
|
<!catalogMap!>
|
|
|
|
appClasses = <!appClasses!>
|
|
|
|
appClassNames = [<!appClassNames!>]
|
|
|
|
allClassNames = [<!allClassNames!>]
|
|
|
|
workflows = {<!workflows!>}
|
2009-08-04 07:39:43 -05:00
|
|
|
showPortlet = <!showPortlet!>
|
2009-06-29 07:06:01 -05:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
def install(self, reinstall=False):
|
|
|
|
'''Installation of product "<!applicationName!>"'''
|
|
|
|
ploneInstaller = PloneInstaller(reinstall, "<!applicationName!>", self,
|
|
|
|
<!minimalistPlone!>, appClasses, appClassNames, allClassNames,
|
|
|
|
catalogMap, applicationRoles, defaultAddRoles, workflows,
|
2009-08-04 07:39:43 -05:00
|
|
|
<!appFrontPage!>, showPortlet, globals())
|
2009-06-29 07:06:01 -05:00
|
|
|
return ploneInstaller.install()
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
def uninstall(self, reinstall=False):
|
|
|
|
'''Uninstallation of product "<!applicationName!>"'''
|
|
|
|
ploneInstaller = PloneInstaller(reinstall, "<!applicationName!>", self,
|
|
|
|
<!minimalistPlone!>, appClasses, appClassNames, allClassNames,
|
|
|
|
catalogMap, applicationRoles, defaultAddRoles, workflows,
|
2009-08-04 07:39:43 -05:00
|
|
|
<!appFrontPage!>, showPortlet, globals())
|
2009-06-29 07:06:01 -05:00
|
|
|
return ploneInstaller.uninstall()
|
|
|
|
# ------------------------------------------------------------------------------
|