Submitted by : koegler at: 2006-06-28T08:35:48+00:00 (11 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

(Zope 2.7.4-0, python 2.3.5, openbsd3), CMF 1.5.5

when trying to install Zwiki 0.54 as per HowToInstallZwikiInPlone (with ExternalMethod), installation fails with an AttributeError?: portal_migration, because CMF 1.5 lacks such a tool. Since the migrationtool is only used for Plone w/ ExternalEditor, my approach to fix this is simple:

# diff -u Install.py.dist Install.py
--- Install.py.dist     Thu Jun  1 16:55:33 2006
+++ Install.py  Wed Jun 28 17:24:00 2006
@@ -48,7 +48,10 @@
     skinstool = getToolByName(self, 'portal_skins')
     workflowtool = getToolByName(self, 'portal_workflow')
     propertiestool = getToolByName(self, 'portal_properties')
-    migrationtool = getToolByName(self, 'portal_migration')
+    try:
+        migrationtool = getToolByName(self, 'portal_migration')
+    except:
+        migrationtool = None

     # Borrowed from CMFDefault.Portal.PortalGenerator.setupTypes()
     # We loop through anything defined in the factory type information

... --koegler, Wed, 28 Jun 2006 08:37:16 -0700 reply

Category: general => admin-installing

fixed for 0.55 --simon, Wed, 02 Aug 2006 17:31:32 -0700 reply

Status: open => closed

Thanks for this. From this and looking at the code, it seems as if installing in a vanilla CMF site has been broken for quite some time, could anyone confirm or deny ?

I've cleaned up the code a bit for 0.55. For now, in the case of vanilla CMF we just skip installing the external edit action.