Last change
on this file since 2827 was
828,
checked in by olha, 17 years ago
|
Some minor edits
|
-
Property svn:eol-style set to
native
|
File size:
553 bytes
|
Line | |
---|
1 | from Products.CMFCore.utils import getToolByName |
---|
2 | |
---|
3 | def cleanUpFactoryTool(portal): |
---|
4 | tool = getToolByName(portal, 'portal_factory') |
---|
5 | if 'FormReadonlyStringField' in tool._factory_types.keys(): |
---|
6 | del tool._factory_types['FormReadonlyStringField'] |
---|
7 | |
---|
8 | def uninstall(context): |
---|
9 | # Only run step if a flag file is present (e.g. not an extension profile) |
---|
10 | if context.readDataFile( |
---|
11 | 'quintagroup.ploneformgen.readonlystringfield_uninstall.txt') is None: |
---|
12 | return |
---|
13 | out = [] |
---|
14 | site = context.getSite() |
---|
15 | cleanUpFactoryTool(site) |
---|
Note: See
TracBrowser
for help on using the repository browser.