|
Last change
on this file since 503 was
74,
checked in by chervol, 21 years ago
|
|
initial plone2.0.5 branch import
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | from Products.CMFCore.utils import getToolByName |
|---|
| 2 | |
|---|
| 3 | from Products.%(product_name)s.config import GS_INSTALL_PROFILE |
|---|
| 4 | from Products.%(product_name)s.config import GS_AFTERINSTALL_PROFILE |
|---|
| 5 | from Products.%(product_name)s.config import GS_UNINSTALL_PROFILE |
|---|
| 6 | |
|---|
| 7 | def install(self, reinstall=False): |
|---|
| 8 | """ Install skin with GenericSetup install profile |
|---|
| 9 | """ |
|---|
| 10 | ps = getToolByName(self, 'portal_setup') |
|---|
| 11 | (ps.aq_base).__of__(self).runAllImportStepsFromProfile(GS_INSTALL_PROFILE) |
|---|
| 12 | |
|---|
| 13 | def afterInstall(self, reinstall, product): |
|---|
| 14 | """ Install zexp objects and other dependent objects. |
|---|
| 15 | Perform this step here for prevent removing objects on uninstallation. |
|---|
| 16 | """ |
|---|
| 17 | ps = getToolByName(self, 'portal_setup') |
|---|
| 18 | (ps.aq_base).__of__(self).runAllImportStepsFromProfile(GS_AFTERINSTALL_PROFILE) |
|---|
| 19 | |
|---|
| 20 | def uninstall(self, reinstall=False): |
|---|
| 21 | """ Uninstall skin with GenericSetup uninstall profile |
|---|
| 22 | """ |
|---|
| 23 | ps = getToolByName(self, 'portal_setup') |
|---|
| 24 | (ps.aq_base).__of__(self).runAllImportStepsFromProfile(GS_UNINSTALL_PROFILE) |
|---|
| 25 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.