Hi,

While doing something else I was sidetracked into installing Poi on
the latest Plone 3 svn.

For Poi I used the Poi bundle:

http://svn.plone.org/svn/collective/Poi/bundles/trunk

but with the Poi branch for plone 3 support:

https://svn.plone.org/svn/collective/Poi/branches/plone3-support

Installing it gives these errors:

2007-05-10T13:55:03 ERROR Zope.SiteErrorLog 
http://localhost:3030/plone3/portal_quickinstaller/installProducts
Traceback (innermost last):
  Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 367, in 
installProduct
   - __traceback_info__: ('intelligenttext',)
  Module Products.ExternalMethod.ExternalMethod, line 231, in __call__
   - __traceback_info__: ((<PloneSite at /plone3>,), {}, None)
  Module 
/home/maurits/instances/plone3/Products/intelligenttext/Extensions/Install.py, 
line 46, in install
  Module 
/home/maurits/instances/plone3/Products/intelligenttext/Extensions/Install.py, 
line 24, in registerTra
nsform
  Module Products.PortalTransforms.TransformEngine, line 388, in 
manage_addTransform
  Module OFS.ObjectManager, line 314, in _setObject
  Module OFS.ObjectManager, line 102, in checkValidId
BadRequest: The id "web_intelligent_plain_text_to_html" is invalid - it is 
already in use.
------
2007-05-10T13:55:03 ERROR Zope.SiteErrorLog 
http://localhost:3030/plone3/portal_quickinstaller/installProducts
Traceback (innermost last):
  Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 364, in 
installProduct
   - __traceback_info__: ('Poi',)
  Module Products.ExternalMethod.ExternalMethod, line 231, in __call__
   - __traceback_info__: ((<PloneSite at /plone3>,), {'reinstall': False}, 
(False,))
  Module /home/maurits/instances/plone3/Products/Poi/Extensions/Install.py, 
line 70, in install
  Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 380, in 
installProduct
   - __traceback_info__: ('intelligenttext',)
AlreadyInstalled: intelligenttext


At first I missed the first error, so I tried solving it by catching
the AlreadyInstalled exception, as I thought the Poi installer might
be trying to install intelligenttext twice:

--------------------------
[EMAIL PROTECTED]:~/svn/Poibundle/Poi/Extensions $ svn diff
Index: Install.py
===================================================================
--- Install.py  (revision 41903)
+++ Install.py  (working copy)
@@ -41,6 +41,7 @@
 from zExceptions import NotFound, BadRequest
 from Products.GenericSetup.interfaces import ISetupTool
 
+from Products.CMFQuickInstallerTool.QuickInstallerTool import AlreadyInstalled
 from Products.Archetypes.Extensions.utils import installTypes
 from Products.Archetypes.Extensions.utils import install_subskin
 from Products.Archetypes.config import TOOL_NAME as ARCHETYPETOOLNAME
@@ -67,7 +68,10 @@
     portal_setup = getUtility(ISetupTool)
     for dependency in DEPENDENCIES:
         print >> out, "Installing dependency %s:" % dependency
-        quickinstaller.installProduct(dependency)
+        try:
+            quickinstaller.installProduct(dependency)
+        except AlreadyInstalled:
+            pass
         transaction.commit(1)
 
     # try to call a custom install method
--------------------------

This worked: Poi was installable now.  But intelligenttext was not
listed as an installed product.  So the AlreadyInstalled exception
seems to be the wrong exception here.  That might be a
CMFQuickInstaller issue.

But then I noticed that other error, claiming that
web_intelligent_plain_text_to_html is already in use.  So I removed
intelligenttext from Poi/config.py.  Installing Poi on a fresh Plone 3
site then also worked.

But when adding a PoiIssue with some http links, they were not
converted to clickable links by any converter.

So my guess here is that intelligenttext has been integrated into
Plone 3 itself and is not needed as a separate product anymore.  But
maybe the Poi installed needs to turn on this converter by setting a
switch somewhere?

Can someone connect the dots for me? :)

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
            Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to