Commit 887f903c authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

Drop CMFUid's tools

parent 8b120874
...@@ -1888,16 +1888,6 @@ class PortalGenerator: ...@@ -1888,16 +1888,6 @@ class PortalGenerator:
addCMFCoreTool('CMF URL Tool', None) addCMFCoreTool('CMF URL Tool', None)
addCMFCoreTool('CMF Workflow Tool', None) addCMFCoreTool('CMF Workflow Tool', None)
# try to install CMFUid without raising exceptions if not available
try:
addCMFUidTool = p.manage_addProduct['CMFUid'].manage_addTool
except AttributeError:
pass
else:
addCMFUidTool('Unique Id Annotation Tool', None)
addCMFUidTool('Unique Id Generator Tool', None)
addCMFUidTool('Unique Id Handler Tool', None)
def setupMailHost(self, p): def setupMailHost(self, p):
p.manage_addProduct['MailHost'].manage_addMailHost( p.manage_addProduct['MailHost'].manage_addMailHost(
'MailHost', smtp_host='localhost') 'MailHost', smtp_host='localhost')
......
...@@ -465,8 +465,10 @@ def synchronizeDynamicModules(context, force=False): ...@@ -465,8 +465,10 @@ def synchronizeDynamicModules(context, force=False):
assert tool._p_changed assert tool._p_changed
migrate = True migrate = True
if portal.hasObject("portal_properties"): for tool_id in ("portal_properties", "portal_uidannotation",
portal._delObject("portal_properties", suppress_events=True) "portal_uidgenerator", "portal_uidhandler"):
if portal.hasObject(tool_id):
portal._delObject(tool_id, suppress_events=True)
migrate = True migrate = True
if migrate: if migrate:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment