# -*- coding: utf-8 from Products.CMFCore.utils import getToolByName from Products.Archetypes.Extensions.utils import install_subskin, installTypes from Products.Archetypes.public import listTypes from StringIO import StringIO from Products.LeFork.config import GLOBALS, PROJECT_NAME def install(self): """ install """ out = StringIO() install_subskin(self, out, GLOBALS) installTypes(self, out, listTypes(PROJECT_NAME), PROJECT_NAME) # setup tools if not hasattr(self, 'sqitool'): addTool = self.manage_addProduct[PROJECT_NAME].manage_addTool addTool('SQITool') return out.getvalue() def uninstall(self): """ uninstall """ out = StringIO() return out.getvalue()